diff options
author | Gökmen Görgen <gkmngrgn@gmail.com> | 2019-08-08 03:09:28 +0300 |
---|---|---|
committer | Gökmen Görgen <gkmngrgn@gmail.com> | 2019-08-08 03:10:07 +0300 |
commit | 933c2561b6783efaeb48fa0d6b43316b89c73b2b (patch) | |
tree | 2a8af8b6a0b94eda8a5c9ac5d465687ea4176111 | |
parent | 6a072848321de4bd5b7ceddc25e36d52a5928949 (diff) |
fix generation problems in hugoThemes. #13
-rw-r--r-- | layouts/_default/baseof.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer_rss.html | 16 | ||||
-rw-r--r-- | theme.toml | 2 |
3 files changed, 10 insertions, 13 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 70997c7..0823a29 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -47,9 +47,8 @@ <link rel="shortcut icon" href="{{ if .Site.Params.faviconfile }}{{ .Site.Params.faviconfile | absURL }}{{ else }}{{ .Site.BaseURL }}img/favicon.ico{{ end }}"> - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - {{ end }} + + <link href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <noscript> <link href="https://fonts.googleapis.com/css?family=Raleway:400,600,700" rel="stylesheet"> diff --git a/layouts/partials/footer_rss.html b/layouts/partials/footer_rss.html index bbf2259..8001c17 100644 --- a/layouts/partials/footer_rss.html +++ b/layouts/partials/footer_rss.html @@ -1,10 +1,8 @@ -{{ if .Site.RSSLink }} - <a href="{{ .Site.RSSLink }}" - class="mx-1 ml-md-2 mr-md-0 icon" - aria-label="RSS"> +<a href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' + class="mx-1 ml-md-2 mr-md-0 icon" + aria-label="RSS"> - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"> - <path d="M12.8 16C12.8 8.978 7.022 3.2 0 3.2V0c8.777 0 16 7.223 16 16h-3.2zM2.194 11.61c1.21 0 2.195.985 2.195 2.196 0 1.21-.99 2.194-2.2 2.194C.98 16 0 15.017 0 13.806c0-1.21.983-2.195 2.194-2.195zM10.606 16h-3.11c0-4.113-3.383-7.497-7.496-7.497v-3.11c5.818 0 10.606 4.79 10.606 10.607z"/> - </svg> - </a> -{{ end }} + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"> + <path d="M12.8 16C12.8 8.978 7.022 3.2 0 3.2V0c8.777 0 16 7.223 16 16h-3.2zM2.194 11.61c1.21 0 2.195.985 2.195 2.196 0 1.21-.99 2.194-2.2 2.194C.98 16 0 15.017 0 13.806c0-1.21.983-2.195 2.194-2.195zM10.606 16h-3.11c0-4.113-3.383-7.497-7.496-7.497v-3.11c5.818 0 10.606 4.79 10.606 10.607z"/> + </svg> +</a> @@ -5,7 +5,7 @@ description = "alaGeek website specific theme." homepage = "https://alageek.com" tags = ["clean", "fast", "responsive", "typography", "disqus", "light", "dark", "syntax-highlighting"] features = ["clean", "fast", "responsive", "typography", "disqus", "light", "dark", "syntax-highlighting"] -min_version = "0.40" +min_version = "0.40.0" [author] name = "Gökmen Görgen" |