]> git.rocketbowman.com Git - jetsam.git/commitdiff
feat: use base templates, specify css in cli
authorKyle Bowman <kylebowman14@gmail.com>
Sat, 5 Oct 2024 01:35:56 +0000 (21:35 -0400)
committerKyle Bowman <kylebowman14@gmail.com>
Sat, 5 Oct 2024 01:35:56 +0000 (21:35 -0400)
Makefile
templates/base.html [deleted file]
templates/deprecated.base.html [new file with mode: 0644]

index afce687bdc0da9f227dafd3bbfa8c2ed1e9d08c9..fddc8e94b4aec90d92074ecf9fc77000bacb8c84 100644 (file)
--- 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 (file)
index 36d2035..0000000
+++ /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
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta content="text/html; charset=utf-8" http-equiv="content-type">
-    <title>$title$</title>
-    <meta content="width=device-width, initial-scale=1" name="viewport">
-    <link href='../../assets/css/normalize.css' rel='stylesheet' type='text/css'>
-    <link href='../../assets/css/space-sakura.css' id="sakura-css" rel='stylesheet' type='text/css'>
-$for(author-meta)$
-    <meta name="author" content="$author-meta$">
-$endfor$
-$if(date-meta)$
-    <meta name="dcterms.date" content="$date-meta$">
-$endif$
-$if(description)$
-    <meta name="description" content="$description$">
-$endif$
-$if(tags)$
-    <meta name="keywords" content="$for(tags)$$tags$$sep$, $endfor$">
-$endif$
-$--    <link href="atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide Atom feed" />
-  </head>
-  <body>
-    <nav>
-      $navigation$
-      <div style="text-align: right">
-        <a href="../index.html">Index</a>
-      </div>
-    </nav>
-    <header>
-      <h1>$title$</h1>
-    </header>
-$body$
-  </body>
-</html>
\ No newline at end of file
diff --git a/templates/deprecated.base.html b/templates/deprecated.base.html
new file mode 100644 (file)
index 0000000..a5b07eb
--- /dev/null
@@ -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
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta content="text/html; charset=utf-8" http-equiv="content-type">
+    <title>$title$</title>
+    <meta content="width=device-width, initial-scale=1" name="viewport">
+    <!--<link href='../../assets/css/normalize.css' rel='stylesheet' type='text/css'>
+    <link href='../../assets/css/space-sakura.css' id="sakura-css" rel='stylesheet' type='text/css'>
+    -->
+$for(author-meta)$
+    <meta name="author" content="$author-meta$">
+$endfor$
+$if(date-meta)$
+    <meta name="dcterms.date" content="$date-meta$">
+$endif$
+$if(description)$
+    <meta name="description" content="$description$">
+$endif$
+$if(tags)$
+    <meta name="keywords" content="$for(tags)$$tags$$sep$, $endfor$">
+$endif$
+$--    <link href="atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide Atom feed" />
+  </head>
+  <body>
+    <nav>
+      $navigation$
+      <div style="text-align: right">
+        <a href="../index.html">Index</a>
+      </div>
+    </nav>
+    <header>
+      <h1>$title$</h1>
+    </header>
+$body$
+  </body>
+</html>
\ No newline at end of file