diff options
Diffstat (limited to '_layout')
-rw-r--r-- | _layout/foot.html | 14 | ||||
-rw-r--r-- | _layout/foot_highlight.html | 2 | ||||
-rw-r--r-- | _layout/foot_katex.html | 3 | ||||
-rw-r--r-- | _layout/head.html | 25 | ||||
-rw-r--r-- | _layout/head_katex.html | 1 | ||||
-rw-r--r-- | _layout/page_foot.html | 16 | ||||
-rw-r--r-- | _layout/tag.html | 14 |
7 files changed, 33 insertions, 42 deletions
diff --git a/_layout/foot.html b/_layout/foot.html index f87c1a1..95abfb5 100644 --- a/_layout/foot.html +++ b/_layout/foot.html @@ -1,9 +1,7 @@ -<!-- CONTENT ENDS HERE --> - {{ if hasmath }} - {{ insert foot_katex.html }} - {{ end }} - {{ if hascode }} - {{ insert foot_highlight.html }} - {{ end }} - </body> +{{if hasmath}}<script src=/libs/katex/katex.min.js></script> +<script src=/libs/katex/auto-render.min.js></script> +<script>renderMathInElement(document.body)</script>{{end}} +{{if hascode}}<script src=/libs/highlight/highlight.pack.js></script> +<script>hljs.initHighlightingOnLoad();</script>{{end}} +</body> </html> diff --git a/_layout/foot_highlight.html b/_layout/foot_highlight.html deleted file mode 100644 index 616d9f4..0000000 --- a/_layout/foot_highlight.html +++ /dev/null @@ -1,2 +0,0 @@ -<script src="/libs/highlight/highlight.pack.js"></script> -<script>hljs.initHighlightingOnLoad();hljs.configure({tabReplace: ' '});</script> diff --git a/_layout/foot_katex.html b/_layout/foot_katex.html deleted file mode 100644 index 6c7e39f..0000000 --- a/_layout/foot_katex.html +++ /dev/null @@ -1,3 +0,0 @@ -<script src="/libs/katex/katex.min.js"></script> -<script src="/libs/katex/auto-render.min.js"></script> -<script>renderMathInElement(document.body)</script> diff --git a/_layout/head.html b/_layout/head.html index da6421c..8f5353f 100644 --- a/_layout/head.html +++ b/_layout/head.html @@ -1,14 +1,15 @@ <!doctype html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - {{if hasmath}}{{insert head_katex.html}}{{end}} - <link rel="stylesheet" href="/css/style.css"> - <link rel="icon" href="/assets/favicon.png"> - {{isdef title}}<title>{{fill title}} - McSinyx</title>{{end}} -</head> +<html lang=en> +<meta charset=UTF-8 name=viewport content='width=device-width, initial-scale=1'> +{{if hasmath}}<link rel=stylesheet href=/libs/katex/katex.min.css>{{end}} +<link rel=stylesheet href=/css/style.css> +<link rel=icon href=/assets/favicon.png> +{{isdef title}}<title>{{title}} - McSinyx</title>{{end}} <body> - {{insert header.html}} - -<!-- Content appended here --> +{{insert header.html}} +{{isnotempty rss}}<h1>{{title}}</h1> +<div class=metadata> + <strong>Originally published:</strong> {{date}}<br> + <strong>Tags:</strong>{{for tag in tags}} + <a href=/tag/{{tag}}>{{tag}}</a>{{end}}<br> +</div>{{end}} diff --git a/_layout/head_katex.html b/_layout/head_katex.html deleted file mode 100644 index 755f249..0000000 --- a/_layout/head_katex.html +++ /dev/null @@ -1 +0,0 @@ -<link rel="stylesheet" href="/libs/katex/katex.min.css"> diff --git a/_layout/page_foot.html b/_layout/page_foot.html index 817742f..6a9431a 100644 --- a/_layout/page_foot.html +++ b/_layout/page_foot.html @@ -1,11 +1,9 @@ <div class=page-foot> - <div class=copyright> - © 2019–2021 {{fill author}}; - See <a href=/COPYING>license terms</a><br> - {{isnotpage /tag/*}}Last modified: {{author_date}}; View - <a href=https://git.sr.ht/~cnx/site/tree/main/item/{{fill fd_rpath}}>page - source</a><br>{{end}} - A website by <a href=https://julialang.org>Julia</a> - <a href=https://franklinjl.org>Franklin</a> - </div> + © 2019–2021 {{author}}; + See <a href=/COPYING>license terms</a><br> + {{isnotpage /tag/*}}Last modified: {{author_date}}; View + <a href=https://git.sr.ht/~cnx/site/tree/main/item/{{fd_rpath}}>page + source</a><br>{{end}} + A website by <a href=https://julialang.org>Julia</a> + <a href=https://franklinjl.org>Franklin</a> </div> diff --git a/_layout/tag.html b/_layout/tag.html index b815535..fb18574 100644 --- a/_layout/tag.html +++ b/_layout/tag.html @@ -3,13 +3,13 @@ <meta charset=UTF-8> <meta name=viewport content='width=device-width, initial-scale=1'> <link rel=stylesheet href=/css/style.css> -<title>Tag: {{fill fd_tag}}</title> +<title>Tag: {{fd_tag}}</title> <body> - {{insert header.html}} - <div class=franklin-content> - <h1>Tag: {{fill fd_tag}}</h1> - {{taglist}} - {{insert page_foot.html}} - </div> +{{insert header.html}} +<div class=franklin-content> + <h1>Tag: {{fd_tag}}</h1> + {{taglist}} + {{insert page_foot.html}} +</div> </body> </html> |