Update repository to reflect changes to the website

This commit is contained in:
Ethan Yoo 2024-06-02 07:10:13 -04:00
parent 44002abf8b
commit 1de9ad5695
Signed by: ethan
GPG Key ID: 70596474C5D20F85
3 changed files with 131 additions and 21 deletions

View File

@ -26,9 +26,8 @@
{{- with .OutputFormats.Get "RSS" -}}{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}{{ end }} {{- 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> <style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
</head> </head>
<body> <body>
{{- if not .IsHome }}{{ partial "header" . }}{{ end }} {{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
{{- if .IsHome }}{{- block "header" . }}{{ end }} {{- if .IsHome }}{{- block "header" . }}{{ end }}
{{- end }} {{- end }}
{{- block "main" . }}{{ end }} {{- block "main" . }}{{ end }}

View File

@ -83,6 +83,7 @@
padding: 0.3rem; padding: 0.3rem;
display: block; display: block;
text-decoration: none; text-decoration: none;
color: #6787C9;;
} }
#search-results a:hover, #search-results a:hover,
#search-results a:focus { #search-results a:focus {
@ -104,4 +105,4 @@
} }
#search-results li .title::after { #search-results li .title::after {
display: none; display: none;
} }

View File

@ -1,23 +1,133 @@
/* Body */ /* Body */
a{text-decoration:none;} a,
body{background:#10151a;color:#d3dae3;font:1em/1.5 sans-serif;margin:2em auto;max-width:50em;padding:0 2em;} a:link {
header a:link, footer a:link {color:#FFF;} text-decoration: none;
a:link{color:#ace;}a:hover {background:#2b5278;text-decoration:underline dotted;border:1px solid;}a:visited{color:#FFF;} color: #ace;
main h1,h2{text-align:center;} }
h1{font-size:2.1em;}h2{font-size:1.8em;}h3{font-size:1.5em;} a:hover {
article, main {padding:4px 2px;} background: #2b5278;
blockquote{padding:0.5em 1.5em;background:#EEE;color:#000;border-radius:4px;} text-decoration: underline dotted;
code{background:#000;font:1em/1.5 monospace, monospace;padding:2px} border: 1px solid;
img[src$='#center']{display:block;margin-left:auto;margin-right:auto;} }
header a:link,
header a:visited,
footer a:link,
footer a:visited,
aside a:visited,
main a:visited {
color: #FFF;
}
body {
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;
}
h1 {
font-size: 2.1em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.5em;
}
article,
main {
padding: 4px 2px;
}
blockquote {
padding: 0.25em 1.5em;
background: #ddd;
color: #000;
border-radius: 4px;
}
code {
background: #000;
font: 1em/1.5 monospace, monospace;
padding: 2px;
}
img[src$='#center'] {
display: block;
margin-left: auto;
margin-right: auto;
}
/* Light theme */ /* Light theme */
@media(prefers-color-scheme:light){body{background:#333;color:#FFF;}main a:link{color:#bdf;}main a:visited{color:#ccf;}} @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 */ /* Classes */
.center{display:block;margin-left:auto;margin-right:auto;text-align:center;} .center {
.nextcloud{width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat;background-position:center center;} display: block;
.post-title{line-height:1.8;} margin-left: auto;
.subtitle{float:right;} margin-right: auto;
a.link-000{background:#000;border:none;} text-align: center;
a.link-001{padding:10px;background-color:#0082c9;color:#ffffff;border-radius:3px;padding-left:4px;} }
html{overflow-y:scroll;visibility:visible;opacity:1;} .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;
}