Update repository to reflect changes to the website since June 2024
This commit is contained in:
parent
1de9ad5695
commit
9b8924828e
|
@ -1,38 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title itemprop="name">{{ .Title }} | {{ .Site.Title }}</title>
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title itemprop="name">{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} from {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<meta property="og:title" content="{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} from {{ end }}{{ .Site.Title }}{{ end }}"/>
|
||||
{{ with .Site.Params.author.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Params.date }}<meta name="og:type" content="article"/>{{ else }}<meta name="og:type" content="website"/>{{end}}
|
||||
{{- with .Description }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
<meta property="og:description" content="{{ . }}"/>
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Site.Params.Description }}">
|
||||
<meta property="og:description" content="{{ .Site.Params.Description }}"/>
|
||||
{{- end }}
|
||||
{{- with .Description }}<meta name="description" content="{{ . }}"><meta property="og:description" content="{{ . }}"/>{{ else }}<meta name="description" content="{{ .Site.Params.description }}"><meta property="og:description" content="{{ .Site.Params.description }}"/>{{- end }}
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
||||
{{- with .RelPermalink }}
|
||||
<meta name="url" content="{{ . }}" />
|
||||
<meta property="og:url" content="{{ . }}" />
|
||||
{{- end }}
|
||||
<link rel="openid.delegate" href="https://ethanyoo.com/" />
|
||||
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
|
||||
<link rel="webmention" href="https://webmention.io/ethanyoo.com/webmention" />
|
||||
{{- with .RelPermalink }}<meta name="url" content="{{ . }}"/><meta property="og:url" content="{{ . }}"/>{{- end }}
|
||||
<link rel="openid.delegate" href="https://ethanyoo.com/"/><link rel="openid.server" href="https://openid.indieauth.com/openid"/><link rel="webmention" href="https://webmention.io/ethanyoo.com/webmention"/>
|
||||
{{- with .OutputFormats.Get "RSS" -}}{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}{{ end }}
|
||||
<style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
|
||||
<link rel="stylesheet" href="/css/style.css?rnd={{ now.Unix }}">
|
||||
</head>
|
||||
<body>
|
||||
{{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
|
||||
{{- if .IsHome }}{{- block "header" . }}{{ end }}
|
||||
{{- end }}
|
||||
{{- block "main" . }}{{ end }}
|
||||
<link rel="stylesheet" href="/css/style.css?rnd={{ now.Unix }}">
|
||||
{{ if not .IsHome }}{{ partial "footer" . }}
|
||||
{{ end }}
|
||||
<script defer data-domain="ethanyoo.com" src="https://analytics.ethanyoo.com/js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
{{ if .Params.dateCreated }}
|
||||
{{ $.Scratch.Set "date" (.Params.dateCreated) }}
|
||||
{{ else }}
|
||||
{{- if isset site.Params "date_format" -}}
|
||||
{{- $.Scratch.Set "date" (.Date.Format site.Params.date_format) -}}
|
||||
{{- if isset site.Params "dateFmt" -}}
|
||||
{{- $.Scratch.Set "date" (.Date.Format .Site.Params.dateFmt) -}}
|
||||
{{- else -}}
|
||||
{{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -17,10 +17,8 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<language>{{.}}</language>{{end}}
|
||||
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
|
@ -29,8 +27,8 @@
|
|||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<pubDate>{{ .Date.Format "Monday, January 2, 2006 15:04:05 MST" | safeHTML }}</pubDate>
|
||||
<author>{{ .Site.Params.author.email }}</author>
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
{{- end }}
|
||||
</p>
|
||||
<a class="link-000" href="https://ForTheBadge.com/"><img src="/img/built-with-love.svg" alt="This site was built with love, using Git and Hugo." title="I also used Git and Hugo." /></a>
|
||||
<a class="link-000" href="{{ .Site.Params.license }}"><img src="/img/CC-BY-SA.svg" alt="Original content by {{ .Site.Params.author }} is licensed under {{ .Site.Copyright }}" title="{{ .Site.Params.copyrightMessage }}" /></a>
|
||||
<a class="link-000" href="{{ .Site.Params.license }}"><img src="/img/CC-BY-SA.svg" alt="Original content by {{ .Site.Params.author.name }} is licensed under {{ .Site.Copyright }}" title="{{ .Site.Params.copyrightMessage }}" /></a>
|
||||
</footer>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<!-- layouts/partials/search.html -->
|
||||
<link rel="stylesheet" href="/css/search.css?rnd={{ now.Unix }}">
|
||||
<form id="search-form" class="noscript" method="GET" action="https://duckduckgo.com/">
|
||||
<div class="search-bar">
|
||||
<input id="search-input" class="search--display" name="q" tabindex="0" autocomplete="off" {{ with site.BaseURL }}value=" site:{{ . }}"{{ end }} placeholder="{{ "Search" }}">
|
||||
|
@ -8,4 +9,3 @@
|
|||
</form>
|
||||
<!-- <script src="{{ "/js/fuse.js" | relURL }}"></script> -->
|
||||
<script src="{{ "/js/fixedsearch.js" | relURL }}"></script>
|
||||
<link rel="stylesheet" href="/css/search.css?rnd={{ now.Unix }}">
|
|
@ -1,4 +1,6 @@
|
|||
/* Body */
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
a,
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
|
@ -15,7 +17,7 @@ footer a:link,
|
|||
footer a:visited,
|
||||
aside a:visited,
|
||||
main a:visited {
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
}
|
||||
body {
|
||||
background: #10151a;
|
||||
|
@ -30,10 +32,10 @@ main h1 {
|
|||
text-align: center;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2.1em;
|
||||
font-size: 2em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.8em;
|
||||
font-size: 1.75em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5em;
|
||||
|
@ -58,6 +60,93 @@ img[src$='#center'] {
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
}
|
||||
.post-title {
|
||||
line-height: 1.8;
|
||||
}
|
||||
.subtitle {
|
||||
float: right;
|
||||
}
|
||||
a.link-000 {
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
.letterboxd {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
margin-right: 0.25em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
a.link-letterboxd {
|
||||
padding: 0.5em;
|
||||
background-color: #202830;
|
||||
border-radius: 3px;
|
||||
padding-left: 0.25em;
|
||||
}
|
||||
.linkedin {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
margin-right: 0.25em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
a.link-linkedin {
|
||||
padding: 0.5em;
|
||||
background-color: #0077b5;
|
||||
border-radius: 3px;
|
||||
margin-right: 0.5em;
|
||||
padding-left: 0.25em;
|
||||
color: #fff;
|
||||
}
|
||||
.nextcloud {
|
||||
width: 50px;
|
||||
height: 30px;
|
||||
position: relative;
|
||||
top: 8px;
|
||||
background-size: contain;
|
||||
display: inline-block;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
a.link-nextcloud {
|
||||
padding: 10px;
|
||||
background-color: #0082c9;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
.btn {
|
||||
display: block;
|
||||
margin: 0.5em auto;
|
||||
padding: 0.5em;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
background-color: #ff8000;
|
||||
color: #000;
|
||||
cursor: pointer;
|
||||
width: fit-content;
|
||||
}
|
||||
.btn:hover {
|
||||
background-color: #d15d27;
|
||||
}
|
||||
a.btn:hover {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
}
|
||||
a.btn:link,
|
||||
a.btn:visited {
|
||||
color: #000;
|
||||
}
|
||||
a.link-letterboxd:link,
|
||||
a.link-letterboxd:visited,
|
||||
a.link-linkedin:link,
|
||||
a.link-linkedin:visited {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Light theme */
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
@ -77,9 +166,11 @@ img[src$='#center'] {
|
|||
text-decoration: underline dotted;
|
||||
border: 1px solid;
|
||||
}
|
||||
.p-note a:visited,
|
||||
main a:link {
|
||||
color: #004962;
|
||||
}
|
||||
.p-note a:visited,
|
||||
main a:visited,
|
||||
aside a:visited {
|
||||
color: #542baa;
|
||||
|
@ -91,43 +182,3 @@ img[src$='#center'] {
|
|||
padding: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Classes */
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
}
|
||||
.nextcloud {
|
||||
width: 50px;
|
||||
height: 30px;
|
||||
position: relative;
|
||||
top: 8px;
|
||||
background-size: contain;
|
||||
display: inline-block;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
.post-title {
|
||||
line-height: 1.8;
|
||||
}
|
||||
.subtitle {
|
||||
float: right;
|
||||
}
|
||||
a.link-000 {
|
||||
background: #000;
|
||||
border: none;
|
||||
}
|
||||
a.link-001 {
|
||||
padding: 10px;
|
||||
background-color: #0082c9;
|
||||
color: #ffffff;
|
||||
border-radius: 3px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ description = "Hugo theme based on smol"
|
|||
homepage = "https://git.eyoo.link/ethan/geronimo"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
min_version = "0.134.0"
|
||||
|
||||
[author]
|
||||
name = "Ethan Yoo"
|
||||
|
|
Loading…
Reference in New Issue