Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:n8han/pamflet

  • Loading branch information...
commit d68254f55305712108fba4f55389d6511a7848d9 2 parents 22b27b3 + 2a11b12
@n8han authored
View
3  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=>
View
8 library/src/main/scala/printer.scala
@@ -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>
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.