Permalink
Browse files

- Add post 12: Scala Scripting and the 15 Minute Blog Engine

- Update build scripts to work with latest Ammonite snapshot
  • Loading branch information...
1 parent 6dbf5bf commit 46dc02a3c7764e43c4b63c847081822ac6aa4973 @lihaoyi committed Jul 30, 2016
View
@@ -41,6 +41,7 @@ object DatesFor{
}
val (markdownFiles, otherFiles) = ls! postsFolder partition (_.ext == "md")
+markdownFiles.foreach(println)
// Walk the posts/ folder and parse out the name, full- and first-paragraph-
// HTML of each post to be used on their respective pages and on the index
val posts = {
@@ -149,6 +150,7 @@ val rssXml = {
)
"""<?xml version="1.0"?>""" + snippet.render
}
+@main
def main(publish: Boolean = false) = {
rm! targetFolder
View
@@ -7,6 +7,7 @@ import scalatags.Text._
val marginWidth = "25%"
object WideStyles extends StyleSheet{
+ override def customSheetName = Some("WideStyles")
def header = cls(
position.fixed,
top := 0,
@@ -31,6 +32,7 @@ object WideStyles extends StyleSheet{
)
}
object NarrowStyles extends StyleSheet{
+ override def customSheetName = Some("NarrowStyles")
def header = cls(
marginBottom := 10
)
@@ -51,6 +53,7 @@ object NarrowStyles extends StyleSheet{
)
}
object Styles extends StyleSheet{
+ override def customSheetName = Some("Styles")
def header = cls(
backgroundColor := "rgb(61, 79, 93)",
display.flex,
Oops, something went wrong.

0 comments on commit 46dc02a

Please sign in to comment.