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/partials | |
parent | 15a6ffcdbbba13c1635c0fc45bfbf4313e75c074 (diff) | |
parent | e36f5799b396ecf7a665b330da8cac5b0b6e2891 (diff) | |
download | hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.tar.lz hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.tar.zst hyde-cd464ebccfc2d517bce1abccbcb43e7f3d1948d3.zip |
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 7 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 6 |
2 files changed, 8 insertions, 5 deletions
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> |