aboutsummaryrefslogtreecommitdiff
path: root/v2/src/development/genhtml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'v2/src/development/genhtml.sh')
-rwxr-xr-xv2/src/development/genhtml.sh92
1 files changed, 2 insertions, 90 deletions
diff --git a/v2/src/development/genhtml.sh b/v2/src/development/genhtml.sh
index 6839d23..8950b1d 100755
--- a/v2/src/development/genhtml.sh
+++ b/v2/src/development/genhtml.sh
@@ -193,93 +193,5 @@ emit_body() {
add_headings_anchors
}
-if false; then
- emit_body
-fi
-
-
-
-#
-# Main: generate the HTML to STDOUT.
-#
-
-cat <<-EOF
- <!DOCTYPE html>
- <html lang="${lang:?}">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" type="text/css" href="${style_url:?}" />
- <link rel="icon" type="image/svg+xml" href="${favicon_url:?}" />
-
- <title>$$title_html</title>
-
- <meta name="author" content="EuAndreh" />
- <meta property="og:site_name" content="${site_name:?}" />
- <meta property="og:locale" content="${lang:?}" />
- <meta property="og:title" content="${title_html:?}" />
-
- <link rel="canonical" href="${url:?}" />
- <meta property="og:url" content="${url:?}" />
- </head>
- <body>
- <header>
- <nav>
- <ul>
- <a href="$(url-for "$lang/")">EuAndreh</a>
- <a href="$(url-for 'about.html')">About</a>
- </ul>
- </nav>
- <hr />
- </header>
- <main>
- <article>
- \$(emit_body)
- <hr />
-EOF
-exit
-
-
-# .md.rehtml:
-# F="$<"; . "$${F%.md}.conf"; envsubst < src/lib/reamble."$$lang".html > $@
-#
-# .md.osthtml:
-# F="$<"; . "$${F%.md}.conf"; envsubst < src/lib/ostamble."$$lang".html > $@
-#
-#
-# <p class="post-footer">
-# <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20$URI_TITLE">Comment</a>
-# and see
-# <a href="https://lists.sr.ht/~euandreh/public-inbox?search=$URI_TITLE">existing discussions</a>
-# |
-# <a href="https://euandre.org/git/euandre.org/tree/$FILENAME">view source</a>
-# </p>
-# </article>
-# </main>
-# <footer>
-# <hr />
-# <ul>
-# <li>
-# <img class="svg-icon" src="$(url-for 'static/envelope.svg')" alt="a envelope icon representing an email address" />
-# <a href="mailto:$email">$email</a>
-# </li>
-# <li>
-# <img class="svg-icon" src="$(url-for 'static/lock.svg')" alt="a lock icon representing a GPG public key" />
-# <a href="$(url-for 'static/public.asc.txt')">81F90EC3CD356060</a>
-# </li>
-# </ul>
-# <p>
-# The content for this site is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>. The <a href="https://euandre.org/git/euandre.org">code</a> is <a rel="license" href="https://euandre.org/git/euandre.org/tree/COPYING">AGPLv3 or later</a>. Patches welcome.
-# </p>
-# </footer>
-# </body>
-# </html>
-# EOF
-
-# FIXMEs:
-# - feeds
-# - link to next and/or previous in <head>
-# - validate input variables: regex for date (same as _plugins/linter.rb)
-# - `date -d` isn't POSIX
-# - parse commonmark and use a custom HTML emitter over <pre><code> regex
-# - handle mixture of personal scripts
+envsubst < src/lib/preamble.html
+envsubst < src/lib/postamble.html