mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-09 14:51:52 +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" />
|
<meta name="twitter:description" content="Handpicked Albums by the Glitch Family" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .Site.GetPage "/" }}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ with .OutputFormats.Get "rss" }}
|
||||||
{{ end -}}
|
{{ 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" }}
|
{{ $sass := resources.Get "/scss/style.scss" }}
|
||||||
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
||||||
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
|
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
|
||||||
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
|
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="sans-serif">
|
<body class="sans-serif">
|
||||||
|
|
||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
</div>
|
</div>
|
||||||
<nav class="navigation" data-menu="navigation">
|
<nav class="navigation" data-menu="navigation">
|
||||||
<a class="navigation__item {{ if .IsHome }}active{{ end }}" href="/">Latest</a>
|
<a class="navigation__item {{ if .IsHome }}active{{ end }}" href="/">Latest</a>
|
||||||
{{ with .OutputFormats.Get "RSS" }}
|
{{ with .Site.GetPage "/" }}
|
||||||
<a class="navigation__item" href="{{ .RelPermalink }}">RSS</a>
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
|
<a class="navigation__item" href="{{ .RelPermalink }}">RSS</a>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<button class="navigation__item" data-random="btn">Random</button>
|
<button class="navigation__item" data-random="btn">Random</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue