Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
|
@ -1,11 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1>Not Found</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,3 +0,0 @@
|
|||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
<a href="#{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</a>
|
||||
</h{{ .Level }}>
|
|
@ -1,40 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ site.Language.Lang }}">
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
{{ block "body" . -}}
|
||||
{{- block "before" . -}}{{- end -}}
|
||||
{{- block "header" . -}}{{ partial "header.html" .}}{{- end -}}
|
||||
<main class="{{ .Type }} {{ .Kind }} {{ if gt (len .Pages) 1 }}list{{ else }}page{{ end }}">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{- block "footer" . -}}
|
||||
{{ partial "footer.html" . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- partial "development/page_info.html" . -}}
|
||||
</body>
|
||||
|
||||
{{ with partial "resources/root_css.html" . -}}
|
||||
{{ range . }}<link rel="stylesheet" as="style" href="{{ .Permalink }}">{{ end }}
|
||||
{{- end -}}
|
||||
{{- with partial "resources/section_css.html" . -}}
|
||||
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
|
||||
{{- end -}}
|
||||
{{- with partial "resources/page_css.html" . -}}
|
||||
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{ block "styles" . }}{{ end }}
|
||||
{{ block "scripts" . }}{{ end }}
|
||||
|
||||
{{- with partial "resources/site_js.html" . -}}
|
||||
<script type="module" src="{{ .Permalink }}"></script>
|
||||
{{ end }}
|
||||
{{ if .HasShortcode "ruby" }}
|
||||
{{ with partial "resources/script.html" "ruby_switch" }}
|
||||
<script type="module" src="{{ .Permalink }}"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</html>
|
|
@ -1,37 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<header class="page">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{- $pagesByTag := dict -}}
|
||||
{{- range $page := .Pages }}
|
||||
{{- range $tag := .GetTerms "tags" -}}
|
||||
{{- $tagName := $tag.Name -}}
|
||||
{{- if not (in $pagesByTag $tagName) -}}
|
||||
{{- $pagesByTag = merge $pagesByTag (dict $tagName (slice $page)) -}}
|
||||
{{- else -}}
|
||||
{{- $pagesForTag := index $pagesByTag $tagName -}}
|
||||
{{- $pagesForTag = $pagesForTag | append $page -}}
|
||||
{{- $pagesByTag = merge $pagesByTag (dict $tagName $pagesForTag) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ range $tag, $pages := $pagesByTag }}
|
||||
<h3>{{ $tag }}</h3>
|
||||
<ul>
|
||||
{{- range $pages -}}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,21 +0,0 @@
|
|||
<article class="post">
|
||||
<header>
|
||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "Jan 2, 2006" }}</time>
|
||||
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
{{ else if lt .WordCount 110 }}
|
||||
{{ .Content }}
|
||||
{{ else }}
|
||||
{{ if not .Draft }}
|
||||
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
|
||||
{{ end }}
|
||||
<p>{{ .WordCount }} words</p>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer_tags.html" . }}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</article>
|
|
@ -1,4 +0,0 @@
|
|||
{{/*
|
||||
Intentionally empty to stop pages that shouldn't be included in the RSS feed
|
||||
from being rendered with the default RSS template.
|
||||
*/}}
|
|
@ -1,11 +0,0 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "styles" }}
|
||||
{{ partial "single_styles.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{ partial "single_scripts.html" . }}
|
||||
{{ end }}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"title": "{{ .Title }}",
|
||||
"main": "{{ partial `single_main.html` . }}"
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ partial "ruby_controls.html" . }}
|
||||
|
||||
{{- $hasContent := false -}}
|
||||
{{ with .Content }}
|
||||
{{- $hasContent = true -}}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.posts | default true }}
|
||||
{{ if $hasContent }}
|
||||
<h2>Posts</h2>
|
||||
{{ end }}
|
||||
|
||||
{{- range .Pages -}}
|
||||
{{ .Render "li_grid_with_date" }}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,25 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<header class="page">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{- range .Data.Terms.Alphabetical -}}
|
||||
<h2>{{ .Name | title }}</h2>
|
||||
|
||||
{{- range .WeightedPages -}}
|
||||
{{ if or (not .Draft) (not hugo.IsProduction) }}
|
||||
{{ .Render "li_grid_with_date" }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,33 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- if .HasShortcode "figures/railroad" -}}
|
||||
{{- with partial "resources/railroad_utils.html" . -}}
|
||||
<script defer type="module" src="{{ .RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .HasShortcode "figures/p5" -}}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
|
||||
<script defer src="{{ .Secure.Permalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}}
|
||||
<script defer src="{{ .Secure.Permalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $script := .Resources.Match "*.js" -}}
|
||||
{{- $isModule := default true $script.Params.is_module -}}
|
||||
<script defer {{ if $isModule }}type="module"{{ end }} src="{{ $script.Permalink | relURL }}"></script>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,33 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- if .HasShortcode "figures/railroad" -}}
|
||||
{{- with partial "resources/railroad_utils.html" . -}}
|
||||
<script defer type="module" src="{{ .RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .HasShortcode "figures/p5" -}}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
|
||||
<script defer src="{{ .Secure.Permalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}}
|
||||
<script defer src="{{ .Secure.Permalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $script := .Resources.Match "*.js" -}}
|
||||
{{- $isModule := default true $script.Params.is_module -}}
|
||||
<script defer {{ if $isModule }}type="module"{{ end }} src="{{ $script.Permalink | relURL }}"></script>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,6 +0,0 @@
|
|||
<entry>
|
||||
{{ partial "atom_entry_metadata.xml" . }}
|
||||
{{- if .Content -}}
|
||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||
{{- end -}}
|
||||
</entry>
|
|
@ -1,19 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{- range .Pages.ByDate.GroupByDate "2006" -}}
|
||||
<h1 class="date"><a id="{{ .Key }}">{{ .Key | title }}</a></h1>
|
||||
|
||||
{{- range .Pages -}}
|
||||
{{- if or (not .Draft) (not hugo.IsProduction) -}}
|
||||
{{- .Render "li_grid_with_date" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,6 +0,0 @@
|
|||
<item>
|
||||
{{ partial "rss_item_metadata.rss" . }}
|
||||
<description>{{ `<![CDATA[` | safeHTML }}
|
||||
{{ .Content }}
|
||||
]]></description>
|
||||
</item>
|
|
@ -1,29 +0,0 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}} {{ $pctx = .Site }} {{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}}
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link href="{{ `/feed.atom` | absURL }}" rel="self" />
|
||||
<link href="{{ `/icons/favicon.png` | absURL }}" rel="shortcut icon" />
|
||||
{{ if not .Date.IsZero }}<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Author.name }}
|
||||
<author>
|
||||
<name>{{ . }}</name>
|
||||
{{ with $.Site.Author.email }}<email>{{ . }}</email>{{ end }}
|
||||
<uri>{{ $.Site.Home.Permalink }}</uri>
|
||||
</author>
|
||||
{{ end }}
|
||||
<generator version="{{ hugo.Version }}" uri="https://gohugo.io">Hugo {{ hugo.Version }}</generator>
|
||||
<rights>© 2020-{{ now.Year }} Eryn Wells</rights>
|
||||
{{ range $pages }}{{ .Render "atom_entry" }}{{ end }}
|
||||
</feed>
|
|
@ -1,29 +0,0 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}} {{ $pctx = .Site }} {{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}}
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link href="{{ `/feed.atom` | absURL }}" rel="self" />
|
||||
<link href="{{ `/icons/favicon.png` | absURL }}" rel="shortcut icon" />
|
||||
{{ if not .Date.IsZero }}<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Author.name }}
|
||||
<author>
|
||||
<name>{{ . }}</name>
|
||||
{{ with $.Site.Author.email }}<email>{{ . }}</email>{{ end }}
|
||||
<uri>{{ $.Site.Home.Permalink }}</uri>
|
||||
</author>
|
||||
{{ end }}
|
||||
<generator version="{{ hugo.Version }}" uri="https://gohugo.io">Hugo {{ hugo.Version }}</generator>
|
||||
<rights>© 2020-{{ now.Year }} Eryn Wells</rights>
|
||||
{{ range $pages }}{{ .Render "atom_entry" }}{{ end }}
|
||||
</feed>
|
|
@ -1,11 +0,0 @@
|
|||
{{ define "body" }}
|
||||
<main>
|
||||
<header class="platter">
|
||||
<h1 class="site gradient">{{ partial "site_name.html" .Title }}</h1>
|
||||
<div id="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "site_nav.html" . }}
|
||||
</header>
|
||||
</main>
|
||||
{{ end }}
|
|
@ -1,35 +0,0 @@
|
|||
{{- $pageContext := . -}}
|
||||
{{- if .IsHome -}}
|
||||
{{ $pageContext = .Site }}
|
||||
{{- end -}}
|
||||
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pageContext.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pageContext.Pages -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content on {{ .Site.Title }}</description>
|
||||
<generator>Hugo {{ hugo.Version }}</generator>
|
||||
{{ with .Site.LanguageCode }}<language>{{ . }}</language>{{ end }}
|
||||
{{ with .Site.Author }}
|
||||
<managingEditor>{{ .name }} <{{ .email }}></managingEditor>
|
||||
<webMaster>{{ .name }} <{{ .email }}></webMaster>
|
||||
{{ end }}
|
||||
{{ with .Site.Copyright }}<copyright>{{ . }}</copyright>{{ end }}
|
||||
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}{{ end }}
|
||||
{{ range $pages }}{{ .Render "rss_item" }}{{ end }}
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,36 +0,0 @@
|
|||
{{ define "before" }}
|
||||
<div id="dungeon-background"></div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "styles" }}
|
||||
{{- with partial "secure_asset.html" "styles/nethack.css" -}}
|
||||
{{ with .Secure }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{ else }}
|
||||
{{- errorf "Unable to find nethack.css" -}}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- range .Resources.Match "*.css" -}}
|
||||
{{- $stylesheet := . | fingerprint "md5" }}
|
||||
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}">
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- with partial "secure_asset.html" "scripts/nethack/dungeon.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- range $script := .Resources.Match "*.js" -}}
|
||||
{{- $isModule := default true $script.Params.is_module -}}
|
||||
<script defer {{ if $isModule }}type="module"{{ end }} src="{{ $script.Permalink | relURL }}"></script>
|
||||
{{- end -}}
|
||||
{{ end }}
|
|
@ -1,25 +0,0 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "content_header.html" . }}
|
||||
<nav class="languages">
|
||||
{{ range .AllTranslations }}
|
||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<section class="flashcards">
|
||||
<div class="shadow left"></div>
|
||||
<div class="shadow right"></div>
|
||||
<ul></ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ define "styles" }}
|
||||
{{ partial "single_styles.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- $flashcards := index $.Site.Data.nihongo.flashcards "all" -}}
|
||||
<script>
|
||||
const flashcards = {{ $flashcards | jsonify | safeJS }};
|
||||
</script>
|
||||
{{ partial "single_scripts.html" . }}
|
||||
{{ end }}
|
|
@ -1,11 +0,0 @@
|
|||
<title>{{ .Title }}</title>
|
||||
<id>{{ .Permalink }}</id>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ range slice "series" "categories" "tags" }}
|
||||
{{- range $.GetTerms . }}
|
||||
{{- $scheme := (.Site.GetPage (printf "/%s" .Section)).Permalink -}}
|
||||
<category term="{{ .Name }}" scheme="{{ $scheme }}" label="{{ .Title }}" />
|
||||
{{ end -}}
|
||||
{{ end -}}
|
|
@ -1,26 +0,0 @@
|
|||
<header class="content-title">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ with .Description -}}
|
||||
<p class="subtitle">{{ . }}</p>
|
||||
{{- end }}
|
||||
|
||||
{{ with .Date -}}
|
||||
<time>{{ . | time.Format "January 2, 2006" }}</time>
|
||||
{{- end }}
|
||||
|
||||
{{- if .Params.series -}}
|
||||
{{- $series := .GetTerms "series" -}}
|
||||
|
||||
{{- if gt (len $series) 1 -}}
|
||||
{{- errorf "More than one series for %s" .Permalink -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- with index $series 0 -}}
|
||||
<span class="series">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</header>
|
|
@ -1 +0,0 @@
|
|||
{{ if .Draft }}<span class="draft">draft</span>{{ end }}
|
|
@ -1,22 +0,0 @@
|
|||
{{ if not hugo.IsProduction }}
|
||||
<div class="platter" id="debug-page-info">
|
||||
<details>
|
||||
<summary>Debug Info</summary>
|
||||
<h4>Page Details</h4>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><td>.FirstSection</td><td>{{ .FirstSection }}</td></tr>
|
||||
<tr><td>.Kind</td><td>{{ .Kind }}</td></tr>
|
||||
<tr><td>.Permalink</td><td>{{ .Permalink }}</td></tr>
|
||||
<tr><td>.Section</td><td>{{ .Section }}</td></tr>
|
||||
<tr><td>.Type</td><td>{{ .Type }}</td></tr>
|
||||
</tbody>
|
||||
{{ if eq .Kind "section" }}
|
||||
<tbody>
|
||||
<tr><td>len .Pages</td><td>{{ len .Pages }}</td></tr>
|
||||
</tbody>
|
||||
{{ end }}
|
||||
</table>
|
||||
</details>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,15 +0,0 @@
|
|||
<details>
|
||||
<summary>Debug EXIF Data</summary>
|
||||
<table class="photo-params debug">
|
||||
<thead>
|
||||
<td>Key</td>
|
||||
<td>Value</td>
|
||||
</thead>
|
||||
{{ range $k, $v := .Tags }}
|
||||
<tr>
|
||||
<td>{{ $k }}</td>
|
||||
<td>{{ $v }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</details>
|
|
@ -1,8 +0,0 @@
|
|||
<footer class="site">
|
||||
<ul class="slogans">
|
||||
<li>{{ i18n "transRights" }}</li>
|
||||
<li>{{ i18n "blackLivesMatter" }}</li>
|
||||
<li>{{ i18n "getVaccinated" }}</li>
|
||||
</ul>
|
||||
<p>Copyright © <time datetime="2020">2020</time>—<time datetime="{{ now.Year }}">{{ now.Year }}</time> <a href="{{ `` | absURL }}">Eryn Wells</a></p>
|
||||
</footer>
|
|
@ -1,28 +0,0 @@
|
|||
<div class="taxonomies">
|
||||
{{- if or .Params.categories .Params.tags -}}
|
||||
<ul class="tags">
|
||||
{{- if .Params.categories -}}
|
||||
{{- $categories := .GetTerms "categories" -}}
|
||||
{{- if gt (len $categories) 1 -}}
|
||||
{{- errorf "More than one category for %q" .Path -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- with index (.GetTerms "categories") 0 -}}
|
||||
<li class="category"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
|
||||
{{- if and .Params.categories .Params.tags -}}
|
||||
<div class="chevron noselect">⏵</div>
|
||||
{{- end -}}
|
||||
|
||||
<ul class="tags">
|
||||
{{- if .Params.tags -}}
|
||||
{{- range .GetTerms "tags" -}}
|
||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
</div>
|
|
@ -1,37 +0,0 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000000">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
|
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
|
||||
|
||||
{{- if eq .Kind "page" -}}
|
||||
<meta name="description" content="{{ .Summary }}" />
|
||||
<meta name="author" content="{{ .Params.Author | default site.Author.name }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Params.description }}">
|
||||
<meta name="author" content="{{ site.Author.name }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- range $.Scratch.Get "social-list" -}}
|
||||
<link rel="preload" as="image" href="{{ printf `%s.svg` . | absURL }}">
|
||||
{{- end -}}
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ `icons/favicon.png` | relURL }}">
|
||||
<link rel="apple-touch-icon" type="image/png" href="{{ `icons/touchicon.png` | relURL }}">
|
||||
|
||||
<link rel="me" href="https://mastodon.social/@erynofwales">
|
||||
|
||||
{{ hugo.Generator }}
|
||||
|
||||
{{- range .AlternativeOutputFormats -}}
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .RelPermalink }}" title="{{ site.Title }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- if or hugo.IsProduction (eq site.Params.env "production") -}}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{- end -}}
|
||||
</head>
|
|
@ -1,28 +0,0 @@
|
|||
{{- $currentPage := . -}}
|
||||
{{- $url := .RelPermalink -}}
|
||||
<header class="site">
|
||||
<div class="platter grid">
|
||||
<h1 class="site gradient">
|
||||
<a class="site-name" href="{{ `` | absURL }}">{{ partial "site_name.html" site.Params.shortTitle }}</a>
|
||||
</h1>
|
||||
{{ partial "site_nav.html" . }}
|
||||
<nav class="social">
|
||||
{{ with site.Menus.social }}
|
||||
{{- range . -}}
|
||||
{{- $id := .Identifier -}}
|
||||
{{- $targetBlank := .Params.targetBlank | default true -}}
|
||||
<li id="social-menu-{{ $id }}">
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
{{ if $targetBlank }}
|
||||
target="_blank"
|
||||
{{ end }}
|
||||
aria-label="{{ .Name }}">
|
||||
<img alt="{{ .Name }}" width=20 height=20>
|
||||
</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
|
@ -1,30 +0,0 @@
|
|||
{{ $orientation := 0 }}
|
||||
|
||||
{{ with .Params.orientation }}
|
||||
{{ if strings.Contains . "horizontal" }}
|
||||
{{ $orientation = 0 }}
|
||||
{{ else if strings.Contains . "rotate180" }}
|
||||
{{ $orientation = 180 }}
|
||||
{{ else if strings.Contains . "rotate90" }}
|
||||
{{ $orientation = 90 }}
|
||||
{{ else if strings.Contains . "rotate270" }}
|
||||
{{ $orientation = 270 }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ with (int .Exif.Tags.Orientation) }}
|
||||
{{/* EXIF orientation is specified as an integer corresponding to a 90º rotation. */}}
|
||||
{{ if in (slice 1 2) . }}
|
||||
{{ $orientation = 0 }}
|
||||
{{ else if in (slice 3 4) . }}
|
||||
{{ $orientation = 180 }}
|
||||
{{ else if in (slice 5 6) . }}
|
||||
{{ $orientation = 90 }}
|
||||
{{ else if in (slice 7 8) . }}
|
||||
{{ $orientation = 270 }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ warnf "Image missing orientation: %s" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $orientation }}
|
|
@ -1,6 +0,0 @@
|
|||
{{ $nethack_data := $.Site.Data.nethack.logfile }}
|
||||
{{ $logfile := slice }}
|
||||
{{ range $nethack_data }}
|
||||
{{ $logfile = $logfile | append .logfile }}
|
||||
{{ end }}
|
||||
{{ return $logfile }}
|
|
@ -1,48 +0,0 @@
|
|||
{{- $cause := .death.cause -}}
|
||||
{{- $didAscend := eq $cause "ascended" -}}
|
||||
{{- $level := (cond (gt .dungeon.level.n 0) (.dungeon.level.descriptive | lower) .dungeon.level.descriptive) -}}
|
||||
<div>{{- if $didAscend -}}✨{{- else -}}🪦{{- end -}}</div>
|
||||
<h4 class="date">{{ time.Format "January 2, 2006" .end_date }}</h4>
|
||||
<div class="character-descriptor">{{ .character.abbreviated }}</div>
|
||||
<p>
|
||||
{{- $name := .character.name -}}
|
||||
{{- $descriptiveAlignment := .character.alignment.descriptive | lower -}}
|
||||
{{- $descriptiveRace := .character.race.descriptive | lower -}}
|
||||
{{- $descriptiveRole := .character.role.descriptive -}}
|
||||
{{- if $didAscend -}}
|
||||
{{ $name }}, a {{ $descriptiveAlignment }} {{ $descriptiveRace }} {{ $descriptiveRole }}, ascended.
|
||||
{{- else -}}
|
||||
{{ $name }}, a {{ $descriptiveAlignment }} {{ $descriptiveRace }} {{ $descriptiveRole }}, died
|
||||
{{ if gt .death.count 1 -}}for the last time{{- end }} in
|
||||
<span class="nobreak">{{ .dungeon.name }}</span>
|
||||
on <span class="nobreak">{{ $level }}</span>.
|
||||
She was {{ .death.cause }}.
|
||||
{{- end -}}
|
||||
</p>
|
||||
<table class="stats">
|
||||
<tr>
|
||||
{{- $startDate := time.Format "January, 02 2006" .start_date -}}
|
||||
{{- $startDatetime := time.Format "2006-01-02" .start_date -}}
|
||||
<td class="began">Began <time class="nobreak" datetime="{{ $startDatetime }}">{{ $startDate }}</time></td>
|
||||
<td class="score">{{ .score | lang.FormatNumber 0 }} points</td>
|
||||
{{/*
|
||||
When I first wrote the importer script, I read about the log file
|
||||
format on the Nethackwiki. It labeled a field as "maximum level",
|
||||
which I interpreted as maximum character level. Turns out it's
|
||||
actually maximum *dungeon* level. The script has been updated, but I
|
||||
won't be able to update all the imported logfiles.
|
||||
|
||||
https://nethackwiki.com/wiki/Logfile
|
||||
*/}}
|
||||
{{ with .dungeon.max_level }}
|
||||
<td class="level">{{ .descriptive }}</td>
|
||||
{{ else }}
|
||||
{{ with .character.max_level }}<td class="level">Level {{ . }}</td>{{ end }}
|
||||
{{ end }}
|
||||
<td class="hp">
|
||||
{{- $hp := float .character.hp.n -}}
|
||||
{{- $hpMax := .character.hp.max -}}
|
||||
{{- if gt $hp 0 }}{{ $hp }} / {{ $hpMax }}{{ else }}{{ $hp }}{{ end }} hp
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,66 +0,0 @@
|
|||
<div class="photo-params">
|
||||
<div class="container">
|
||||
<table>
|
||||
{{ if and .Tags.Make .Tags.Model }}
|
||||
<thead>
|
||||
<td class="make-model" colspan=4>
|
||||
{{- $make := .Tags.Make -}}
|
||||
{{- $model := .Tags.Model -}}
|
||||
{{- if in $model $make -}}
|
||||
{{ .Tags.Model }}
|
||||
{{- else -}}
|
||||
{{ .Tags.Make }} {{ .Tags.Model }}
|
||||
{{- end -}}
|
||||
</td>
|
||||
</thead>
|
||||
{{ end }}
|
||||
{{ with .Tags.LensModel }}
|
||||
<tr>
|
||||
<td colspan=4 class="lens">{{ . }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
<tr>
|
||||
{{- $hasLocation := and .Lat .Long -}}
|
||||
{{ if $hasLocation -}}
|
||||
<td colspan=2 class="location">
|
||||
{{ $lat := float .Lat }}{{ $latDir := cond (eq $lat 0) "" (cond (gt $lat 0) "N" "S") }}
|
||||
<data class="latitude" value="{{ $lat }}">{{ .Lat | lang.FormatNumber (cond (ne $lat 0) 3 0) }}º{{ $latDir }}</data>,
|
||||
{{ $long := float .Long }}{{ $longDir := cond (eq $long 0) "" (cond (gt $long 0) "E" "W") }}
|
||||
<data class="longitude" value="{{ $long }}">{{ .Long | lang.FormatNumber (cond (ne $long 0) 3 0) }}º{{ $longDir }}</data>
|
||||
</td>
|
||||
{{- end -}}
|
||||
{{ if and .Tags.PixelXDimension .Tags.PixelYDimension -}}
|
||||
<td colspan={{ if $hasLocation }}2{{ else }}4{{ end }} class="size">
|
||||
{{- $widthpx := .Tags.PixelXDimension -}}
|
||||
{{- $heightpx := .Tags.PixelYDimension -}}
|
||||
{{- if and (gt $widthpx 0) (gt $heightpx 0) -}}
|
||||
{{- $megapixels := div (mul $widthpx $heightpx) 1e6 -}}
|
||||
<data class="megapixels nobreak" value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data>
|
||||
•
|
||||
<span class="nobreak"><data class="width">{{ $widthpx }}</data> × <data class="height">{{ $heightpx }}</data></span>
|
||||
{{- end -}}
|
||||
</td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
{{ if or .Tags.ISOSpeedRatings .Tags.FocalLengthIn35mmFilm .Tags.FNumber .Tags.ExposureTime }}
|
||||
<tr class="exposure-attributes">
|
||||
<td class="iso">{{ with .Tags.ISOSpeedRatings }}ISO {{ . }}{{ end }}</td>
|
||||
<td class="focal-length">
|
||||
{{- $focalLength := .Tags.FocalLengthIn35mmFilm | default .Tags.FocalLength -}}
|
||||
{{- with $focalLength -}}{{ . }} mm{{- end -}}
|
||||
</td>
|
||||
<td class="f-number">{{ with .Tags.FNumber }}{{ printf "ƒ%0.1f" . }}{{ end }}</td>
|
||||
<td class="exposure-time">
|
||||
{{- with $exposureTime := .Tags.ExposureTime -}}
|
||||
{{- if in $exposureTime "/" -}}
|
||||
{{ . }} s
|
||||
{{- else -}}
|
||||
1/{{ printf "%.0f" (div 1.0 (float $exposureTime)) }} s
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
{{ $thumbnailResourcesNames := slice "thumbnail" "Thumbnail" "thumbnail.jpg" "Thumbnail.jpg" }}
|
||||
{{ with index .Params "thumbnail" }}
|
||||
{{ $thumbnailResourcesNames = $thumbnailResourcesNames | append . }}
|
||||
{{ end }}
|
||||
|
||||
{{ $imageResources := .Resources.ByType "image" }}
|
||||
{{ $photos := where $imageResources "Name" "not in" $thumbnailResourcesNames }}
|
||||
|
||||
{{ return $photos }}
|
|
@ -1,50 +0,0 @@
|
|||
{{/*
|
||||
Renders a photo thumbnail. If neither a target height or target width are
|
||||
given, and the image is already in the correct orientation, no image
|
||||
processing is performed.
|
||||
|
||||
Arguments
|
||||
---------
|
||||
"Page" : A reference to the current Page
|
||||
"Height" : The target height of the image
|
||||
"Width" : The target width of the image
|
||||
|
||||
Returns
|
||||
-------
|
||||
The processed thumbnail image resource
|
||||
*/}}
|
||||
|
||||
{{- $thumbnailResource := .Page.Resources.GetMatch
|
||||
(index .Page.Params "thumbnail" | default "[tT]humbnail*")
|
||||
| default (index (.Page.Resources.ByType "image") 0) -}}
|
||||
|
||||
{{- if not $thumbnailResource -}}
|
||||
{{- errorf "No thumbnail available for %s" .Page.Permalink }}
|
||||
{{- end -}}
|
||||
|
||||
{{ $orientation := partial "images/orientation_angle.html" $thumbnailResource }}
|
||||
|
||||
{{ $targetWidth := 0 }}
|
||||
{{ with .Width }}
|
||||
{{ $targetWidth = . }}
|
||||
{{ else }}
|
||||
{{ $targetWidth = $thumbnailResource.Width }}
|
||||
{{ end }}
|
||||
|
||||
{{ $targetHeight := 0 }}
|
||||
{{ with .Height }}
|
||||
{{ $targetHeight = . }}
|
||||
{{ else }}
|
||||
{{ $targetHeight = $thumbnailResource.Height }}
|
||||
{{ end }}
|
||||
|
||||
{{ $thumbnail := false }}
|
||||
{{ if not (and (eq $orientation 0)
|
||||
(eq $targetWidth $thumbnailResource.Width)
|
||||
(eq $targetHeight $thumbnailResource.Height)) }}
|
||||
{{ $thumbnail = $thumbnailResource.Fit (printf "%dx%d r%d" $targetWidth $targetHeight (sub 360 $orientation)) }}
|
||||
{{ else }}
|
||||
{{ $thumbnail = $thumbnailResource }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $thumbnail }}
|
|
@ -1,30 +0,0 @@
|
|||
{{ $imports := dict }}
|
||||
|
||||
{{ if eq 0 1 }}
|
||||
{{ with $tsModuleResources := resources.Match "scripts/modules/*/*" }}
|
||||
{{ range $tsModuleResources }}
|
||||
{{ $resource := . }}
|
||||
{{ if eq (path.Ext .) ".ts" }}
|
||||
{{ $resource = . | js.Build }}
|
||||
{{ end }}
|
||||
|
||||
{{/*
|
||||
Create imports for these scripts that look like $dirname/$basename
|
||||
where basename doesn't have the extension
|
||||
*/}}
|
||||
{{ $directoryBasename := path.Base (path.Dir $resource) }}
|
||||
{{ $key := path.Join $directoryBasename (path.BaseName $resource) }}
|
||||
|
||||
{{ $imports = merge $imports (dict $key $resource.RelPermalink) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $imports = dict "modules/" "scripts/modules/" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $importmap := dict }}
|
||||
{{ if gt (len $imports) 0 }}
|
||||
{{ $importmap = dict "imports" $imports }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $importmap }}
|
|
@ -1,36 +0,0 @@
|
|||
{{ $stylesheets := slice }}
|
||||
{{ with .Resources.Match "*.css" }}
|
||||
{{ range . }}
|
||||
{{ $stylesheets = $stylesheets | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Kind "home" }}
|
||||
{{ with resources.Get "styles/home.css" }}
|
||||
{{ $stylesheets = $stylesheets | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $processedStylesheets := slice }}
|
||||
{{ range $stylesheets }}
|
||||
{{ $processedStylesheets = $processedStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{/*
|
||||
Replace the list of stylesheets that helps with debugging with a
|
||||
concatenated and fingerprinted version.
|
||||
*/}}
|
||||
{{ if gt (len $processedStylesheets) 0 }}
|
||||
{{ with $file := $.File }}
|
||||
{{ $outputFilename := printf "%s/page.css" $.File.Dir }}
|
||||
{{ $processedStylesheets = slice ($processedStylesheets
|
||||
| resources.Concat $outputFilename
|
||||
| fingerprint "md5") }}
|
||||
{{ else }}
|
||||
{{ warnf "No File for page CSS." }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $processedStylesheets }}
|
|
@ -1,4 +0,0 @@
|
|||
{{- $railroadUtilsJS := resources.Get "scripts/railroad-utils.js"
|
||||
| js.Build
|
||||
| resources.Fingerprint "md5" -}}
|
||||
{{ return $railroadUtilsJS }}
|
|
@ -1,19 +0,0 @@
|
|||
{{ $stylesheets := slice (resources.Get "styles/railroad.css")
|
||||
(resources.Get "styles/monokai.css")
|
||||
| append (resources.Match "styles/root/*.css" | sort) }}
|
||||
{{ if not hugo.IsProduction }}
|
||||
{{ $stylesheets = $stylesheets | append (resources.Get "styles/development.css") }}
|
||||
{{ end }}
|
||||
|
||||
{{ $rootStylesheets := slice }}
|
||||
{{ range $stylesheets }}
|
||||
{{ $rootStylesheets = $rootStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $rootStylesheets = slice ($rootStylesheets
|
||||
| resources.Concat "styles/root.css"
|
||||
| fingerprint "md5") }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $rootStylesheets }}
|
|
@ -1,2 +0,0 @@
|
|||
{{ $script := resources.Get (printf "scripts/%s.js" .) | fingerprint "md5" }}
|
||||
{{ return $script }}
|
|
@ -1,28 +0,0 @@
|
|||
{{ $stylesheetName := printf "styles/%s.css" .Section }}
|
||||
|
||||
{{ $stylesheets := slice }}
|
||||
{{ if gt (len .Section) 0 }}
|
||||
{{ with resources.Match (printf "styles/%s/*" .Section) }}
|
||||
{{ $stylesheets = . }}
|
||||
{{ else }}
|
||||
{{ with resources.Get $stylesheetName }}
|
||||
{{ $stylesheets = (slice .) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $sectionStylesheets := slice }}
|
||||
{{ if $stylesheets }}
|
||||
{{ range $stylesheets }}
|
||||
{{ $sectionStylesheets = $sectionStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $sectionStylesheets = slice ($sectionStylesheets
|
||||
| resources.Concat $stylesheetName
|
||||
| minify
|
||||
| fingerprint "md5") }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $sectionStylesheets }}
|
|
@ -1,2 +0,0 @@
|
|||
{{ $siteJS := resources.Get "scripts/site.js" | fingerprint "md5" }}
|
||||
{{ return $siteJS }}
|
|
@ -1,11 +0,0 @@
|
|||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{ . }}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
{{- range slice "series" "categories" "tags" -}}
|
||||
{{ range $.GetTerms . }}
|
||||
{{- $domain := (.Site.GetPage (printf "/%s" .Section)).Permalink -}}
|
||||
<category domain="{{ $domain }}">{{ .Title }}</category>
|
||||
{{ end }}
|
||||
{{- end -}}
|
|
@ -1,5 +0,0 @@
|
|||
{{ if .HasShortcode "ruby" -}}
|
||||
<aside>
|
||||
<ruby-switch>
|
||||
</aside>
|
||||
{{- end }}
|
|
@ -1,9 +0,0 @@
|
|||
{{ $asset := dict }}
|
||||
{{ with resources.Get . }}
|
||||
{{ $secureAsset := . }}
|
||||
{{ if not (in (site.BaseURL | string) "localhost") }}
|
||||
{{ $secureAsset = $secureAsset | resources.Fingerprint "md5" }}
|
||||
{{ end }}
|
||||
{{ $asset = dict "Resource" . "Secure" $secureAsset }}
|
||||
{{ end }}
|
||||
{{ return $asset }}
|
|
@ -1,29 +0,0 @@
|
|||
{{ partial "content_header.html" . }}
|
||||
|
||||
{{ partial "table_of_contents.html" . }}
|
||||
|
||||
{{- $layout := .Params.layout -}}
|
||||
{{- $content := .Content -}}
|
||||
{{ with $layout := .Params.layout }}
|
||||
<article class="{{ $layout }}">
|
||||
{{ $content }}
|
||||
</article>
|
||||
{{ else }}
|
||||
{{ $content }}
|
||||
{{ end}}
|
||||
|
||||
<footer>
|
||||
{{ partial "footer_tags.html" . }}
|
||||
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- if and (gt (len $pages) 1) (in $pages . ) -}}
|
||||
<nav class="post-nav">
|
||||
{{ with $pages.Prev . }}
|
||||
<a class="prev" href="{{ .Permalink }}"><span>←</span><span>{{ .Name }}</span></a>
|
||||
{{ end }}
|
||||
{{ with $pages.Next . }}
|
||||
<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span>→</span></a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{- end -}}
|
||||
</footer>
|
|
@ -1,19 +0,0 @@
|
|||
{{- if .HasShortcode "figures/railroad" -}}
|
||||
{{- with partial "resources/railroad_utils.html" . -}}
|
||||
<script defer type="module" src="{{ .RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .HasShortcode "figures/p5" -}}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $script := .Resources.Match "*.js" -}}
|
||||
{{- $isModule := default true $script.Params.is_module -}}
|
||||
<script defer {{ if $isModule }}type="module"{{ end }} src="{{ $script.Permalink | relURL }}"></script>
|
||||
{{- end -}}
|
|
@ -1,4 +0,0 @@
|
|||
{{- range .Resources.Match "*.css" -}}
|
||||
{{- $stylesheet := . | fingerprint "md5" }}
|
||||
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}"></script>
|
||||
{{- end -}}
|
|
@ -1 +0,0 @@
|
|||
{{ range (split . "") }}<span>{{ . }}</span>{{ end }}
|
|
@ -1,17 +0,0 @@
|
|||
{{- $currentPage := . -}}
|
||||
{{- $url := $.RelPermalink -}}
|
||||
<nav class="site bulleted">
|
||||
{{ with site.Menus.main }}
|
||||
{{- range . -}}
|
||||
<li>
|
||||
<a
|
||||
{{ if $currentPage.HasMenuCurrent "main" . }}
|
||||
class="active"
|
||||
{{ end }}
|
||||
href="{{ .URL }}">
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</nav>
|
|
@ -1,8 +0,0 @@
|
|||
{{ if and (gt .WordCount 400) (.Params.toc | default false) }}
|
||||
<aside id="table-of-contents">
|
||||
<details {{ if eq .Params.toc "open" }}open{{ end }}>
|
||||
<summary>Table of Contents</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
</aside>
|
||||
{{ end }}
|
|
@ -1,11 +0,0 @@
|
|||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" nil "Height" nil) -}}
|
||||
<entry>
|
||||
{{ partial "atom_entry_metadata.xml" . }}
|
||||
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
|
||||
<content type="html">{{ `<![CDATA[` | safeHTML }}
|
||||
{{- range partial "photos/list.html" . -}}
|
||||
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
{{- .Content -}}
|
||||
]]></content>
|
||||
</entry>
|
|
@ -1,13 +0,0 @@
|
|||
{{- $gridSize := $.Site.Params.photos.thumbnailSize -}}
|
||||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" $gridSize "Height" $gridSize) -}}
|
||||
{{- $thumbnail = $thumbnail.Crop (printf "%dx%d" $gridSize $gridSize) -}}
|
||||
{{- $altText := $thumbnail.Params.alt -}}
|
||||
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
|
||||
<img
|
||||
src="{{ $thumbnail.RelPermalink }}"
|
||||
{{ with $altText }}
|
||||
alt="{{ . }}"
|
||||
{{ end }}
|
||||
width={{ $gridSize }}
|
||||
height={{ $gridSize }}>
|
||||
</a>
|
|
@ -1,19 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ $pages := .Pages.ByDate.GroupByDate "Jan 2006" }}
|
||||
{{- range $pages -}}
|
||||
<div>
|
||||
<h6><span>{{ .Key | title }}</span></h6>
|
||||
</div>
|
||||
{{- range .Pages -}}
|
||||
{{- .Render "li_thumbnail_in_grid" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1,10 +0,0 @@
|
|||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
|
||||
<item>
|
||||
{{ partial "rss_item_metadata.rss" . }}
|
||||
<description>{{ `<![CDATA[` | safeHTML }}
|
||||
{{- range (partial "photos/list.html" .) -}}
|
||||
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
{{- .Content -}}
|
||||
]]></description>
|
||||
</item>
|
|
@ -1,29 +0,0 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}} {{ $pctx = .Site }} {{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}}
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link href="{{ .Permalink }}" />
|
||||
<link href="{{ `/feed.atom` | absURL }}" rel="self" />
|
||||
<link href="{{ `/icons/favicon.png` | absURL }}" rel="shortcut icon" />
|
||||
{{ if not .Date.IsZero }}<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Author.name }}
|
||||
<author>
|
||||
<name>{{ . }}</name>
|
||||
{{ with $.Site.Author.email }}<email>{{ . }}</email>{{ end }}
|
||||
<uri>{{ $.Site.Home.Permalink }}</uri>
|
||||
</author>
|
||||
{{ end }}
|
||||
<generator version="{{ hugo.Version }}" uri="https://gohugo.io">Hugo {{ hugo.Version }}</generator>
|
||||
<rights>© 2020-{{ now.Year }} Eryn Wells</rights>
|
||||
{{ range $pages }}{{ .Render "atom_entry" }}{{ end }}
|
||||
</feed>
|
|
@ -1,51 +0,0 @@
|
|||
{{ define "header" }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{- $photos := partial "photos/list.html" . -}}
|
||||
{{ if eq (len $photos) 0 }}
|
||||
{{ errorf "Missing photo from photos page %q" .Path }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq (len $photos) 1 }}
|
||||
{{- $img := index $photos 0 -}}
|
||||
<figure>
|
||||
<img
|
||||
src="{{ $img.RelPermalink }}"
|
||||
{{ with $img.Params.alt }}
|
||||
alt="{{ . }}"
|
||||
{{ end }}
|
||||
height={{ $img.Height }}>
|
||||
</figure>
|
||||
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
{{- if .Params.photo_details | default true -}}
|
||||
{{- partial "photo_exif_table.html" $img.Exif -}}
|
||||
|
||||
{{- if in ($.Site.BaseURL | string) "localhost" -}}
|
||||
{{- partial "development/photo_exif_table.html" $img.Exif -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ else }}
|
||||
<figure>
|
||||
<ul class="carousel">
|
||||
{{- range $photos -}}
|
||||
<li>{{ . }}</li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
||||
<footer>
|
||||
{{ partial "footer_tags.html" . }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
|
@ -1 +0,0 @@
|
|||
<abbr {{ with .Get "title" }}title="{{ . }}"{{ end }}>{{ .Inner }}</abbr>
|
|
@ -1 +0,0 @@
|
|||
<span class="anagram" data-replacement="{{ with .Get 1 }}{{ . }}{{ end }}">{{ with .Get 0 }}{{ . }}{{ end }}</span>
|
|
@ -1,5 +0,0 @@
|
|||
{{ $id := .Get "id" }}
|
||||
{{ $mp3 := (.Page.Resources.GetMatch (.Get "mp3")) }}
|
||||
<audio {{ with $id }}id="{{ . }}"{{ end }}>
|
||||
{{ with $mp3 }}<source src="{{ . }}" type="audio/mpeg">{{ end }}
|
||||
</audio>
|
|
@ -1,12 +0,0 @@
|
|||
{{- $img := (.Page.Resources.GetMatch (.Get "name")) -}}
|
||||
{{- $id := .Get "id" -}}
|
||||
{{- $classes := .Get "class" -}}
|
||||
{{- $alt := .Get "alt" | default $img.Params.alt -}}
|
||||
{{- $width := .Get "width" -}}
|
||||
{{- $resized_img := $img.Resize (printf "%dx%d" $width $width) -}}
|
||||
<img
|
||||
{{ with $id }}id="{{ . }}"{{ end }}
|
||||
class="circular{{ with $classes }} {{ . }}{{ end }}"
|
||||
src="{{ $img.RelPermalink }}"
|
||||
{{ with $alt }}alt="{{ . }}"{{ end }}
|
||||
width="{{ $width }}" height="{{ $width }}">
|
|
@ -1,9 +0,0 @@
|
|||
<!---->{{ if not (.Get "summary") }}
|
||||
<!---->{{ errorf "missing param 'summary': %s" .Position }}
|
||||
<!---->{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s" .Position }}
|
||||
<!---->{{ end }}
|
||||
|
||||
<details {{ if (eq (.Get `openByDefault`) true) }}open="true" {{ end }}>
|
||||
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
|
||||
{{ .Get "content" | markdownify }}
|
||||
</details>
|
|
@ -1,4 +0,0 @@
|
|||
{{- $trimmedInner := trim .Inner "\n " -}}
|
||||
<figure class="code">
|
||||
{{ $.Page.RenderString $trimmedInner }}
|
||||
</figure>
|
|
@ -1,45 +0,0 @@
|
|||
{{- $imgs := slice -}}
|
||||
{{- $class := .Get "class" -}}
|
||||
{{- $shouldResize := .Get "shouldResize" | default true -}}
|
||||
{{- $shouldShowTitle := (.Get "shouldShowTitle") | default true -}}
|
||||
|
||||
{{- if .Get "name" -}}
|
||||
{{- $imgs = $imgs | append (.Page.Resources.GetMatch (.Get "name")) -}}
|
||||
{{- else if .Get "names" -}}
|
||||
{{- range (split (.Get "names") ",") -}}
|
||||
{{- $imgs = $imgs | append ($.Page.Resources.GetMatch .) -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{ errorf "Missing name or names parameter to figures/image" }}
|
||||
{{- end -}}
|
||||
|
||||
{{- if lt (len $imgs) 0 -}}
|
||||
{{ errorf "No images found for name(s) parameter" }}
|
||||
{{- end -}}
|
||||
|
||||
<figure {{ with $class }}class="{{ . }}"{{ end }}>
|
||||
<div class=container>
|
||||
{{ range $img := $imgs }}
|
||||
{{- $linkedImg := $img -}}
|
||||
{{ if not $img }}
|
||||
{{ errorf "Found nil in images list for %s" $.Page.Permalink }}
|
||||
{{ end }}
|
||||
{{- if $shouldResize -}}
|
||||
{{ $linkedImg = $img.Fit "1280x1280" }}
|
||||
{{- end -}}
|
||||
{{- $altText := $img.Params.alt | default $img.Title -}}
|
||||
<a href="{{ $img.RelPermalink }}">
|
||||
<img src="{{ $linkedImg.RelPermalink }}"
|
||||
{{- with $altText }} alt="{{ . }}"{{- end }}
|
||||
{{- with $img.Title }} title="{{ . }}"{{- end }}>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ if and $shouldShowTitle -}}
|
||||
{{- range $imgs -}}
|
||||
{{- if gt (len .Title) 0 -}}
|
||||
<figcaption>{{ .Title }}</figcaption>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</figure>
|
|
@ -1,4 +0,0 @@
|
|||
{{- $id := .Get "id" -}}
|
||||
<div class="centered">
|
||||
<figure class="p5-sketch {{ with .Get "bordered" }}bordered{{ end }}" id="{{ $id }}"></figure>
|
||||
</div>
|
|
@ -1,3 +0,0 @@
|
|||
{{- $id := .Get "id" -}}
|
||||
<figure class="railroad-diagram" {{ if $id }}id="{{ $id }}"{{ end }}></figure>
|
||||
{{ .Inner }}
|
|
@ -1,12 +0,0 @@
|
|||
{{- $pc := .Page.Site.Config.Privacy.YouTube -}}
|
||||
{{- if not $pc.Disable -}}
|
||||
{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
|
||||
{{- $id := .Get "id" | default (.Get 0) -}}
|
||||
{{- $class := .Get "class" | default (.Get 1) -}}
|
||||
{{- $title := .Get "title" | default "YouTube Video" }}
|
||||
<figure {{ with $class }}class="{{ . }}"{{ end }}>
|
||||
<div class="youtube">
|
||||
<iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" allowfullscreen frameborder=0 title="{{ $title }}"></iframe>
|
||||
</div>
|
||||
</figure>
|
||||
{{ end -}}
|
|
@ -1,3 +0,0 @@
|
|||
<div class="grid2">
|
||||
{{ .Inner }}
|
||||
</div>
|
|
@ -1,21 +0,0 @@
|
|||
{{ $img := dict }}
|
||||
{{ with .Get "name" }}
|
||||
{{ $img = $.Page.Resources.GetMatch . }}
|
||||
{{ else }}
|
||||
{{ errorf "No name given to img shortcode" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Space separated list of classes to apply to the <img> tag */}}
|
||||
{{ $classes := .Get "class" }}
|
||||
|
||||
{{ $altText := .Get "alt" | default $img.Params.alt }}
|
||||
{{ if not $altText }}
|
||||
{{ warnf "Image doesn't have alt text: %s" $img.RelPermalink }}
|
||||
{{ end }}
|
||||
|
||||
{{ $resizedImg := $img.Fit "1280x1280" }}
|
||||
<img src="{{ $resizedImg.RelPermalink }}"
|
||||
width="{{ $resizedImg.Width }}"
|
||||
height="{{ $resizedImg.Height }}"
|
||||
alt="{{ $altText }}"
|
||||
{{ with $classes }}class="{{ . }}"{{ end }}>
|
|
@ -1 +0,0 @@
|
|||
<span lang="{{ .Get 0 }}">{{ .Inner }}</span>{{- "" -}}
|
|
@ -1,3 +0,0 @@
|
|||
{{- $logfile := partial "nethack/log.html" . -}}
|
||||
{{- $numberOfAscensions := where $logfile "death.cause" "ascended" | len -}}
|
||||
{{- $numberOfAscensions | lang.FormatNumber 0 -}}
|
|
@ -1,10 +0,0 @@
|
|||
{{ $nethack_data := $.Site.Data.nethack.logfile }}
|
||||
{{ $logfile := slice }}
|
||||
{{ range $nethack_data }}
|
||||
{{ $logfile = $logfile | append .logfile }}
|
||||
{{ end }}
|
||||
<ol class="logfile">
|
||||
<li>
|
||||
{{ partial "nethack/logentry.html" (index (sort $logfile "score" "desc") 0) }}
|
||||
</li>
|
||||
</ol>
|
|
@ -1,10 +0,0 @@
|
|||
{{- $logfile := partial "nethack/log.html" . -}}
|
||||
<ol class="logfile">
|
||||
{{ range sort $logfile "end_date" "desc" }}
|
||||
{{ if ne .death.cause "quit" }}
|
||||
<li>
|
||||
{{ partial "nethack/logentry.html" .}}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ol>
|
|
@ -1,2 +0,0 @@
|
|||
{{- $numberOfEntries := (partial "nethack/log.html" .) | len -}}
|
||||
{{- $numberOfEntries | lang.FormatNumber 0 -}}
|
|
@ -1,7 +0,0 @@
|
|||
{{- $n := .Get 0 -}}
|
||||
{{- $logfile := partial "nethack/log.html" . -}}
|
||||
<ol class="logfile topn">
|
||||
{{ range first $n (sort $logfile "score" "desc") -}}
|
||||
<li>{{ partial "nethack/logentry.html" . }}</li>
|
||||
{{- end }}
|
||||
</ol>
|
|
@ -1 +0,0 @@
|
|||
<span class="nobreak">{{ .Inner }}</span>
|
|
@ -1,9 +0,0 @@
|
|||
{{- with $photoPage := $.Page.GetPage (printf "photos/%s" (.Get 0)) -}}
|
||||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
|
||||
{{- $altText := $thumbnail.Params.alt | default .Title -}}
|
||||
<a class="to-photo-post" href="{{ .RelPermalink }}" title="{{ .Title }}">
|
||||
<img src="{{ $thumbnail.RelPermalink }}"{{ with $altText }} alt="{{ . }}"{{ end }}>
|
||||
</a>
|
||||
{{- else -}}
|
||||
{{- errorf "No page matching '%s'" (.Get 0) -}}
|
||||
{{- end -}}
|
|
@ -1,3 +0,0 @@
|
|||
{{- $subreddit := .Get 0 -}}
|
||||
<a class="hover-only" href="https://reddit.com/r/{{ $subreddit }}"><code class="nobg">r/{{ $subreddit }}</code></a>
|
||||
{{- "" -}}
|
|
@ -1,27 +0,0 @@
|
|||
<ul>
|
||||
{{ $pages := union .Site.RegularPages .Site.Sections }}
|
||||
{{ if .Page.IsHome }}
|
||||
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{ end }}
|
||||
{{ $paginator := .Page.Paginate $pages }}
|
||||
{{ range $index, $page := $paginator.Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a> —
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_medium" }}</time>
|
||||
{{ if $page.Draft }}
|
||||
<span class="draft">draft</span>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
<nav class="main-nav">
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a class="prev" href="{{ $paginator.Prev.URL }}">← {{ i18n "prev_page" }}</a>
|
||||
{{ end }}
|
||||
{{ if $paginator.HasNext }}
|
||||
<a class="next" href="{{ $paginator.Next.URL }}">{{ i18n "next_page" }} →</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
|
@ -1,18 +0,0 @@
|
|||
<header class="flex-date">
|
||||
{{ .Inner }}
|
||||
<span class="date">
|
||||
{{ if .IsNamedParams }}
|
||||
{{ with .Get "from" }}
|
||||
<time datetime="{{ . }} ">{{ . }}</time>
|
||||
{{ end }}
|
||||
to
|
||||
{{ with .Get "to" }}
|
||||
<time datetime="{{ . }}">{{ . }}</time>
|
||||
{{ else }}
|
||||
present
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ .Get 0 }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</header>
|
|
@ -1,14 +0,0 @@
|
|||
<header class="flex-date">
|
||||
<h3>{{ .Get "company" }}: {{ .Get "team" }}</h3>
|
||||
<span class="date">
|
||||
{{ with .Get "from" }}
|
||||
<time datetime="{{ . }} ">{{ . }}</time>
|
||||
{{ end }}
|
||||
–
|
||||
{{ with .Get "to" }}
|
||||
<time datetime="{{ . }}">{{ . }}</time>
|
||||
{{ else }}
|
||||
present
|
||||
{{ end }}
|
||||
</span>
|
||||
</header>
|
|
@ -1 +0,0 @@
|
|||
<ruby {{ with .Get 1 }}lang="{{ . }}"{{ end }}><span>{{- .Inner }}</span> <rp>(</rp><rt {{ with .Get 2 }}lang="{{ . }}"{{ end }}>{{- .Get 0 -}}</rt><rp>)</rp></ruby>{{- "" -}}
|
|
@ -1,8 +0,0 @@
|
|||
{{ $parentID := .Parent.Get "id" -}}
|
||||
{{ $narrowOnly := not (not (.Get "narrow")) | default false }}
|
||||
<script defer type="module">
|
||||
import { railroadDiagram } from {{ (partial "resources/railroad_utils.html" .).RelPermalink }};
|
||||
railroadDiagram(rr => {
|
||||
{{ .Inner | safeJS }}
|
||||
}, "{{ $parentID }}", {{ cond $narrowOnly "true" "false" | safeJS }});
|
||||
</script>
|
|
@ -1,3 +0,0 @@
|
|||
<section {{ with .Get "class" }}class="{{ . }}"{{ end }}>
|
||||
{{ .Inner }}
|
||||
</section>
|
|
@ -1 +0,0 @@
|
|||
<a href="https://tess.oconnor.cx">Tess</a>
|
Loading…
Add table
Add a link
Reference in a new issue