Updated wiki hyperlink for override.

This commit is contained in:
chris062689@gmail.com 2018-11-10 19:11:17 -05:00
parent 4f18d0c1e9
commit 12c0adb5aa

View File

@ -29,6 +29,7 @@
{{ define "main" }} {{ define "main" }}
{{ $gameId := .File.BaseFileName }} {{ $gameId := .File.BaseFileName }}
{{ $wikiId := .Params.wiki_override | default $gameId }}
{{ $rating := index .Site.Data.compatibility .Params.compatibility }} {{ $rating := index .Site.Data.compatibility .Params.compatibility }}
<section class="section content pt-lg"> <section class="section content pt-lg">
{{- if eq .Params.incomplete true }} {{- if eq .Params.incomplete true }}
@ -51,11 +52,11 @@
<div class="message-body"> <div class="message-body">
{{ if .Content }} {{ if .Content }}
<p>The below game entry is based on user submitted content.</p> <p>The below game entry is based on user submitted content.</p>
<p>See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubGamesWikiURL }}/wiki/{{ .File.BaseFileName }}/_edit/">Edit <p>See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubGamesWikiURL }}/wiki/{{ $wikiId }}/_edit/">Edit
this article on Github</a></p> this article on Github</a></p>
{{ else }} {{ else }}
<p>The below game entry is based on user submitted content.</p> <p>The below game entry is based on user submitted content.</p>
<p>See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubGamesWikiURL }}/wiki/{{ .File.BaseFileName }}/">Edit <p>See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubGamesWikiURL }}/wiki/{{ $wikiId }}/">Edit
this article on Github</a></p> this article on Github</a></p>
{{ end }} {{ end }}
</div> </div>