Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Zambrano <brianz@gmail.com>2016-05-06 01:27:24 +0300
committerBrian Zambrano <brianz@gmail.com>2016-05-06 01:27:24 +0300
commit71d87eed896376fe44fe8a4c09537c63ecf206fe (patch)
tree8d4705dbdb4fcac6a8e963105d509f528ace9915 /layouts
parentd9d01fea0a61f066193f09cd43b03da352b7f050 (diff)
Use .RSSlink rather than manually building link
Previously it was possible to create a nonexist link. If `Site.BaseURL` didn't end in a `/` the constructed RSS link would be of the form `http://mysite.comindex.xml`
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/partials/social.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4e267be..ea68981 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -33,7 +33,9 @@
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
<!-- RSS -->
- <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}index.xml" />
+ {{ if .RSSlink }}
+ <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .RSSlink }}" />
+ {{ end }}
{{ with .Site.Params.highlightjs }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/{{ . }}.min.css">
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 354d0d4..4594465 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -1,9 +1,11 @@
<div class="pure-menu social">
<ul class="pure-menu-list">
+ {{ if .RSSlink }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss fa-fw"></i>RSS</a>
+ <a class="pure-menu-link" href="{{ .RSSlink }}"><i class="fa fa-rss fa-fw"></i>RSS</a>
</li>
+ {{ end }}
<!-- SNS microblogging -->