diff options
author | Alan Pearce | 2019-06-15 20:32:22 +0200 |
---|---|---|
committer | Alan Pearce | 2019-06-15 20:32:22 +0200 |
commit | cd464ebccfc2d517bce1abccbcb43e7f3d1948d3 (patch) | |
tree | d27bd82aa0017ce0d285bdd1369430b9a590920b /layouts | |
parent | 15a6ffcdbbba13c1635c0fc45bfbf4313e75c074 (diff) | |
parent | e36f5799b396ecf7a665b330da8cac5b0b6e2891 (diff) | |
download | hyde-main.tar.lz hyde-main.tar.zst hyde-main.zip |
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 7 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 6 |
4 files changed, 11 insertions, 8 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8b6c324..ddf0d35 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,4 +7,4 @@ {{ template "_internal/google_analytics_async.html" . }} </body> -</html> \ No newline at end of file +</html> diff --git a/layouts/index.html b/layouts/index.html index 04d3175..f9ddeae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" -}} <div class="posts"> {{ range .Data.Pages -}} -<div class="post"> +<article class="post"> <h1 class="post-title"> <a href="{{ .Permalink }}">{{ .Title }}</a> </h1> @@ -12,7 +12,7 @@ <a href="{{ .RelPermalink }}">Read Moreā¦</a> </div> {{ end }} -</div> +</article> {{- end }} </div> {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5d1df3c..d7b936c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,7 @@ <!DOCTYPE html> <html lang="en-GB"> <head> + <link href="//gmpg.org/xfn/11" rel="profile"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> @@ -18,6 +19,8 @@ <link rel="prefetch" href="/css/syntax.css"> {{- end }} <link rel="stylesheet" href="/css/hyde.css"> - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"> + {{ range .AlternativeOutputFormats -}} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{ end -}} {{ partial "hook_head_end.html" . }} - </head> \ No newline at end of file + </head> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c89cc6f..c8fa089 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -19,9 +19,9 @@ <nav> <ul class="sidebar-nav"> - <li><a href="{{ .Site.BaseURL }}">Home</a></li> - {{- range .Site.Menus.main }} - <li><a href="{{.URL}}">{{ .Name }}</a></li> + <li><a href="{{ .Site.BaseURL }}">Home</a> </li> + {{ range .Site.Menus.main -}} + <li><a href="{{.URL}}"> {{ .Name }} </a></li> {{- end }} </ul> </nav> |