Update repository to reflect changes to the website since June 2024

This commit is contained in:
Ethan Yoo 2024-09-22 10:17:38 -04:00
parent 1de9ad5695
commit 9b8924828e
Signed by: ethan
GPG Key ID: 70596474C5D20F85
7 changed files with 176 additions and 141 deletions

View File

@ -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 }}
{{ 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 }}
<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" />
<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 }}
<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 .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 }}
{{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
{{- if .IsHome }}{{- block "header" . }}{{ end }}
{{- end }}
{{- block "main" . }}{{ end }}
{{ if not .IsHome }}{{ partial "footer" . }}
{{ end }}
<script defer data-domain="ethanyoo.com" src="https://analytics.ethanyoo.com/js/script.js"></script>
</body>
</html>

View File

@ -4,12 +4,12 @@
{{ 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 -}}
{{ end }}
{{- $index = $index | append (dict "title" ( .Title | plainify ) "permalink" .Permalink "tags" .Params.tags "description" (.Params.description | markdownify | htmlUnescape | plainify) "date" ($.Scratch.Get "date") ) -}}
{{- end -}}
{{- $index | jsonify -}}
{{- $index | jsonify -}}

View File

@ -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>

View File

@ -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>

View File

@ -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 }}">

View File

@ -1,13 +1,15 @@
/* Body */
html {
overflow-y: scroll;
}
a,
a:link {
text-decoration: none;
color: #ace;
text-decoration: none;
color: #ace;
}
a:hover {
background: #2b5278;
text-decoration: underline dotted;
border: 1px solid;
background: #2b5278;
text-decoration: underline dotted;
border: 1px solid;
}
header a:link,
header a:visited,
@ -15,119 +17,168 @@ footer a:link,
footer a:visited,
aside a:visited,
main a:visited {
color: #FFF;
color: #fff;
}
body {
background: #10151a;
color: #d3dae3;
font: 1em/1.5 sans-serif;
margin: 2em auto;
max-width: 50em;
padding: 0 2em;
background: #10151a;
color: #d3dae3;
font: 1em/1.5 sans-serif;
margin: 2em auto;
max-width: 50em;
padding: 0 2em;
}
h2,
main h1 {
text-align: center;
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;
font-size: 1.5em;
}
article,
main {
padding: 4px 2px;
padding: 4px 2px;
}
blockquote {
padding: 0.25em 1.5em;
background: #ddd;
color: #000;
border-radius: 4px;
padding: 0.25em 1.5em;
background: #ddd;
color: #000;
border-radius: 4px;
}
code {
background: #000;
font: 1em/1.5 monospace, monospace;
padding: 2px;
background: #000;
font: 1em/1.5 monospace, monospace;
padding: 2px;
}
img[src$='#center'] {
display: block;
margin-left: auto;
margin-right: auto;
display: block;
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) {
body {
background: #f2f2f2;
color: #000;
}
header a:link,
header a:visited,
footer a:link,
footer a:visited,
aside a:link {
color: #000;
}
a:hover {
background: #cae6ef;
text-decoration: underline dotted;
border: 1px solid;
}
main a:link {
color: #004962;
}
main a:visited,
aside a:visited {
color: #542baa;
}
code {
background: #ccc;
color: #000;
font: 1em/1.5 monospace, monospace;
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;
}
body {
background: #f2f2f2;
color: #000;
}
header a:link,
header a:visited,
footer a:link,
footer a:visited,
aside a:link {
color: #000;
}
a:hover {
background: #cae6ef;
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;
}
code {
background: #ccc;
color: #000;
font: 1em/1.5 monospace, monospace;
padding: 2px;
}
}

View File

@ -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"