diff options
-rw-r--r-- | layouts/partials/head.html | 5 | ||||
-rw-r--r-- | layouts/partials/social.html | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f31a14b..71ebe53 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,8 +36,9 @@ <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <!-- RSS --> - {{ if .RSSLink }} - <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .RSSLink }}" /> + {{ if .OutputFormats.Get "RSS" }} + <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" + href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' /> {{ end }} {{ with .Site.Params.highlightjs }} diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 33e438d..e57bcba 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -1,9 +1,10 @@ <div class="pure-menu social"> <ul class="pure-menu-list"> - {{ if .RSSLink }} + {{ if .OutputFormats.Get "RSS" }} <li class="pure-menu-item"> - <a class="pure-menu-link" href="{{ .RSSLink }}"><i class="fa fa-rss fa-fw"></i>RSS</a> + <a class="pure-menu-link" href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}'><i + class="fa fa-rss fa-fw"></i>RSS</a> </li> {{ end }} |