add Schema.org markup
This commit is contained in:
parent
b2dcf3dfd9
commit
568df51ce5
23 changed files with 1638 additions and 127 deletions
|
@ -140,6 +140,82 @@ cite.article--shortcite::after {
|
|||
content: none;
|
||||
}
|
||||
|
||||
// Schema.org citations
|
||||
|
||||
cite,
|
||||
.cite {
|
||||
font-style: italic;
|
||||
|
||||
&[itemtype$="Code"],
|
||||
&[itemtype$="SocialMediaPosting"],
|
||||
&[itemtype$="SoftwareApplication"],
|
||||
&[itemtype$="WebSite"],
|
||||
&[itemtype$="WebContent"],
|
||||
&[itemtype$="CreativeWorkSeason"],
|
||||
&[itemtype$="PodcastSeason"],
|
||||
&[itemtype$="RadioSeason"],
|
||||
&[itemtype$="TVSeason"],
|
||||
&[itemtype$="CreativeWorkSeries"],
|
||||
&[itemtype$="BookSeries"],
|
||||
&[itemtype$="MovieSeries"],
|
||||
&[itemtype$="VideoGameSeries"],
|
||||
&[itemtype$="Legislation"],
|
||||
&--inherit {
|
||||
font-style: inherit;
|
||||
}
|
||||
|
||||
&[itemtype$="Article"],
|
||||
&[itemtype$="BlogPosting"],
|
||||
&[itemtype$="NewsArticle"],
|
||||
&[itemtype$="AnalysisNewsArticle"],
|
||||
&[itemtype$="ReportageNewsArticle"],
|
||||
&[itemtype$="OpinionNewsArticle"],
|
||||
&[itemtype$="ScholarlyArticle"],
|
||||
&[itemtype$="TechArticle"],
|
||||
&[itemtype$="Chapter"],
|
||||
&[itemtype$="Clip"],
|
||||
&[itemtype$="MovieClip"],
|
||||
&[itemtype$="RadioClip"],
|
||||
&[itemtype$="TVClip"],
|
||||
&[itemtype$="VideoGameClip"],
|
||||
&[itemtype$="Comment"],
|
||||
&[itemtype$="Course"],
|
||||
&[itemtype$="DigitalDocument"],
|
||||
&[itemtype$="NoteDigitalDocument"],
|
||||
&[itemtype$="PresentationDigitalDocument"],
|
||||
&[itemtype$="TextDigitalDocument"],
|
||||
&[itemtype$="Episode"],
|
||||
&[itemtype$="PodcastEpisode"],
|
||||
&[itemtype$="RadioEpisode"],
|
||||
&[itemtype$="TVEpisode"],
|
||||
&[itemtype$="MusicRecording"],
|
||||
&[itemtype$="MusicComposition"],
|
||||
&[itemtype$="Message"],
|
||||
&--enquote {
|
||||
font-style: normal;
|
||||
|
||||
&::before {
|
||||
content: "“";
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "”";
|
||||
}
|
||||
}
|
||||
|
||||
&--normal {
|
||||
font-style: normal !important;
|
||||
|
||||
&::before {
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.episode-number,
|
||||
.authors--addtional,
|
||||
.year--original {
|
||||
|
@ -226,8 +302,11 @@ kbd {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pre-nominals,
|
||||
.post-nominals {
|
||||
font-size: 0.6em;
|
||||
font-variant: small-caps;
|
||||
/*
|
||||
* Special Text
|
||||
*/
|
||||
|
||||
:where([title]) {
|
||||
text-decoration: underline;
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
.feed-icon {
|
||||
display: inline-block;
|
||||
height: 0.6em;
|
||||
width: 0.6em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
.feed-icon {
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.site-header__icons a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: 'Rojava Anarchists: On eYear Since the Turkish Invasion of Rojava: An Interview with Tekoşîna Anarşîst'
|
||||
title: 'Rojava Anarchists: One Year Since the Turkish Invasion of Rojava: An Interview with Tekoşîna Anarşîst'
|
||||
date: 2023-09-02
|
||||
---
|
||||
|
||||
|
|
5
content/games/current/_index.md
Normal file
5
content/games/current/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Current Games
|
||||
---
|
||||
|
||||
All the games I'm currently playing
|
|
@ -1,21 +1,28 @@
|
|||
[
|
||||
{
|
||||
"Title": "The Field Guide to Understanding ‘Human Error’",
|
||||
"Edition": "Third Edition",
|
||||
"Author": "Sidney Dekker",
|
||||
"Date Added": "2023-07-14",
|
||||
"Date Started": "2023-09-25"
|
||||
"Date Started": "2023-09-25",
|
||||
"Year Published": "2017",
|
||||
"Original Publication Year": "2014"
|
||||
},
|
||||
{
|
||||
"Title": "Hillwalking",
|
||||
"Author": "Steve Long",
|
||||
"Edition": "Third Edition",
|
||||
"Date Added": "2023-09-30",
|
||||
"Date Started": "2023-09-18"
|
||||
"Date Started": "2023-09-18",
|
||||
"Year Published": "2014",
|
||||
"Original Publication Year": "2003"
|
||||
},
|
||||
{
|
||||
"Title": "Everyday Stalinism: Ordinary Life in Extraordinary Times: Soviet Russia in the 1930s",
|
||||
"Author": "Sheila Fitzpatrick",
|
||||
"Date Added": "2023-06-30",
|
||||
"Date Started": "2023-09-18"
|
||||
"Date Started": "2023-09-13",
|
||||
"Year Published": "1999"
|
||||
},
|
||||
{
|
||||
"Additional Authors": "Aleida Guevara March",
|
||||
|
@ -26,10 +33,12 @@
|
|||
"Date Started": "2023-05-11",
|
||||
"ISBN13": "9781920888114",
|
||||
"Number of Pages": 163,
|
||||
"Original Publication Year": "",
|
||||
"Original Publication Year": "1993",
|
||||
"Publisher": "Ocean Sur",
|
||||
"Read Count": 0,
|
||||
"Title": "Diarios de Motocicleta: Notas de Viaje por América Latina",
|
||||
"TitleLang": "es",
|
||||
"TitleTrans": "The Motorcycle Diaries: Notes on a Latin American Journey",
|
||||
"Year Published": "2004"
|
||||
},
|
||||
{
|
||||
|
@ -41,7 +50,7 @@
|
|||
"Date Started": "2023-05-17",
|
||||
"ISBN13": "9781876175702",
|
||||
"Number of Pages": 241,
|
||||
"Original Publication Year": "1992",
|
||||
"Original Publication Year": "1993",
|
||||
"Publisher": "Ocean Press",
|
||||
"Read Count": 0,
|
||||
"Title": "The Motorcycle Diaries: Notes on a Latin American Journey",
|
||||
|
|
|
@ -1846,6 +1846,8 @@
|
|||
},
|
||||
{
|
||||
"Title": "La Peste",
|
||||
"TitleLang": "fr",
|
||||
"TitleTrans": "The Plague",
|
||||
"Author": "Albert Camus",
|
||||
"ISBN": null,
|
||||
"ISBN13": null,
|
||||
|
|
|
@ -1,17 +1,24 @@
|
|||
[
|
||||
{
|
||||
"Date Added": "2022-04-03",
|
||||
"Title": "The Memory of Justice",
|
||||
"Release Year": "1976",
|
||||
"Letterboxd URI": "https://boxd.it/36u2",
|
||||
"Date Watched": "2023-10-05"
|
||||
},
|
||||
{
|
||||
"Date Added": "2023-09-30",
|
||||
"Title": "Reservoir Dogs",
|
||||
"Release Year": "1991",
|
||||
"Letterboxd URI": "https://www.imdb.com/title/tt6493238/",
|
||||
"Date Watched": "2022-09-15"
|
||||
"Date Watched": "2023-09-15"
|
||||
},
|
||||
{
|
||||
"Date Added": "2023-08-31",
|
||||
"Title": "The Deepest Breath",
|
||||
"Release Year": "2023",
|
||||
"Letterboxd URI": "https://www.imdb.com/title/tt24132732/",
|
||||
"Date Watched": "2022-08-27"
|
||||
"Date Watched": "2023-08-27"
|
||||
},
|
||||
{
|
||||
"Date Added": "2022-01-04",
|
||||
|
@ -19,7 +26,7 @@
|
|||
"Release Year": "2021",
|
||||
"Letterboxd URI": "https://boxd.it/2qX5PV",
|
||||
"Rewatch": true,
|
||||
"Date Watched": "2022-08-27",
|
||||
"Date Watched": "2023-08-27",
|
||||
"Comments": "Still an impressive achievement, but it's amazing how quickly this has aged."
|
||||
},
|
||||
{
|
||||
|
@ -103,6 +110,8 @@
|
|||
{
|
||||
"Date Added": "2023-07-09",
|
||||
"Title": "Tout va bien",
|
||||
"TitleLang": "fr",
|
||||
"TitleTrans": "All's Well",
|
||||
"Release Year": "1972",
|
||||
"Letterboxd URI": "https://www.imdb.com/title/tt0069398/",
|
||||
"Rewatch": false,
|
||||
|
|
|
@ -18801,12 +18801,6 @@
|
|||
"Release Year": "1988",
|
||||
"Letterboxd URI": "https://boxd.it/3Die"
|
||||
},
|
||||
{
|
||||
"Date Added": "2022-04-03",
|
||||
"Title": "The Memory of Justice",
|
||||
"Release Year": "1976",
|
||||
"Letterboxd URI": "https://boxd.it/36u2"
|
||||
},
|
||||
{
|
||||
"Date Added": "2022-04-12",
|
||||
"Title": "Good Copy Bad Copy",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"Series": "Halo",
|
||||
"Date Started": "2023-09-15",
|
||||
"Date Finished": "2023-10-02",
|
||||
"Platforms": "PC",
|
||||
"Level of Completion": "Main Story",
|
||||
"Developers": "Bungie",
|
||||
"Date Released": "2009-09-22",
|
||||
|
@ -21,6 +22,7 @@
|
|||
"Title": "Mountain",
|
||||
"Date Started": "2023-09-04",
|
||||
"Date Finished": "2023-09-04",
|
||||
"Platforms": "PC",
|
||||
"Developers": "David O'Reilly",
|
||||
"Date Released": "2014-07-01",
|
||||
"GiantBomb ID": "46636"
|
||||
|
@ -28,6 +30,7 @@
|
|||
{
|
||||
"Title": "Halo 2",
|
||||
"Date Started": "2023-09-01",
|
||||
"Platforms": "PC",
|
||||
"Date Finished": "2023-09-04",
|
||||
"Developers": "Bungie",
|
||||
"Date Released": "2004-11-09",
|
||||
|
@ -36,7 +39,8 @@
|
|||
},
|
||||
{
|
||||
"Title": "Metro Exodus",
|
||||
"Date Started": "2023-08-13",
|
||||
"Date Started": "2023-08-13",
|
||||
"Platforms": "PC",
|
||||
"Date Finished": "2023-08-23",
|
||||
"Developers": "4A Games",
|
||||
"Date Released": "2019-02-15",
|
||||
|
@ -45,6 +49,7 @@
|
|||
},
|
||||
{
|
||||
"Title": "Halo: Reach",
|
||||
"Platforms": "PC",
|
||||
"Date Started": "2023-08-08",
|
||||
"Date Finished": "2023-08-10",
|
||||
"Level of Completion": "Main Story",
|
||||
|
@ -113,9 +118,11 @@
|
|||
},
|
||||
{
|
||||
"Title": "CROAR: Cronopios Autónomos Rebeldes",
|
||||
"TitleLang": "es",
|
||||
"TitleTrans": "CROAR: Rebel Autonomous Cronopios",
|
||||
"Platforms": "Board Games",
|
||||
"Developers": "SERALZ",
|
||||
"Date Released": "",
|
||||
"Date Released": "Unknown",
|
||||
"Date Started": "2023-06-07",
|
||||
"Date Finished": "2023-06-07"
|
||||
},
|
||||
|
|
1363
data/itemtypes.json
Normal file
1363
data/itemtypes.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,10 @@
|
|||
[
|
||||
{
|
||||
"Series Title": "The Sandbaggers",
|
||||
"Episode Title": "First Principles",
|
||||
"Episode Number": "S01E01",
|
||||
"Date Watched": "2023-10-05"
|
||||
},
|
||||
{
|
||||
"Series Title": "Once Upon a Time in Northern Ireland",
|
||||
"Episode Title": "Who Wants to Live Like That?",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<h1 class="page-title">{{ .Title | safeHTML }}
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img class="feed-icon" src="/images/feed-icon.png">
|
||||
<img class="feed-icon" src="/images/feed-icon.svg">
|
||||
</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{{ define "main-header" }}
|
||||
<header class="site-content__header">
|
||||
{{ $section := first 1 ( split .File.Dir "/" ) }}
|
||||
{{ if ( in "books" ( delimit $section "" ) ) }}
|
||||
{{ if ( or ( in "books" ( delimit $section "" ) ) ( in "games" ( delimit $section "" ) ) ) }}
|
||||
<a href="/{{ delimit $section "" }}/current">Current</a> ~
|
||||
{{ end }}
|
||||
<a href="/{{ delimit $section "" }}/log">Log</a> ~
|
||||
|
@ -19,7 +19,7 @@
|
|||
<h1 class="page-title">{{ .Title | safeHTML }}
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img class="feed-icon" src="/images/feed-icon.png">
|
||||
<img class="feed-icon" src="/images/feed-icon.svg">
|
||||
</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
|
|
7
layouts/partials/books/publication-year.html
Normal file
7
layouts/partials/books/publication-year.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<p class="year">{{- index . "Year Published" -}}
|
||||
{{- if ( index . "Original Publication Year" ) -}}
|
||||
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
|
||||
<span class="year--original">(<abbr title="original publication year">orig.</abbr> {{ index . "Original Publication Year" }})</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</p>
|
|
@ -3,17 +3,7 @@
|
|||
<tr>
|
||||
<td>{{ if index . "Date Added" }}{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}{{ else }}n/a{{end }}</td>
|
||||
<td>
|
||||
<p>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "books" ) "Title" .Title ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="book">{{ .Title }}</cite>{{ if .Edition }} <span class="book--edition">({{ .Edition }})</span>{{ end }}
|
||||
{{- with ( where ( where $.Site.Pages "Section" "books" ) "Title" .Title ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</p>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "Book" ) -}}
|
||||
</td>
|
||||
<td>
|
||||
<p class="author">{{ .Author }}</p>
|
||||
|
@ -22,19 +12,14 @@
|
|||
{{- end -}}
|
||||
</td>
|
||||
<td>
|
||||
<p class="year">{{- index . "Year Published" -}}
|
||||
{{- if ( index . "Original Publication Year" ) -}}
|
||||
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
|
||||
<span class="year--original">(<abbr title="original publication year">orig.</abbr> {{ index . "Original Publication Year" }})</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- partial "books/publication-year.html" . -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
||||
{{- end -}}–
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
||||
<tr>
|
||||
|
@ -63,12 +48,7 @@
|
|||
{{- end -}}
|
||||
</td>
|
||||
<td>
|
||||
<p class="year">{{- index . "Year Published" -}}
|
||||
{{- if ( index . "Original Publication Year" ) -}}
|
||||
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
|
||||
<span class="year--original">(<abbr title="original publication year">orig.</abbr> {{ index . "Original Publication Year" }})</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- partial "books/publication-year.html" . -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
|
@ -81,7 +61,7 @@
|
|||
Unknown
|
||||
{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
{{ end }}
|
||||
<tr>
|
||||
<td colspan=5><h3>Assorted</h3></td>
|
||||
|
@ -109,12 +89,7 @@
|
|||
{{- end -}}
|
||||
</td>
|
||||
<td>
|
||||
<p class="year">{{- index . "Year Published" -}}
|
||||
{{- if ( index . "Original Publication Year" ) -}}
|
||||
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
|
||||
<span class="year--original">(<abbr title="original publication year">orig.</abbr> {{ index . "Original Publication Year" }})</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- partial "books/publication-year.html" . -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
|
@ -127,7 +102,7 @@
|
|||
Unknown
|
||||
{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
||||
{{ range ( sort $.Site.Data.books.wishlist "Title" "asc" ) }}
|
||||
|
@ -153,14 +128,9 @@
|
|||
{{- end -}}
|
||||
</td>
|
||||
<td>
|
||||
<p class="year">{{- index . "Year Published" -}}
|
||||
{{- if ( index . "Original Publication Year" ) -}}
|
||||
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
|
||||
<span class="year--original">(<abbr title="original publication year">orig.</abbr> {{ index . "Original Publication Year" }})</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- partial "books/publication-year.html" . -}}
|
||||
</td>
|
||||
<td>n/a</td>
|
||||
</tr>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
16
layouts/partials/cite.html
Normal file
16
layouts/partials/cite.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{- $itemType := default "CreativeWork" .schemaType -}}
|
||||
|
||||
{{- with .c -}}
|
||||
<cite
|
||||
class="cite{{ with .CiteStyle }} cite--{{ . }}{{ end }}"
|
||||
itemscope
|
||||
itemprop="citation"
|
||||
itemtype="https://schema.org/{{- $itemType -}}"
|
||||
{{- if .TitleLang -}}
|
||||
lang="{{- .TitleLang -}}"
|
||||
title="{{- .TitleTrans -}}"
|
||||
{{- end -}}>
|
||||
{{- default .Title $.title -}}
|
||||
</cite>
|
||||
{{- if .Edition }} <span class="edition">({{ .Edition }})</span>{{- end -}}
|
||||
{{- end -}}
|
|
@ -6,15 +6,7 @@
|
|||
<tr>
|
||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
||||
<td>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="film">{{ .Title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "Movie" ) -}}
|
||||
</td>
|
||||
<td>{{ index . "Release Year" }}</td>
|
||||
<td>
|
||||
|
|
|
@ -1,40 +1,78 @@
|
|||
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
|
||||
{{ .Scratch.Set "filterCol" "Title" }}
|
||||
{{ .Scratch.Set "filterDir" "asc" }}
|
||||
{{ range ( sort $.Site.Data.games.current "Date Started" "desc" ) }}
|
||||
<tr>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "VideoGame" ) -}}
|
||||
</td>
|
||||
<td>{{ index . "Date Released" }}</td>
|
||||
<td>{{ .Platforms }}</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}–Unknown
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
||||
{{ .Scratch.Set "filterCol" "Title" }}
|
||||
{{ .Scratch.Set "filterDir" "asc" }}
|
||||
<tr>
|
||||
<td colspan=4><h3>Diary</h3></td>
|
||||
</tr>
|
||||
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }}
|
||||
<tr>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "VideoGame" ) -}}
|
||||
</td>
|
||||
<td>{{ index . "Date Released" }}</td>
|
||||
<td>{{ .Platforms }}</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}–{{- if index . "Date Finished" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}
|
||||
{{- if index . "Level of Completion" }} <span class="games__level-of-completion">({{ index . "Level of Completion" }})</span>{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
<tr>
|
||||
<td colspan=5><h3>Assorted</h3></td>
|
||||
</tr>
|
||||
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "" ) "Title" "asc" ) }}
|
||||
<tr>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "VideoGame" ) -}}
|
||||
</td>
|
||||
<td>{{ index . "Date Released" }}</td>
|
||||
<td>{{ .Platforms }}</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}–{{- if index . "Date Finished" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}
|
||||
{{- if index . "Level of Completion" }} <span class="games__level-of-completion">({{ index . "Level of Completion" }})</span>{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
||||
{{ .Scratch.Set "filterCol" "Title" }}
|
||||
{{ .Scratch.Set "filterDir" "asc" }}
|
||||
{{ end }}
|
||||
|
||||
{{ range ( sort ( index $.Site.Data.games ( .Scratch.Get "listMode" ) ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
|
||||
<tr>
|
||||
<td>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Title ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="game">{{ .Title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Title ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td>{{ index . "Date Released" }}</td>
|
||||
<td>{{ .Platforms }}</td>
|
||||
<td>
|
||||
{{- if index . "Date Started" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}–{{- if index . "Date Finished" -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
|
||||
{{- else -}}
|
||||
Unknown
|
||||
{{- end -}}
|
||||
{{- if index . "Level of Completion" }} <span class="games__level-of-completion">({{ index . "Level of Completion" }})</span>{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{ range ( sort $.Site.Data.games.wishlist "Title" "asc" ) }}
|
||||
<tr>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "VideoGame" ) -}}
|
||||
</td>
|
||||
<td>{{ index . "Date Released" }}</td>
|
||||
<td>{{ .Platforms }}</td>
|
||||
<td>n/a</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<a href="mailto:{{ $.Site.Author.email }}" rel="me">📧</a> ~
|
||||
<a href="{{ .Site.Params.codeURL }}">💻</a> ~
|
||||
<a href="/{{ .Site.Params.keyfile }}">🔐</a> ~
|
||||
<a href="/index.xml"><img class="feed-icon" src="/images/feed-icon.png"></a> ~
|
||||
<a href="/index.xml"><img class="feed-icon" src="/images/feed-icon.svg"></a> ~
|
||||
</p>
|
||||
|
||||
<nav class="site-header__nav">
|
||||
|
|
|
@ -7,19 +7,11 @@
|
|||
{{ range ( sort ( sort ( index $.Site.Data.tv ( .Scratch.Get "listMode" ) ) "Episode Title" "asc" ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
|
||||
<tr>
|
||||
<td>
|
||||
<cite class="series">{{ index . "Series Title" }}</cite>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "Book" "title" ( index . "Series Title" ) ) -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "tv" ) "Title" ( index . "Episode Title" ) ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="episode">{{ index . "Episode Title" }}</cite>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
||||
<span class="episode-number">({{ index . "Episode Number" }})</span>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "tv" ) "Title" ( index . "Episode Title" ) ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- if ( index . "Date Watched" ) -}}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "1.0.0",
|
||||
"description": "Ben Goldsworthy's media cataloguing site.",
|
||||
"scripts": {
|
||||
"build": "rm -rf ./public/ && snap run hugo -v --templateMetrics --templateMetricsHints",
|
||||
"build": "rm -rf ./public/ && snap run hugo --templateMetrics --templateMetricsHints",
|
||||
"deploy": "rsync -rP ./public/ ovhvps:~/catalogue/content",
|
||||
"lint:json": "jsonlint */**/*.json -s",
|
||||
"lint:json": "jsonlint ./**/*.json -s",
|
||||
"lint:json:fix": "npm run lint:json -- -i"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
BIN
static/images/feed-icon.png
Normal file
BIN
static/images/feed-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
18
static/images/feed-icon.svg
Normal file
18
static/images/feed-icon.svg
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="128px" height="128px" id="RSSicon" viewBox="0 0 256 256">
|
||||
<defs>
|
||||
<linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915" id="RSSg">
|
||||
<stop offset="0.0" stop-color="#E3702D"/><stop offset="0.1071" stop-color="#EA7D31"/>
|
||||
<stop offset="0.3503" stop-color="#F69537"/><stop offset="0.5" stop-color="#FB9E3A"/>
|
||||
<stop offset="0.7016" stop-color="#EA7C31"/><stop offset="0.8866" stop-color="#DE642B"/>
|
||||
<stop offset="1.0" stop-color="#D95B29"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="256" height="256" rx="55" ry="55" x="0" y="0" fill="#CC5D15"/>
|
||||
<rect width="246" height="246" rx="50" ry="50" x="5" y="5" fill="#F49C52"/>
|
||||
<rect width="236" height="236" rx="47" ry="47" x="10" y="10" fill="url(#RSSg)"/>
|
||||
<circle cx="68" cy="189" r="24" fill="#FFF"/>
|
||||
<path d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" fill="#FFF"/>
|
||||
<path d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" fill="#FFF"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue