From 90058697439ee3f048f0f42b61ca5ea677e9b5cc Mon Sep 17 00:00:00 2001 From: Starfall Date: Tue, 5 Dec 2023 09:59:19 -0600 Subject: strike: merge as subdir --- strike/sample/blog/also-exclude.html | 1 + strike/sample/blog/empty.html | 0 strike/sample/blog/exclude.html | 1 + strike/sample/blog/happy.html | 1 + strike/sample/blog/subdir/index.html | 1 + strike/sample/blog/with-frontmatter.html | 6 ++++++ strike/sample/html/empty.html | 14 ++++++++++++++ strike/sample/html/happy.html | 15 +++++++++++++++ strike/sample/html/subdir/index.html | 15 +++++++++++++++ strike/sample/html/with-frontmatter.html | 17 +++++++++++++++++ strike/sample/strike.ini | 19 +++++++++++++++++++ strike/sample/template.html | 14 ++++++++++++++ 12 files changed, 104 insertions(+) create mode 100644 strike/sample/blog/also-exclude.html create mode 100644 strike/sample/blog/empty.html create mode 100644 strike/sample/blog/exclude.html create mode 100644 strike/sample/blog/happy.html create mode 100644 strike/sample/blog/subdir/index.html create mode 100644 strike/sample/blog/with-frontmatter.html create mode 100644 strike/sample/html/empty.html create mode 100644 strike/sample/html/happy.html create mode 100644 strike/sample/html/subdir/index.html create mode 100644 strike/sample/html/with-frontmatter.html create mode 100644 strike/sample/strike.ini create mode 100644 strike/sample/template.html (limited to 'strike/sample') 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 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 @@ + + +empty + + + + + +
+ +
+ 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 @@ + + +happy + + + + + +
+ Hello, world! + +
+ 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 @@ + + +index + + + + + +
+ This file in a subdirectory of the input directory should also be processed. + +
+ 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 @@ + + +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/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 @@ + + +{meta[title]} + + + + + +
+ {content} +
+ -- cgit