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:
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" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
{{ 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 }}
|
||||
|
||||
{{ $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,8 +12,10 @@
|
|||
</div>
|
||||
<nav class="navigation" data-menu="navigation">
|
||||
<a class="navigation__item {{ if .IsHome }}active{{ end }}" href="/">Latest</a>
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<a class="navigation__item" href="{{ .RelPermalink }}">RSS</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>
|
||||
|
|
Loading…
Reference in a new issue