Skip to content

Commit

Permalink
Update RSS link template
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed May 24, 2023
1 parent 6d12d6e commit ba1ea28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Expand Up @@ -43,8 +43,8 @@
<link rel="shortcut icon"
href="{{ if .Site.Params.faviconfile }}{{ .Site.Params.faviconfile | absURL }}{{ else }}{{ .Site.BaseURL }}img/favicon.ico{{ end }}">

{{ if .Site.RSSLink }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
</head>

Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/footer.html
Expand Up @@ -55,13 +55,13 @@
{{ end }}

{{ if .Site.Params.gitlab }}
<li><a href="https://gitlab.com/{{ .Site.Params.gitlab }}" target="_blank"
rel="noopener"> @{{.Site.Params.gitlab }}</a></li>
<li><a href="https://gitlab.com/{{ .Site.Params.gitlab }}" target="_blank" rel="noopener"></a>
@{{.Site.Params.gitlab }}</a></li>
{{ end }}

{{ if .Site.Params.medium }}
<li><a href="https://medium.com/@{{ .Site.Params.medium }}" target="_blank"
rel="noopener"> @{{.Site.Params.medium }}</a></li>
<li><a href="https://medium.com/@{{ .Site.Params.medium }}" target="_blank" rel="noopener">
@{{.Site.Params.medium }}</a></li>
{{ end }}

{{ if .Site.Params.twitter }}
Expand All @@ -87,8 +87,8 @@
Colophon</a></li>
{{ end }}

{{ if .Site.RSSLink }}
<li><a href="{{ .Site.RSSLink }}" class="mr-0">
{{ with .OutputFormats.Get "RSS" }}
<li><a href="{{ .Permalink }}" class="mr-0">
<svg class="svg-icon mr-1">
<use xlink:href="#rss-fill"></use>
</svg>
Expand Down

0 comments on commit ba1ea28

Please sign in to comment.