aboutsummaryrefslogtreecommitdiff
path: root/layouts/templates
diff options
context:
space:
mode:
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>