aboutsummaryrefslogtreecommitdiff
path: root/layouts/templates
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-03-25 21:36:21 +0000
committerMartin Ashby <martin@ashbysoft.com>2024-03-25 21:36:21 +0000
commit92787c159262a57fa20b2eb05ed710e1e6cfca96 (patch)
tree508cab2af110a063767564571a98d157926bfb05 /layouts/templates
parente12c0d23ad72ffa9389d90311453db535f57e450 (diff)
downloadmfashby.net-92787c159262a57fa20b2eb05ed710e1e6cfca96.tar.gz
mfashby.net-92787c159262a57fa20b2eb05ed710e1e6cfca96.tar.bz2
mfashby.net-92787c159262a57fa20b2eb05ed710e1e6cfca96.tar.xz
mfashby.net-92787c159262a57fa20b2eb05ed710e1e6cfca96.zip
Final conversion to Zine
Diffstat (limited to 'layouts/templates')
-rw-r--r--layouts/templates/main.html19
1 files changed, 6 insertions, 13 deletions
diff --git a/layouts/templates/main.html b/layouts/templates/main.html
index 917bdce..5a4dd1f 100644
--- a/layouts/templates/main.html
+++ b/layouts/templates/main.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
+<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -11,9 +11,9 @@
<body>
<nav>
<ul class="menu">
- <li><a href="/">home</a></li>
- <li><a href="/">about</a></li>
- <li><a href="/">rss</a></li>
+ <li><a href="/posts">home</a></li>
+ <li><a href="/about">about</a></li>
+ <li><a href="/index.xml">rss</a></li>
</ul>
<hr/>
</nav>
@@ -23,14 +23,7 @@
</div>
<footer>
- {{ if or (.Params.author) (gt .Params.lastmod 0) }}
- <div class="article-meta">
- {{ with .Params.author }}Author <span class="author">{{ . }}</span><br/>{{ end }}
- {{ if (gt .Params.lastmod 0) }}Updated <span class="date">{{ .Lastmod.Format "January 02, 2006" }}</span><br/>{{ end }}
- </div>
- {{ end }}
-
- {{ if .Param "comments" }}
+ <div if="$page.custom.get('comments', false)">
<h2>comments</h2>
<div style="visibility: hidden" id="comments">comments go here</div>
<div style="visibility: hidden" id="comment_form">comment form goes here</div>
@@ -53,7 +46,7 @@
});
</script>
<noscript>Comments disabled without javascript!</noscript>
- {{ end }}
+ </div>
</footer>
</body>
</html>