mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-29 23:21:40 +00:00
fix(RSS): Add link to feed on single pages
This commit is contained in:
parent
4fbca9efe0
commit
460f1bba14
2 changed files with 9 additions and 6 deletions
|
@ -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" . }}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue