about summary refs log tree commit diff
path: root/sample
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-10-28 22:33:37 -0500
committerStarfall <us@starfall.systems>2023-12-05 10:00:41 -0600
commitf456510d32bfb4014d75241e42b7d16c599697de (patch)
treeddbf78f0cd548577d391033197028c505439212d /sample
parent7806ca6c9c72657dcb6f316656a7e4bd4abff629 (diff)
strike: implement basic key=value front matter
Diffstat (limited to 'sample')
-rw-r--r--sample/blog/with-frontmatter.html6
-rw-r--r--sample/html/with-frontmatter.html17
2 files changed, 23 insertions, 0 deletions
diff --git a/sample/blog/with-frontmatter.html b/sample/blog/with-frontmatter.html
new file mode 100644
index 0000000..5195292
--- /dev/null
+++ b/sample/blog/with-frontmatter.html
@@ -0,0 +1,6 @@
+---
+title=Custom Title
+---
+Things before this line should not appear in the output.
+---
+Including the delimiter in body content shouldn't be an issue.
diff --git a/sample/html/with-frontmatter.html b/sample/html/with-frontmatter.html
new file mode 100644
index 0000000..681c23d
--- /dev/null
+++ b/sample/html/with-frontmatter.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang=en-US dir=ltr>
+<title>Custom Title</title>
+<meta charset=UTF-8>
+<meta name=robots content="noindex, nofollow">
+<meta name=viewport content="width=device-width, initial-scale=1">
+<meta http-equiv=last-modified content="Fri, 29 Oct 2021 03:25:04 GMT">
+
+<section>
+	Things before this line should not appear in the output.
+---
+Including the delimiter in body content shouldn't be an issue.
+
+</section>
+<footer>
+	<p>This page was generated by <a href=https://git.starfall.systems/strike>Strike</a>.  
+</footer>