Permalink
Browse files

26 - Fastparse 1.0: Past, Present & Future

  • Loading branch information...
lihaoyi committed Oct 15, 2017
1 parent d951c10 commit 61c433239288a45f8a21062fa8a342c0d73e549f
View
@@ -140,7 +140,7 @@ val posts = {
val rawHtmlSnippet = new Serializer().toHtml(ast)
ast.getChildren.clear()
bodyNodes.foreach(ast.getChildren.add)
val prelude = Seq[Frag](
val postlude = Seq[Frag](
hr,
p(
@@ -159,10 +159,11 @@ val posts = {
"source libraries, please chip in (or get your Company to chip in!) via ",
a(href:="https://www.patreon.com/lihaoyi", "Patreon"), " so he can ", "continue his open-source work"
)
)
),
hr
).render
val rawHtmlContent = rawHtmlSnippet + prelude + new Serializer().toHtml(ast)
val rawHtmlContent = rawHtmlSnippet + new Serializer().toHtml(ast) + postlude
// Handle both post/ and posts/ for legacy reasons
val updates = DatesFor(s"post/$index - ").toSeq ++ DatesFor(s"posts/$index - ").toSeq
PostInfo(name, headers, rawHtmlContent, rawHtmlSnippet, updates)
Oops, something went wrong.

0 comments on commit 61c4332

Please sign in to comment.