From: Kyle Bowman Date: Sat, 5 Oct 2024 01:35:56 +0000 (-0400) Subject: feat: use base templates, specify css in cli X-Git-Url: https://git.rocketbowman.com/?a=commitdiff_plain;h=fecd84bb0f2545702d5e51579f63eceef978d284;p=jetsam.git feat: use base templates, specify css in cli --- diff --git a/Makefile b/Makefile index afce687..fddc8e9 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ $(BUILD_DIR)/%: $(SRC_DIR)/%.md --from=markdown+wikilinks_title_before_pipe \ --to=html5 \ --standalone \ - --template=templates/base.html \ + --css=..././assets/css/normalize.css \ + --css=../../assets/css/space-sakura.css \ --output=$@ $< @echo "Building $@ from $<" diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index 36d2035..0000000 --- a/templates/base.html +++ /dev/null @@ -1,43 +0,0 @@ -$-- This is a comment; Use $$ for literal $ -$-- Details for writing this template can be found: https://pandoc.org/MANUAL.html#templates -$-- ${foo} or $foo$ is an interpolated variable -$-- variables come from YAML front matter (or command line) -$-- ${if(variable)} conditional text ${endif} -$-- ${for(foo)} do thing $foo$ ${endfor} -$-- ${template-name.html} includes another template -$-- You can use pipes to transform variables if needed - - - - - $title$ - - - -$for(author-meta)$ - -$endfor$ -$if(date-meta)$ - -$endif$ -$if(description)$ - -$endif$ -$if(tags)$ - -$endif$ -$-- - - - -
-

$title$

-
-$body$ - - \ No newline at end of file diff --git a/templates/deprecated.base.html b/templates/deprecated.base.html new file mode 100644 index 0000000..a5b07eb --- /dev/null +++ b/templates/deprecated.base.html @@ -0,0 +1,44 @@ +$-- This is a comment; Use $$ for literal $ +$-- Details for writing this template can be found: https://pandoc.org/MANUAL.html#templates +$-- ${foo} or $foo$ is an interpolated variable +$-- variables come from YAML front matter (or command line) +$-- ${if(variable)} conditional text ${endif} +$-- ${for(foo)} do thing $foo$ ${endfor} +$-- ${template-name.html} includes another template +$-- You can use pipes to transform variables if needed + + + + + $title$ + + +$for(author-meta)$ + +$endfor$ +$if(date-meta)$ + +$endif$ +$if(description)$ + +$endif$ +$if(tags)$ + +$endif$ +$-- + + + +
+

$title$

+
+$body$ + + \ No newline at end of file