1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

layouts/_default/baseof.html: Use template variable for RSS link

This is the whole site's RSS feed, not just posts. I suppose this
is better for multilingual sites, and sites with many pages.
This commit is contained in:
Alan Orth 2016-10-05 15:29:16 +03:00
parent 07ea0a3d68
commit 98a8c2b234
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -12,8 +12,8 @@
{{ "<!-- combined, minified CSS -->" | safeHTML }} {{ "<!-- combined, minified CSS -->" | safeHTML }}
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet"> <link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet">
{{ "<!-- RSS 2.0 feed of posts -->" | safeHTML }} {{ "<!-- RSS 2.0 feed -->" | safeHTML }}
<link href="{{ .Site.BaseURL }}post/index.xml" type="application/rss+xml" rel="alternate"> <link href="{{ .Site.RSSLink }}" type="application/rss+xml" rel="alternate">
</head> </head>
<body> <body>
@ -21,7 +21,7 @@
<div class="blog-masthead"> <div class="blog-masthead">
<div class="container"> <div class="container">
<nav class="nav blog-nav"> <nav class="nav blog-nav">
<a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL }}">Home</a> <a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL | absLangURL }}">{{ i18n "home" }}</a>
{{ range where .Site.Pages "Type" "!=" "post" }} {{ range where .Site.Pages "Type" "!=" "post" }}
<a class="nav-link" href="{{ .Permalink }}">{{ .Title }}</a> <a class="nav-link" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }} {{ end }}