Skip to content

Commit

Permalink
Merge pull request #31 from joshmarcus/arrow_configuration
Browse files Browse the repository at this point in the history
Add pamflet.arrow configuration option for next page icon.
  • Loading branch information
Nathan Hamblen committed Jul 27, 2012
2 parents 2f2ed9f + 128b9e8 commit 2a11b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/template.properties
@@ -1,4 +1,5 @@
version=0.4.0
vrsn=040
scala=2.9.1
github=n8han/pamflet
github=n8han/pamflet
pamflet.arrow=>
8 changes: 5 additions & 3 deletions library/src/main/scala/printer.scala
Expand Up @@ -93,7 +93,9 @@ case class Printer(contents: Contents, manifest: Option[String]) {
}
val (prev, next) = lastnext(contents.pages, None)
val bigScreen = "screen and (min-device-width: 800px), projection"


val arrow = page.template.get("pamflet.arrow") getOrElse ""

val html = <html>
<head>
<title>{ "%s — %s".format(contents.title, page.name) }</title>
Expand Down Expand Up @@ -138,13 +140,13 @@ case class Printer(contents: Contents, manifest: Option[String]) {
{ prev.map { p =>
<a class="page prev nav" href={ Printer.webify(p)}>
<span class="space">&nbsp;</span>
<span class="flip"></span>
<span class="flip">{arrow}</span>
</a>
}.toSeq ++
next.map { n =>
<a class="page next nav" href={ Printer.webify(n)}>
<span class="space">&nbsp;</span>
<span></span>
<span>{arrow}</span>
</a>
}.toSeq }
<div class="container">
Expand Down

0 comments on commit 2a11b12

Please sign in to comment.