use / as base url for links in rss to avoid spamming webmentions

This commit is contained in:
Wouter Groeneveld 2022-04-12 08:31:52 +02:00
parent 335a066ae5
commit d64884d575
1 changed files with 3 additions and 3 deletions

View File

@ -80,18 +80,18 @@
{{ end }}
<p>
By <a href="{{ $baseurl }}about">{{ .Site.Author.name }}</a> on <time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}</time>.
By <a href="/about">{{ .Site.Author.name }}</a> on <time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}</time>.
</p>
{{ if .Params.game_name }}
<hr/>
<p>
{{ $platform := .CurrentSection.Title }}
{{ with .CurrentSection.Params.platform }}
&nbsp;Played on: <a href="{{ $baseurl }}games/{{ lower . }}">{{ $platform }}</a><br/>
&nbsp;Played on: <a href="/games/{{ lower . }}">{{ $platform }}</a><br/>
{{ end }}
{{ with .Params.game_genre }}
{{ $tag := replaceRE `\s` "-" . }}
&nbsp;Genre: <a href="{{ $baseurl }}tags/{{ $tag | lower }}">{{ . }}</a><br/>
&nbsp;Genre: <a href="/tags/{{ $tag | lower }}">{{ . }}</a><br/>
{{ end }}
{{ with .Params.game_release_year }}
&nbsp;Release year: {{ . }}<br/>