about summary refs log tree commit diff
path: root/strike/sample
diff options
context:
space:
mode:
Diffstat (limited to 'strike/sample')
-rw-r--r--strike/sample/blog/also-exclude.html1
-rw-r--r--strike/sample/blog/empty.html0
-rw-r--r--strike/sample/blog/exclude.html1
-rw-r--r--strike/sample/blog/happy.html1
-rw-r--r--strike/sample/blog/subdir/index.html1
-rw-r--r--strike/sample/blog/with-frontmatter.html6
-rw-r--r--strike/sample/html/empty.html14
-rw-r--r--strike/sample/html/happy.html15
-rw-r--r--strike/sample/html/subdir/index.html15
-rw-r--r--strike/sample/html/with-frontmatter.html17
-rw-r--r--strike/sample/strike.ini19
-rw-r--r--strike/sample/template.html14
12 files changed, 104 insertions, 0 deletions
diff --git a/strike/sample/blog/also-exclude.html b/strike/sample/blog/also-exclude.html
new file mode 100644
index 0000000..6ce0fb1
--- /dev/null
+++ b/strike/sample/blog/also-exclude.html
@@ -0,0 +1 @@
+This file shouldn't be processed by Strike either.
diff --git a/strike/sample/blog/empty.html b/strike/sample/blog/empty.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/strike/sample/blog/empty.html
diff --git a/strike/sample/blog/exclude.html b/strike/sample/blog/exclude.html
new file mode 100644
index 0000000..d881dce
--- /dev/null
+++ b/strike/sample/blog/exclude.html
@@ -0,0 +1 @@
+This file should be excluded from processing when Strike is processed using strike.ini
diff --git a/strike/sample/blog/happy.html b/strike/sample/blog/happy.html
new file mode 100644
index 0000000..af5626b
--- /dev/null
+++ b/strike/sample/blog/happy.html
@@ -0,0 +1 @@
+Hello, world!
diff --git a/strike/sample/blog/subdir/index.html b/strike/sample/blog/subdir/index.html
new file mode 100644
index 0000000..b66efd5
--- /dev/null
+++ b/strike/sample/blog/subdir/index.html
@@ -0,0 +1 @@
+This file in a subdirectory of the input directory should also be processed.
diff --git a/strike/sample/blog/with-frontmatter.html b/strike/sample/blog/with-frontmatter.html
new file mode 100644
index 0000000..5195292
--- /dev/null
+++ b/strike/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/strike/sample/html/empty.html b/strike/sample/html/empty.html
new file mode 100644
index 0000000..b1a01ea
--- /dev/null
+++ b/strike/sample/html/empty.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang=en-US dir=ltr>
+<title>empty</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 04:55:33 GMT">
+
+<section>
+	
+</section>
+<footer>
+	<p>This page was generated by <a href=https://git.starfall.systems/strike>Strike</a>.  
+</footer>
diff --git a/strike/sample/html/happy.html b/strike/sample/html/happy.html
new file mode 100644
index 0000000..9f4b32f
--- /dev/null
+++ b/strike/sample/html/happy.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang=en-US dir=ltr>
+<title>happy</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 04:55:33 GMT">
+
+<section>
+	Hello, world!
+
+</section>
+<footer>
+	<p>This page was generated by <a href=https://git.starfall.systems/strike>Strike</a>.  
+</footer>
diff --git a/strike/sample/html/subdir/index.html b/strike/sample/html/subdir/index.html
new file mode 100644
index 0000000..bdeaad0
--- /dev/null
+++ b/strike/sample/html/subdir/index.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang=en-US dir=ltr>
+<title>index</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 22:31:45 GMT">
+
+<section>
+	This file in a subdirectory of the input directory should also be processed.
+
+</section>
+<footer>
+	<p>This page was generated by <a href=https://git.starfall.systems/strike>Strike</a>.  
+</footer>
diff --git a/strike/sample/html/with-frontmatter.html b/strike/sample/html/with-frontmatter.html
new file mode 100644
index 0000000..99627a1
--- /dev/null
+++ b/strike/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 04:55:33 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>
diff --git a/strike/sample/strike.ini b/strike/sample/strike.ini
new file mode 100644
index 0000000..86bc8c3
--- /dev/null
+++ b/strike/sample/strike.ini
@@ -0,0 +1,19 @@
+[Input]
+# Directory with all of the markup files that you want Strike to process.
+# Location should be relative to this config file.
+directory = blog
+# Files in the input directory to exclude.
+# Location should be relative to the default input directory.
+excludes = exclude.html
+	also-exclude.html
+
+[Templates]
+# For now, Strike only supports using a single template, named default.
+default = template.html
+
+[Output]
+# Directory to put the output into.
+directory = html
+
+# That's all for now. In the future, we hope to allow the use of multiple templates,
+# letting you choose individual directories and files for each template.
diff --git a/strike/sample/template.html b/strike/sample/template.html
new file mode 100644
index 0000000..2552906
--- /dev/null
+++ b/strike/sample/template.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang=en-US dir=ltr>
+<title>{meta[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="{meta[date]}">
+
+<section>
+	{content}
+</section>
+<footer>
+	<p>This page was generated by <a href=https://git.starfall.systems/strike>Strike</a>.  
+</footer>