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

Re-add section id headers (#60)

Re-add section id headers
This commit is contained in:
BynariStar 2017-10-25 03:24:44 +03:00 committed by Flame Sage
parent 60e1a513e1
commit 750123e0f9
2 changed files with 13 additions and 2 deletions

View File

@ -53,10 +53,9 @@
{{ range .Data.Pages.GroupByParam "section_id" }} {{ range .Data.Pages.GroupByParam "section_id" }}
{{ range .Pages }} {{ range .Pages }}
{{- $key := substr .Params.title 0 1 }}
{{- $rating := index .Site.Data.compatibility .Params.compatibility }} {{- $rating := index .Site.Data.compatibility .Params.compatibility }}
{{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }} {{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
<tr data-key="{{ $key }}"> <tr data-key="{{ .Params.section_id }}">
<td class="hidden listing-metadata"> <td class="hidden listing-metadata">
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span> <span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
</td> </td>

View File

@ -341,6 +341,18 @@ tbody td {
margin: 0 20px; margin: 0 20px;
} }
/* Used for showing section id at the start of each game section */
.key:after {
content: attr(data-key);
position: absolute;
left: -10px;
font-family: Dosis,"Helvetica Neue",Helvetica,Arial,sans-serif;
text-transform: lowercase;
color: #888;
margin: 15px 0;
font-size: 24px;
}
/* Downloads */ /* Downloads */
#updater-view, #manual-view, .dl-updater-button, #dl-unknown, #dl-autodetect { #updater-view, #manual-view, .dl-updater-button, #dl-unknown, #dl-autodetect {
display: none; display: none;