diff options
author | Digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2020-06-23 00:31:25 +0300 |
---|---|---|
committer | Digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2020-06-23 00:31:25 +0300 |
commit | 48ce1bc70bb098aaee9720afe8bca46beece0429 (patch) | |
tree | 09866cacc28b824e58b2309e9c5914e4b5f1fc6c | |
parent | 4e0b7cbfe7b4565ce4dc8544884ff398e9ffbea4 (diff) |
Fix deprecated variables in templates
-rw-r--r-- | layouts/partials/article_footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/article_footer.html b/layouts/partials/article_footer.html index 739af86..6967d92 100644 --- a/layouts/partials/article_footer.html +++ b/layouts/partials/article_footer.html @@ -1,5 +1,5 @@ <footer class="article-footer"> - <a data-url="{{ .Permalink }}" data-id="{{ .UniqueID }}" class="article-share-link"> + <a data-url="{{ .Permalink }}" data-id="{{ .File.UniqueID }}" class="article-share-link"> <i class="fa fa-share"></i> {{with .Site.Data.l10n.articles.share}}{{.}}{{end}} </a> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2348be8..33d7f40 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> <head> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} @@ -11,9 +11,9 @@ {{ else }} <meta name="description" content="{{ .Site.Params.site_description }}"> {{ end }} - {{ with .RSSLink }} - <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> - <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" /> + {{ with .OutputFormats.Get "RSS" }} + <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> + <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" /> {{ end }} <link rel="canonical" href="{{ .Permalink }}"/> <link rel="icon" href="{{ "favicon.ico" | absURL }}"> |