citra-emu
/
citra-web
Archived
1
0
Fork 0

Fixed broken images.

This commit is contained in:
Chris 2019-08-07 19:35:27 -04:00
parent 18bcd4037c
commit e4375de663
2 changed files with 13 additions and 5 deletions

View File

@ -55,7 +55,9 @@
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }}</span> <span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }}</span>
</td> </td>
<td class="col-md-1 icon"> <td class="col-md-1 icon">
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" /> {{ if (fileExists (print "static/images/game/icons/" .File.BaseFileName ".png")) }}
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" />
{{ end }}
</td> </td>
<td class="col-md-6 title" data-title="{{ strings.TrimPrefix "The " .Params.title }}"> <td class="col-md-6 title" data-title="{{ strings.TrimPrefix "The " .Params.title }}">
<a href="{{ .Permalink }}">{{ .Params.title }}</a> <a href="{{ .Permalink }}">{{ .Params.title }}</a>

View File

@ -39,9 +39,11 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<div class="row"> <div class="row">
<div class="col-md-5"> <div class="col-md-5">
<div class="boxart"> {{ if (fileExists (print "static/images/game/boxart/" .File.BaseFileName ".png")) }}
<img src="{{ .Site.BaseURL }}/images/game/boxart/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" /> <div class="boxart">
</div> <img src="/images/game/boxart/{{ .File.BaseFileName }}.png" />
</div>
{{ end }}
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<!-- Metadata information --> <!-- Metadata information -->
@ -67,7 +69,11 @@
</tr> </tr>
<tr> <tr>
<td>Game Icon</td> <td>Game Icon</td>
<td><img class="img-responsive" src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" /></td> <td>
{{ if (fileExists (print "static/images/game/icons/" .File.BaseFileName ".png")) }}
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" />
{{ end }}
</td>
</tr> </tr>
<tr> <tr>
<td>Title IDs</td> <td>Title IDs</td>