mirror of
https://github.com/marcriera/ddgo-controller-docs.git
synced 2025-04-20 02:29:29 +02:00
Move info to YAML data
This commit is contained in:
parent
c54a03cb7d
commit
11ea53a1d3
10 changed files with 93 additions and 34 deletions
|
@ -10,7 +10,7 @@ themeVariant = [ "relearn-light", "relearn-dark" ]
|
|||
collapsibleMenu = true
|
||||
disableLandingPageButton = true
|
||||
disableShortcutsTitle=true
|
||||
custom_css = [ "css/custom.css" ]
|
||||
custom_css = [ "css/custom.css", "css/compatibility.css" ]
|
||||
|
||||
[markup]
|
||||
[markup.goldmark]
|
||||
|
|
6
content/games/ps1/densha/_index.md
Normal file
6
content/games/ps1/densha/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "Densha de GO!"
|
||||
weight: 1
|
||||
---
|
||||
|
||||
{{% game-page "ps1_densha" %}}
|
|
@ -1,14 +1,6 @@
|
|||
---
|
||||
title: "Densha de Go! Shinkansen EX San'yō Shinkansen-hen"
|
||||
title: "Densha de GO! Shinkansen EX San'yō Shinkansen-hen"
|
||||
weight: 1
|
||||
---
|
||||
|
||||
## Game details
|
||||
|
||||
{{< game-table "wii_shinkansen" >}}
|
||||
|
||||
## Controller compatibility
|
||||
|
||||
| Model | Notes |
|
||||
|:----------------------------------------|:-------|
|
||||
| TCPP-20017: Shinkansen controller (Wii) | Native |
|
||||
{{% game-page "wii_shinkansen" %}}
|
||||
|
|
23
data/controllers.yml
Normal file
23
data/controllers.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
slph00051:
|
||||
name: "Two-handle controller (PlayStation)"
|
||||
date: 2007-03-01
|
||||
code: "SLPH-00051"
|
||||
ref: "/controllers/classic/slph00051"
|
||||
|
||||
tcpp20001:
|
||||
name: "Single-handle controller (PlayStation)"
|
||||
date: 2007-03-01
|
||||
code: "TCPP-20001"
|
||||
ref: "/controllers/classic/tcpp20001"
|
||||
|
||||
tcpp20002:
|
||||
name: "Mamecon controller (PlayStation)"
|
||||
date: 2007-03-01
|
||||
code: "TCPP-20002"
|
||||
ref: "/controllers/classic/tcpp20002"
|
||||
|
||||
tcpp20017:
|
||||
name: "Shinkansen controller (Wii)"
|
||||
date: 2007-03-01
|
||||
code: "TCPP-20017"
|
||||
ref: "/controllers/wii/tcpp20017"
|
18
data/games.yml
Normal file
18
data/games.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
ps1_densha:
|
||||
name: "Densha de GO!"
|
||||
namejp: "電車でGO!"
|
||||
date: 1997-12-18
|
||||
code: "SCPS-45166"
|
||||
controllers:
|
||||
- model: slph00051
|
||||
- model: tcpp20001
|
||||
- model: tcpp20002
|
||||
|
||||
wii_shinkansen:
|
||||
name: "Densha de GO! Shinkansen EX San'yō Shinkansen-hen"
|
||||
namejp: "電車でGO!新幹線EX 山陽新幹線編"
|
||||
date: 2007-03-01
|
||||
code: "RVL-P-RG4J"
|
||||
cover: "wii_shinkansen.jpg"
|
||||
controllers:
|
||||
- model: tcpp20017
|
|
@ -1,4 +0,0 @@
|
|||
name: "Densha de Go! Shinkansen EX San'yō Shinkansen-hen"
|
||||
namejp: "電車でGO!新幹線EX 山陽新幹線編"
|
||||
date: 2007-03-01
|
||||
code: "RVL-P-RG4J"
|
36
layouts/shortcodes/game-page.html
Normal file
36
layouts/shortcodes/game-page.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
## Game details
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td rowspan="4">{{ if (index .Site.Data.games (.Get 0)).cover}}<img src="/images/covers/{{ (index .Site.Data.games (.Get 0)).cover }}"/>{{ end }}</td>
|
||||
<td><strong>Name</strong></td>
|
||||
<td>{{ (index .Site.Data.games (.Get 0)).name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Japanese name</strong></td>
|
||||
<td>{{ (index .Site.Data.games (.Get 0)).namejp }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Release date</strong></td>
|
||||
<td>{{ (index .Site.Data.games (.Get 0)).date | time.Format ":date_long" }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Serial code</strong></td>
|
||||
<td>{{ (index .Site.Data.games (.Get 0)).code }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## Controller compatibility
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Model</th>
|
||||
<th>Notes</th>
|
||||
</tr>
|
||||
{{ range (index .Site.Data.games (.Get 0)).controllers }}
|
||||
<tr id="{{ if .adapter }}adapter{{ else }}native{{ end }}">
|
||||
<td>{{ (index $.Site.Data.controllers .model).code }}: {{ (index $.Site.Data.controllers .model).name }}</td>
|
||||
<td>{{ .notes }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
|
@ -1,19 +0,0 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td rowspan="4"><img src="cover.jpg"/></td>
|
||||
<td><strong>Name</strong></td>
|
||||
<td>{{ (index .Site.Data.games "wii_shinkansen").name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Japanese name</strong></td>
|
||||
<td>{{ (index .Site.Data.games "wii_shinkansen").namejp }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Release date</strong></td>
|
||||
<td>{{ (index .Site.Data.games "wii_shinkansen").date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Serial code</strong></td>
|
||||
<td>{{ (index .Site.Data.games "wii_shinkansen").code }}</td>
|
||||
</tr>
|
||||
</table>
|
7
static/css/compatibility.css
Normal file
7
static/css/compatibility.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
table #native {
|
||||
background-color: rgba(189,233,186,.35);
|
||||
}
|
||||
|
||||
table #adapter {
|
||||
background-color: rgba(255,215,140,.35);
|
||||
}
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Loading…
Add table
Reference in a new issue