1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-26 13:41:39 +00:00

fix(RSS): Add link to feed on single pages

This commit is contained in:
Tixie 2019-12-23 08:41:17 +01:00
parent 4fbca9efe0
commit 460f1bba14
2 changed files with 9 additions and 6 deletions

View file

@ -34,16 +34,17 @@
<meta name="twitter:description" content="Handpicked Albums by the Glitch Family" />
{{ end }}
{{ with .OutputFormats.Get "rss" -}}
{{ with .Site.GetPage "/" }}
{{ with .OutputFormats.Get "rss" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ end }}
{{ end }}
{{ $sass := resources.Get "/scss/style.scss" }}
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
</head>
<body class="sans-serif">
{{ partial "header" . }}

View file

@ -12,9 +12,11 @@
</div>
<nav class="navigation" data-menu="navigation">
<a class="navigation__item {{ if .IsHome }}active{{ end }}" href="/">Latest</a>
{{ with .Site.GetPage "/" }}
{{ with .OutputFormats.Get "RSS" }}
<a class="navigation__item" href="{{ .RelPermalink }}">RSS</a>
{{ end }}
{{ end }}
<button class="navigation__item" data-random="btn">Random</button>
</nav>
<div class="navigation__mobileOverlay" data-menu="overlay"></div>