diff options
author | Koichi MATSUMOTO <mzch@mac.com> | 2019-07-17 18:20:51 +0300 |
---|---|---|
committer | Koichi MATSUMOTO <mzch@mac.com> | 2019-07-17 18:20:51 +0300 |
commit | 051e4a3c4e88e103bdded9d564081042bc22b3d8 (patch) | |
tree | 653f690bafc795d08aa563dec92dd4564ca6d56d | |
parent | acfd2b3926fbeed05b7cae78185265e116f52a97 (diff) |
Prepare future version
replace depcated code.
-rw-r--r-- | layouts/partials/head.html | 8 | ||||
-rw-r--r-- | layouts/partials/menu.html | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0ba38ec..e1ceb9e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -37,14 +37,16 @@ <meta property="og:type" content="website" /> {{ end }} <!-- Hugo Version number --> - {{ .Hugo.Generator -}} + {{ hugo.Generator -}} <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet"> <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" /> {{- with .Site.Params.favicon }} <link rel='icon' type='image/x-icon' href="{{ . | absURL }}" /> {{- end -}} - {{ if eq .URL "/" }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + {{ if eq .RelPermalink "/" }} + {{ with .Site.Home.AlternativeOutputFormats.Get "RSS" }} + <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> + {{ end }} {{ end }} <script type="text/javascript" src="{{ .Site.BaseURL }}/js/bundle.js"></script> {{ partial "head_custom.html" . }} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 5707fbe..9f7e839 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -13,7 +13,7 @@ </li> {{ else }} <li class="p-menu__listitem"> - <a href="{{ .URL }}"> + <a href="{{ .Permalink }}"> {{- .Name -}} </a> </li> |