Change indenting to 1 tab (4 spaces)

It's more readable this way
This commit is contained in:
daudix
2024-02-27 18:38:23 +03:00
parent 9fc6befbf4
commit d0eaa63568
33 changed files with 1208 additions and 1256 deletions

View File

@ -1,10 +0,0 @@
root = true
[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
[*.{css,scss,html}]
indent_style = space
indent_size = 2

View File

@ -52,9 +52,9 @@ source_url = "https://codeberg.org/daudix/duckquill"
show_feed = true
# Links used in the nav
links = [
{url = "https://codeberg.org/daudix/duckquill", name = "Repo"},
{url = "$BASE_URL/demo", name = "Demo"},
{url = "$BASE_URL/blog", name = "Blog"},
{url = "$BASE_URL/demo", name = "Demo"},
{url = "https://codeberg.org/daudix/duckquill", name = "Repo"},
]
[extra.footer]

View File

@ -1,41 +1,41 @@
.dialog-buttons {
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-between;
margin-top: 6rem;
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-between;
margin-top: 6rem;
}
.inline-button {
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
color: var(--fg-color);
display: inline-block;
font-size: 0.9rem;
padding: 0.5rem 1rem;
text-decoration: none;
transition: var(--transition);
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
color: var(--fg-color);
display: inline-block;
font-size: 0.9rem;
padding: 0.5rem 1rem;
text-decoration: none;
transition: var(--transition);
&:hover {
background-color: var(--fg-muted-2);
text-decoration: none;
}
&:hover {
background-color: var(--fg-muted-2);
text-decoration: none;
}
&:active {
transform: scale(var(--active));
}
&:active {
transform: scale(var(--active));
}
&.colored {
-webkit-backdrop-filter: unset;
backdrop-filter: unset;
background-color: transparent;
box-shadow: none;
color: var(--primary-color);
&.colored {
-webkit-backdrop-filter: unset;
backdrop-filter: unset;
background-color: transparent;
box-shadow: none;
color: var(--primary-color);
&:hover {
background-color: var(--primary-color-alpha);
box-shadow: var(--edge-highlight);
}
}
&:hover {
background-color: var(--primary-color-alpha);
box-shadow: var(--edge-highlight);
}
}
}

View File

@ -1,155 +1,155 @@
section#comments {
#comments-wrapper {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 2rem;
}
#comments-wrapper {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 2rem;
}
.comment {
display: grid;
column-gap: 1rem;
grid-template-areas:
"avatar name "
"avatar time "
"avatar post "
"...... interactions";
grid-template-columns: min-content;
justify-items: start;
.comment {
display: grid;
column-gap: 1rem;
grid-template-areas:
"avatar name "
"avatar time "
"avatar post "
"...... interactions";
grid-template-columns: min-content;
justify-items: start;
&.comment-reply {
border-left: 0.25rem solid var(--fg-muted-2);
border-radius: 0.2rem;
padding-left: 1rem;
}
&.comment-reply {
border-left: 0.25rem solid var(--fg-muted-2);
border-radius: 0.2rem;
padding-left: 1rem;
}
.avatar-link {
grid-area: avatar;
height: 4rem;
position: relative;
width: 4rem;
.avatar-link {
grid-area: avatar;
height: 4rem;
position: relative;
width: 4rem;
.avatar {
all: unset;
background-color: var(--fg-muted-1);
background-position: 50%;
background-size: cover;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight), var(--shadow);
height: 100%;
overflow: hidden;
transition: var(--transition);
width: 100%;
.avatar {
all: unset;
background-color: var(--fg-muted-1);
background-position: 50%;
background-size: cover;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight), var(--shadow);
height: 100%;
overflow: hidden;
transition: var(--transition);
width: 100%;
&:hover {
box-shadow: var(--edge-highlight), var(--shadow-raised);
transform: rotate(10deg) scale(1.1);
}
&:hover {
box-shadow: var(--edge-highlight), var(--shadow-raised);
transform: rotate(10deg) scale(1.1);
}
&:active {
box-shadow: var(--edge-highlight), var(--shadow);
transform: scale(var(--active));
}
}
}
&:active {
box-shadow: var(--edge-highlight), var(--shadow);
transform: scale(var(--active));
}
}
}
.author {
align-items: center;
display: flex;
font-weight: bold;
gap: 0.25rem;
grid-area: name;
.author {
align-items: center;
display: flex;
font-weight: bold;
gap: 0.25rem;
grid-area: name;
.instance {
background-color: var(--fg-muted-1);
border-radius: 999px;
box-shadow: var(--edge-highlight);
color: var(--fg-color);
font-size: 0.8rem;
padding: 0.25rem 0.75rem;
text-decoration: none;
transition: var(--transition);
.instance {
background-color: var(--fg-muted-1);
border-radius: 999px;
box-shadow: var(--edge-highlight);
color: var(--fg-color);
font-size: 0.8rem;
padding: 0.25rem 0.75rem;
text-decoration: none;
transition: var(--transition);
&:hover {
background-color: var(--fg-muted-2);
text-decoration: none;
}
&:hover {
background-color: var(--fg-muted-2);
text-decoration: none;
}
&:active {
transform: scale(var(--active));
}
&:active {
transform: scale(var(--active));
}
&.op {
-webkit-backdrop-filter: unset;
backdrop-filter: unset;
background-color: transparent;
box-shadow: none;
color: var(--primary-color);
&.op {
-webkit-backdrop-filter: unset;
backdrop-filter: unset;
background-color: transparent;
box-shadow: none;
color: var(--primary-color);
&:hover {
background-color: var(--primary-color-alpha);
box-shadow: var(--edge-highlight);
}
&:hover {
background-color: var(--primary-color-alpha);
box-shadow: var(--edge-highlight);
}
&::before {
content: "";
margin-inline-end: 0.25rem;
}
}
}
}
&::before {
content: "";
margin-inline-end: 0.25rem;
}
}
}
}
.emoji {
all: unset;
display: inline;
height: 1.5em;
vertical-align: middle;
width: 1.5em;
}
.emoji {
all: unset;
display: inline;
height: 1.5em;
vertical-align: middle;
width: 1.5em;
}
time {
color: var(--fg-muted-5);
font-size: 0.8rem;
grid-area: time;
}
time {
color: var(--fg-muted-5);
font-size: 0.8rem;
grid-area: time;
}
main {
grid-area: post;
main {
grid-area: post;
p:last-child {
margin-bottom: 0;
}
}
p:last-child {
margin-bottom: 0;
}
}
footer {
grid-area: interactions;
margin-top: 1rem;
footer {
grid-area: interactions;
margin-top: 1rem;
.faves {
background-color: transparent;
border-radius: var(--rounded-corner);
color: var(--red-fg);
display: inline-block;
font-variant-numeric: tabular-nums;
padding: 0.5rem 1rem;
text-decoration: none;
transition: var(--transition);
.faves {
background-color: transparent;
border-radius: var(--rounded-corner);
color: var(--red-fg);
display: inline-block;
font-variant-numeric: tabular-nums;
padding: 0.5rem 1rem;
text-decoration: none;
transition: var(--transition);
&:hover {
background-color: var(--red-bg);
box-shadow: var(--edge-highlight);
text-decoration: none;
}
&:hover {
background-color: var(--red-bg);
box-shadow: var(--edge-highlight);
text-decoration: none;
}
&:active {
transform: scale(var(--active));
}
&:active {
transform: scale(var(--active));
}
&::before {
content: "❤️";
margin-inline-end: 0.25rem;
}
}
}
}
&::before {
content: "❤️";
margin-inline-end: 0.25rem;
}
}
}
}
}

View File

@ -1,135 +1,129 @@
.crt {
margin: 1rem 0 1rem;
border-radius: var(--rounded-corner);
background: radial-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)),
var(--primary-color);
box-shadow: 0 0 0 1px var(--primary-color-alpha),
0 2px 6px 2px var(--primary-color-alpha),
0 4px 24px 4px var(--primary-color-alpha);
margin: 1rem 0 1rem;
border-radius: var(--rounded-corner);
background: radial-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), var(--primary-color);
box-shadow: 0 0 0 1px var(--primary-color-alpha), 0 2px 6px 2px var(--primary-color-alpha), 0 4px 24px 4px var(--primary-color-alpha);
pre {
color: var(--primary-color);
padding: 1rem 1rem;
text-shadow: var(--primary-color-alpha) 0 0 4px,
var(--primary-color) 0 0 12px;
// Unset some <pre> stuff
background-color: unset;
box-shadow: unset;
margin: unset;
animation: flicker 250ms alternate infinite;
pre {
color: var(--primary-color);
padding: 1rem 1rem;
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;
// Unset some <pre> stuff
background-color: unset;
box-shadow: unset;
margin: unset;
animation: flicker 250ms alternate infinite;
@keyframes flicker {
from {
opacity: 1;
}
25% {
opacity: 0.95;
}
50% {
opacity: 0.85;
}
75% {
opacity: 1;
}
to {
opacity: 0.9;
}
}
@keyframes flicker {
from {
opacity: 1;
}
@media (prefers-reduced-motion) {
animation: none;
}
}
25% {
opacity: 0.95;
}
50% {
opacity: 0.85;
}
75% {
opacity: 1;
}
to {
opacity: 0.9;
}
}
@media (prefers-reduced-motion) {
animation: none;
}
}
}
.scanlines {
position: relative;
overflow: hidden;
position: relative;
overflow: hidden;
&::before {
animation: scanlines 250ms linear infinite;
background: repeating-linear-gradient(
to top,
rgba(0, 0, 0, 0.25),
rgba(0, 0, 0, 0.25) 1px,
transparent 3px,
transparent 4px
);
content: "";
display: block;
height: calc(100% + 0.5rem);
left: 0;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
z-index: 1;
&::before {
animation: scanlines 250ms linear infinite;
background: repeating-linear-gradient(to top, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) 1px, transparent 3px, transparent 4px);
content: "";
display: block;
height: calc(100% + 0.5rem);
left: 0;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
z-index: 1;
@keyframes scanlines {
from {
transform: translateY(-0.5rem);
}
to {
transform: translateY(0);
}
}
@keyframes scanlines {
from {
transform: translateY(-0.5rem);
}
@media (prefers-reduced-motion) {
animation: none;
}
}
to {
transform: translateY(0);
}
}
&::after {
animation: scanline 5s linear infinite;
background: linear-gradient(
to top,
transparent 0%,
var(--primary-color-alpha) 10%,
transparent 100%
);
bottom: 100%;
content: "";
display: block;
height: 8rem;
left: 0;
pointer-events: none;
position: absolute;
width: 100%;
@media (prefers-reduced-motion) {
animation: none;
}
}
@keyframes scanline {
from {
bottom: 100%;
}
50% {
bottom: 100%;
}
to {
bottom: -8rem;
}
}
&::after {
animation: scanline 5s linear infinite;
background: linear-gradient(to top, transparent 0%, var(--primary-color-alpha) 10%, transparent 100%);
bottom: 100%;
content: "";
display: block;
height: 8rem;
left: 0;
pointer-events: none;
position: absolute;
width: 100%;
@media (prefers-reduced-motion) {
animation: none;
}
}
@keyframes scanline {
from {
bottom: 100%;
}
50% {
bottom: 100%;
}
to {
bottom: -8rem;
}
}
@media (prefers-reduced-motion) {
animation: none;
}
}
}
.cursor {
animation: cursor-blink 1s infinite;
animation: cursor-blink 1s infinite;
@keyframes cursor-blink {
from {
opacity: 1;
}
50% {
opacity: 0;
}
75% {
opacity: 1;
}
}
@keyframes cursor-blink {
from {
opacity: 1;
}
@media (prefers-reduced-motion) {
animation: none;
}
50% {
opacity: 0;
}
75% {
opacity: 1;
}
}
@media (prefers-reduced-motion) {
animation: none;
}
}

View File

@ -1,12 +1,12 @@
#site-footer {
text-align: center;
padding: 3rem 0 3rem;
font-size: 1rem;
margin-top: 4rem;
text-align: center;
padding: 3rem 0 3rem;
font-size: 1rem;
margin-top: 4rem;
details {
all: unset;
color: var(--fg-muted-5);
font-size: 0.8rem;
}
details {
all: unset;
color: var(--fg-muted-5);
font-size: 0.8rem;
}
}

View File

@ -1,7 +1,7 @@
#johnvertisement {
margin: 0 auto;
display: block;
width: min(728px, 100vw);
height: min(90px, 12.367vw);
border: none;
margin: 0 auto;
display: block;
width: min(728px, 100vw);
height: min(90px, 12.367vw);
border: none;
}

View File

@ -1,7 +1,7 @@
.link-page::after {
content: "";
content: "";
}
.link-site::after {
content: "";
content: "";
}

View File

@ -1,15 +1,15 @@
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
// scrollbar-color: var(--primary-color) transparent;
accent-color: var(--primary-color);
overflow-wrap: break-word;
font-size: 16px;
scroll-behavior: smooth;
// scrollbar-color: var(--primary-color) transparent;
accent-color: var(--primary-color);
overflow-wrap: break-word;
}
// Smaller font size on mobile
@ -21,51 +21,51 @@ html {
html,
body {
margin: 0;
padding: 0;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-system);
line-height: 1.6;
color: var(--fg-color);
background: var(--bg-color);
// Put footer at the bottom for short pages, such as the 404
display: grid;
min-height: 100vh;
grid-template-rows: auto minmax(auto, 1fr) auto; // Header, stuff, footer
font-family: var(--font-system);
line-height: 1.6;
color: var(--fg-color);
background: var(--bg-color);
// Put footer at the bottom for short pages, such as the 404
display: grid;
min-height: 100vh;
grid-template-rows: auto minmax(auto, 1fr) auto; // Header, stuff, footer
}
// Style text selection to use primary color
::selection {
color: var(--fg-color);
background-color: var(--primary-color);
color: var(--fg-color);
background-color: var(--primary-color);
}
// Make focused anchor not get covered by nav,
// and flash it with primary color when jumping to it
:target:not(#main) {
scroll-margin-top: 15vh;
animation: var(--transition-long) 1s highlight-in-out;
color: var(--primary-color);
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;
scroll-margin-top: 15vh;
animation: var(--transition-long) 1s highlight-in-out;
color: var(--primary-color);
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;
@keyframes highlight-in-out {
50% {
letter-spacing: 0.125rem;
}
}
@keyframes highlight-in-out {
50% {
letter-spacing: 0.125rem;
}
}
@media (prefers-reduced-motion) {
animation: none;
}
@media (prefers-reduced-motion) {
animation: none;
}
}
// LAYOUT
.container {
margin-left: auto;
margin-right: auto;
width: min(var(--content-width), 90%);
margin-left: auto;
margin-right: auto;
width: min(var(--content-width), 90%);
}
h1,
@ -74,259 +74,259 @@ h3,
h4,
h5,
h6 {
font-family: var(--font-serif);
font-weight: lighter;
line-height: 1.25;
margin: 3rem 0 1rem;
font-family: var(--font-serif);
font-weight: lighter;
line-height: 1.25;
margin: 3rem 0 1rem;
.zola-anchor {
display: none;
visibility: hidden;
}
.zola-anchor {
display: none;
visibility: hidden;
}
&:hover .zola-anchor {
display: inline-block;
text-decoration: none;
visibility: visible;
}
&:hover .zola-anchor {
display: inline-block;
text-decoration: none;
visibility: visible;
}
}
h1 {
font-size: 3rem;
font-weight: normal;
letter-spacing: -0.15rem;
font-size: 3rem;
font-weight: normal;
letter-spacing: -0.15rem;
}
h2 {
font-size: 2.4rem;
letter-spacing: -0.15rem;
font-size: 2.4rem;
letter-spacing: -0.15rem;
}
h3 {
font-size: 1.5rem;
letter-spacing: -0.1rem;
font-size: 1.5rem;
letter-spacing: -0.1rem;
}
h4 {
font-size: 1.25rem;
letter-spacing: -0.05rem;
font-size: 1.25rem;
letter-spacing: -0.05rem;
}
h5 {
font-size: 1rem;
letter-spacing: -0.05rem;
font-size: 1rem;
letter-spacing: -0.05rem;
}
h6 {
font-size: 0.75rem;
font-size: 0.75rem;
}
a {
color: var(--primary-color);
font-weight: bold;
color: var(--primary-color);
font-weight: bold;
&:hover {
text-decoration: underline wavy;
-webkit-text-decoration: underline wavy;
}
&:hover {
text-decoration: underline wavy;
-webkit-text-decoration: underline wavy;
}
}
small {
color: var(--fg-muted-5);
font-size: 0.8rem;
color: var(--fg-muted-5);
font-size: 0.8rem;
}
dl {
padding: 0;
padding: 0;
dt {
padding: 0;
margin-top: 1rem;
font-size: 1rem;
font-weight: bold;
}
dt {
padding: 0;
margin-top: 1rem;
font-size: 1rem;
font-weight: bold;
}
dd {
padding: 0;
margin-bottom: 1rem;
}
dd {
padding: 0;
margin-bottom: 1rem;
}
}
hr {
border: 0;
border-top: 1px solid var(--fg-muted-2);
margin: 2rem auto;
width: 100%;
border: 0;
border-top: 1px solid var(--fg-muted-2);
margin: 2rem auto;
width: 100%;
}
.blog-list hr:last-of-type {
display: none;
display: none;
}
blockquote {
border-left: 0.25rem solid var(--primary-color);
border-radius: 0.2rem;
color: var(--fg-muted-5);
margin: 0;
padding: 0 0.75rem;
border-left: 0.25rem solid var(--primary-color);
border-radius: 0.2rem;
color: var(--fg-muted-5);
margin: 0;
padding: 0 0.75rem;
& & {
border-radius: 0;
}
& & {
border-radius: 0;
}
}
abbr {
cursor: help;
text-decoration: underline;
-webkit-text-decoration: underline;
cursor: help;
text-decoration: underline;
-webkit-text-decoration: underline;
}
aside {
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
float: right;
margin-inline-start: 1rem;
padding: 1rem;
width: 30%;
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
float: right;
margin-inline-start: 1rem;
padding: 1rem;
width: 30%;
@media only screen and (max-width: 720px) {
& {
width: 100%;
float: none;
margin-inline-start: 0;
}
}
@media only screen and (max-width: 720px) {
& {
width: 100%;
float: none;
margin-inline-start: 0;
}
}
}
// CODE
pre,
code,
kbd {
font-family: var(--font-monospace);
font-family: var(--font-monospace);
}
code:not(pre code) {
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--red-fg);
padding: 0.125rem 0.375rem;
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--red-fg);
padding: 0.125rem 0.375rem;
}
pre {
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight), var(--shadow);
line-height: normal; // Unset line height
margin: 1rem 0 1rem;
max-width: 100vw;
overflow: auto;
padding: 1rem;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight), var(--shadow);
line-height: normal; // Unset line height
margin: 1rem 0 1rem;
max-width: 100vw;
overflow: auto;
padding: 1rem;
table td {
padding: 0;
border: none;
}
table td {
padding: 0;
border: none;
}
// The line number cells
table td:nth-of-type(1) {
text-align: center;
user-select: none;
}
// The line number cells
table td:nth-of-type(1) {
text-align: center;
user-select: none;
}
mark {
background-color: var(--fg-muted-1);
border-radius: 0; // Unset code block border radius
color: var(--fg-color); // Unset mark color from primary color to text color
display: block;
padding: 0; // Unset mark padding
}
mark {
background-color: var(--fg-muted-1);
border-radius: 0; // Unset code block border radius
color: var(--fg-color); // Unset mark color from primary color to text color
display: block;
padding: 0; // Unset mark padding
}
table {
width: 100%;
border-collapse: collapse;
}
table {
width: 100%;
border-collapse: collapse;
}
// The line numbers already provide some kind of left/right padding
&[data-linenos] {
padding: 1rem 0;
}
// The line numbers already provide some kind of left/right padding
&[data-linenos] {
padding: 1rem 0;
}
}
kbd {
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
cursor: pointer;
display: inline-block;
font-size: 0.8rem;
line-height: normal;
padding: 0.125rem 0.375rem;
transition: var(--transition);
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
cursor: pointer;
display: inline-block;
font-size: 0.8rem;
line-height: normal;
padding: 0.125rem 0.375rem;
transition: var(--transition);
// Small nice thingy, keys can be pressed!
&:active {
background-color: var(--fg-muted-3);
box-shadow: inset 0 1px 0 var(--fg-muted-2);
transform: translateY(2px);
}
// Small nice thingy, keys can be pressed!
&:active {
background-color: var(--fg-muted-3);
box-shadow: inset 0 1px 0 var(--fg-muted-2);
transform: translateY(2px);
}
}
mark {
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--primary-color);
padding: 0.125rem 0.375rem;
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--primary-color);
padding: 0.125rem 0.375rem;
}
figcaption {
display: block;
text-align: center;
color: var(--fg-muted-4);
font-size: 0.8rem;
display: block;
text-align: center;
color: var(--fg-muted-4);
font-size: 0.8rem;
}
details {
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
padding: 1rem;
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
padding: 1rem;
& > summary {
cursor: pointer;
}
&>summary {
cursor: pointer;
}
}
// TABLES
table {
border-collapse: collapse;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
overflow: hidden;
table-layout: fixed;
width: 100%;
border-collapse: collapse;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
overflow: hidden;
table-layout: fixed;
width: 100%;
th {
font-weight: bold;
}
th {
font-weight: bold;
}
th,
td {
padding: 0.5rem 1rem;
}
th,
td {
padding: 0.5rem 1rem;
}
tr {
&:nth-child(even) {
background-color: var(--fg-muted-1);
}
tr {
&:nth-child(even) {
background-color: var(--fg-muted-1);
}
th {
background-color: var(--fg-muted-2);
}
}
th {
background-color: var(--fg-muted-2);
}
}
}
td,
th {
padding: 0;
padding: 0;
}

View File

@ -1,36 +1,35 @@
img,
video {
border-radius: var(--rounded-corner);
box-shadow: var(--shadow);
display: block;
margin: 1rem auto;
max-width: 100%;
border-radius: var(--rounded-corner);
box-shadow: var(--shadow);
display: block;
margin: 1rem auto;
max-width: 100%;
&.full {
width: 100%;
}
&.pixels {
image-rendering: pixelated;
}
&.transparent {
border-radius: 0;
box-shadow: none;
}
&.full {
width: 100%;
}
&.pixels {
image-rendering: pixelated;
}
&.transparent {
border-radius: 0;
box-shadow: none;
}
}
img {
transition: var(--transition-longer);
transition: var(--transition-longer);
&:not(.no-hover) {
cursor: zoom-in;
}
&:not(.no-hover) {
cursor: zoom-in;
}
&:not(.no-hover):hover {
border-radius: 0;
box-shadow: var(--shadow-raised);
transform: scale(1.1);
}
&:not(.no-hover):hover {
border-radius: 0;
box-shadow: var(--shadow-raised);
transform: scale(1.1);
}
}

View File

@ -1,100 +1,100 @@
#site-nav {
-webkit-backdrop-filter: var(--blur);
backdrop-filter: var(--blur);
background-color: var(--nav-bg);
border-radius: 26px;
box-shadow: var(--edge-highlight), 0px 12px 24px -16px rgba(0, 0, 0, 0.5);
margin: 1rem auto;
max-width: min(calc(var(--content-width) + 10rem), 90%);
position: sticky;
top: 1rem;
z-index: 999;
-webkit-backdrop-filter: var(--blur);
backdrop-filter: var(--blur);
background-color: var(--nav-bg);
border-radius: 26px;
box-shadow: var(--edge-highlight), 0px 12px 24px -16px rgba(0, 0, 0, 0.5);
margin: 1rem auto;
max-width: min(calc(var(--content-width) + 10rem), 90%);
position: sticky;
top: 1rem;
z-index: 999;
nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0.5rem;
nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0.5rem;
ul {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
justify-content: center;
margin: 0;
padding: 0;
}
ul {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
justify-content: center;
margin: 0;
padding: 0;
}
li {
list-style: none;
display: inline-flex;
}
li {
list-style: none;
display: inline-flex;
}
a {
border-radius: 999px;
color: var(--fg-muted-4);
padding: 0.325rem 0.75rem;
text-decoration: none;
transition: var(--transition);
a {
border-radius: 999px;
color: var(--fg-muted-4);
padding: 0.325rem 0.75rem;
text-decoration: none;
transition: var(--transition);
&:hover {
background-color: var(--fg-muted-1);
box-shadow: var(--edge-highlight);
color: var(--primary-color);
text-decoration: none;
}
&:hover {
background-color: var(--fg-muted-1);
box-shadow: var(--edge-highlight);
color: var(--primary-color);
text-decoration: none;
}
&:active {
transform: scale(var(--active));
}
}
&:active {
transform: scale(var(--active));
}
}
#main-content {
background: var(--bg-color);
position: absolute;
transform: translateY(-200%);
z-index: 999;
#main-content {
background: var(--bg-color);
position: absolute;
transform: translateY(-200%);
z-index: 999;
&:focus {
transform: translateY(0);
}
}
&:focus {
transform: translateY(0);
}
}
#home {
position: relative;
margin-right: 0.625rem;
#home {
position: relative;
margin-right: 0.625rem;
&::after {
background-color: var(--fg-muted-2);
content: "";
height: 110%;
position: absolute;
right: -0.5rem;
top: 0;
width: 1px;
}
&::after {
background-color: var(--fg-muted-2);
content: "";
height: 110%;
position: absolute;
right: -0.5rem;
top: 0;
width: 1px;
}
a {
font-weight: 800;
color: var(--fg-muted-5);
a {
font-weight: 800;
color: var(--fg-muted-5);
&:hover {
color: var(--primary-color);
}
}
}
&:hover {
color: var(--primary-color);
}
}
}
#feed a {
padding: 0.325rem 0.625rem;
#feed a {
padding: 0.325rem 0.625rem;
svg {
vertical-align: -0.125em;
}
svg {
vertical-align: -0.125em;
}
span {
display: none;
}
}
}
span {
display: none;
}
}
}
}

View File

@ -1,7 +1,7 @@
#not-found {
width: 100%;
padding-top: 1rem;
padding-right: 35%;
padding-left: 35%;
padding-bottom: 1rem;
width: 100%;
padding-top: 1rem;
padding-right: 35%;
padding-left: 35%;
padding-bottom: 1rem;
}

View File

@ -1,34 +1,34 @@
#post-nav {
display: flex;
display: flex;
.post-nav-item {
width: 50%;
text-decoration: none;
.post-nav-item {
width: 50%;
text-decoration: none;
&:hover .post-title {
color: var(--primary-color);
}
&:hover .post-title {
color: var(--primary-color);
}
&:nth-child(2n + 1) {
padding-left: 0;
padding-right: 1rem;
}
&:nth-child(2n + 1) {
padding-left: 0;
padding-right: 1rem;
}
&:nth-child(2n) {
text-align: right;
padding-left: 1rem;
padding-right: 0;
}
&:nth-child(2n) {
text-align: right;
padding-left: 1rem;
padding-right: 0;
}
.nav-arrow {
font-weight: normal;
color: var(--fg-muted-5);
margin-bottom: 0.5rem;
}
.nav-arrow {
font-weight: normal;
color: var(--fg-muted-5);
margin-bottom: 0.5rem;
}
.post-title {
color: var(--fg-color);
transition: var(--transition);
}
}
.post-title {
color: var(--fg-color);
transition: var(--transition);
}
}
}

View File

@ -1,14 +1,14 @@
#qrcode {
background-color: white;
float: right;
height: 155px;
margin: 3rem 0 0 1rem;
padding: 15px;
width: 155px;
background-color: white;
float: right;
height: 155px;
margin: 3rem 0 0 1rem;
padding: 15px;
width: 155px;
@media only screen and (max-width: 720px) {
& {
display: none;
}
}
@media only screen and (max-width: 720px) {
& {
display: none;
}
}
}

View File

@ -1,35 +1,35 @@
.statement-container {
margin: 1rem 0 1rem;
padding: 1rem 1rem 0.5rem 1rem;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
margin: 1rem 0 1rem;
padding: 1rem 1rem 0.5rem 1rem;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
* {
margin: 0;
}
* {
margin: 0;
}
p,
ul,
ol {
margin: 0.5rem 0 0.5rem;
}
p,
ul,
ol {
margin: 0.5rem 0 0.5rem;
}
.big {
font-size: 1.5rem;
}
.big {
font-size: 1.5rem;
}
&.archive {
background-color: var(--purple-bg);
color: var(--purple-fg);
}
&.archive {
background-color: var(--purple-bg);
color: var(--purple-fg);
}
&.disclaimer {
background-color: var(--red-bg);
color: var(--red-fg);
}
&.disclaimer {
background-color: var(--red-bg);
color: var(--red-fg);
}
&.trigger {
background-color: var(--yellow-bg);
color: var(--yellow-fg);
}
&.trigger {
background-color: var(--yellow-bg);
color: var(--yellow-fg);
}
}

View File

@ -1,35 +1,35 @@
.tags {
list-style: none;
padding: 0;
display: inline-block;
list-style: none;
padding: 0;
display: inline-block;
li {
display: inline-block;
margin: 0 0.25rem 0.5rem 0;
transition: var(--transition);
li {
display: inline-block;
margin: 0 0.25rem 0.5rem 0;
transition: var(--transition);
&:active {
transform: scale(var(--active));
}
}
&:active {
transform: scale(var(--active));
}
}
.tag {
background-color: var(--fg-muted-1);
border-radius: 999px;
box-shadow: var(--edge-highlight);
color: var(--fg-color);
padding: 0.25rem 0.75rem;
text-decoration: none;
transition: var(--transition);
.tag {
background-color: var(--fg-muted-1);
border-radius: 999px;
box-shadow: var(--edge-highlight);
color: var(--fg-color);
padding: 0.25rem 0.75rem;
text-decoration: none;
transition: var(--transition);
&:hover {
color: var(--primary-color);
background-color: var(--primary-color-alpha);
text-decoration: none;
}
&:hover {
color: var(--primary-color);
background-color: var(--primary-color-alpha);
text-decoration: none;
}
&::before {
content: "#";
}
}
&::before {
content: "#";
}
}
}

View File

@ -1,71 +1,62 @@
:root {
// COLORS
--bg-color: var(--bg-color-l);
--fg-color: rgba(0, 0, 0, 0.8);
--fg-muted-1: rgba(0, 0, 0, 0.05);
--fg-muted-2: rgba(0, 0, 0, 0.1);
--fg-muted-3: rgba(0, 0, 0, 0.2);
--fg-muted-4: rgba(0, 0, 0, 0.5);
--fg-muted-5: rgba(0, 0, 0, 0.6);
--nav-bg: rgba(242, 242, 242, 0.7);
--orange-bg: rgba(255, 120, 0, 0.1);
--orange-fg: rgb(255, 120, 0);
--purple-bg: rgba(145, 65, 172, 0.1);
--purple-fg: rgb(145, 65, 172);
--red-bg: rgba(224, 27, 36, 0.1);
--red-fg: rgb(224, 27, 36);
--yellow-bg: rgba(156, 110, 3, 0.1);
--yellow-fg: rgb(156, 110, 3);
// COLORS
--bg-color: var(--bg-color-l);
--fg-color: rgba(0, 0, 0, 0.8);
--fg-muted-1: rgba(0, 0, 0, 0.05);
--fg-muted-2: rgba(0, 0, 0, 0.1);
--fg-muted-3: rgba(0, 0, 0, 0.2);
--fg-muted-4: rgba(0, 0, 0, 0.5);
--fg-muted-5: rgba(0, 0, 0, 0.6);
--nav-bg: rgba(242, 242, 242, 0.7);
--orange-bg: rgba(255, 120, 0, 0.1);
--orange-fg: rgb(255, 120, 0);
--purple-bg: rgba(145, 65, 172, 0.1);
--purple-fg: rgb(145, 65, 172);
--red-bg: rgba(224, 27, 36, 0.1);
--red-fg: rgb(224, 27, 36);
--yellow-bg: rgba(156, 110, 3, 0.1);
--yellow-fg: rgb(156, 110, 3);
// VARIABLES
--active: 0.9;
--bg-color-d: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
var(--primary-color);
--bg-color-l: linear-gradient(
rgba(255, 255, 255, 0.8),
rgba(255, 255, 255, 0.8)
),
var(--primary-color);
--blur: saturate(180%) blur(10px);
--content-width: 720px;
--edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.1);
--font-monospace: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo,
Consolas, "DejaVu Sans Mono", monospace;
--font-serif: Rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif",
"Sitka Small", serif;
--font-system: system-ui, sans-serif;
--rounded-corner-small: 8px;
--rounded-corner: 12px;
--shadow-raised: 0 0 0 1px rgba(0, 0, 0, 0.06),
0 2px 6px 2px rgba(0, 0, 0, 0.14), 0 4px 12px 4px rgba(0, 0, 0, 0.06);
--shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 3px 1px rgba(0, 0, 0, 0.07),
0 2px 6px 2px rgba(0, 0, 0, 0.03);
--transition-bezier: 350ms cubic-bezier(0.17, 0.89, 0.32, 1.28);
--transition-long: 800ms;
--transition-longer: 400ms;
--transition: 200ms;
// VARIABLES
--active: 0.9;
--bg-color-d: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), var(--primary-color);
--bg-color-l: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), var(--primary-color);
--blur: saturate(180%) blur(10px);
--content-width: 720px;
--edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.1);
--font-monospace: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
--font-serif: Rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif", "Sitka Small", serif;
--font-system: system-ui, sans-serif;
--rounded-corner-small: 8px;
--rounded-corner: 12px;
--shadow-raised: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 6px 2px rgba(0, 0, 0, 0.14), 0 4px 12px 4px rgba(0, 0, 0, 0.06);
--shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 3px 1px rgba(0, 0, 0, 0.07), 0 2px 6px 2px rgba(0, 0, 0, 0.03);
--transition-bezier: 350ms cubic-bezier(0.17, 0.89, 0.32, 1.28);
--transition-long: 800ms;
--transition-longer: 400ms;
--transition: 200ms;
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
:root {
color-scheme: dark;
// COLORS
--bg-color: var(--bg-color-d);
--fg-color: rgb(255, 255, 255);
--fg-muted-1: rgba(255, 255, 255, 0.05);
--fg-muted-2: rgba(255, 255, 255, 0.1);
--fg-muted-3: rgba(255, 255, 255, 0.2);
--fg-muted-4: rgba(255, 255, 255, 0.5);
--fg-muted-5: rgba(255, 255, 255, 0.6);
--nav-bg: rgba(25, 25, 25, 0.7);
--orange-bg: rgba(255, 190, 111, 0.1);
--orange-fg: rgb(255, 190, 111);
--purple-bg: rgba(220, 138, 221, 0.1);
--purple-fg: rgb(220, 138, 221);
--red-bg: rgba(226, 97, 81, 0.1);
--red-fg: rgb(246, 97, 81);
--yellow-bg: rgba(248, 228, 92, 0.1);
--yellow-fg: rgb(248, 228, 92);
}
// COLORS
--bg-color: var(--bg-color-d);
--fg-color: rgb(255, 255, 255);
--fg-muted-1: rgba(255, 255, 255, 0.05);
--fg-muted-2: rgba(255, 255, 255, 0.1);
--fg-muted-3: rgba(255, 255, 255, 0.2);
--fg-muted-4: rgba(255, 255, 255, 0.5);
--fg-muted-5: rgba(255, 255, 255, 0.6);
--nav-bg: rgba(25, 25, 25, 0.7);
--orange-bg: rgba(255, 190, 111, 0.1);
--orange-fg: rgb(255, 190, 111);
--purple-bg: rgba(220, 138, 221, 0.1);
--purple-fg: rgb(220, 138, 221);
--red-bg: rgba(226, 97, 81, 0.1);
--red-fg: rgb(246, 97, 81);
--yellow-bg: rgba(248, 228, 92, 0.1);
--yellow-fg: rgb(248, 228, 92);
}
}

View File

@ -2,8 +2,8 @@
{% block content %}
<picture>
<source srcset="{{ get_url(path='404.png') }}" media="(prefers-reduced-motion: reduce)"></source>
<img id="not-found" class="pixels transparent no-hover" srcset="{{ get_url(path='404.gif') }}">
<source srcset="{{ get_url(path='404.png') }}" media="(prefers-reduced-motion: reduce)"></source>
<img id="not-found" class="pixels transparent no-hover" srcset="{{ get_url(path='404.gif') }}">
</picture>
<h1>Page Not Found</h1>
@ -11,7 +11,7 @@
<p>The requested page could not be found. If you feel this is not normal, then you can create an issue on the issue tracker.</p>
<p class="dialog-buttons">
<a onclick="window.history.go(-1)" class="inline-button">Go Back</a>
<a href="{{ config.extra.issues_url }}">File an Issue</a>
<a onclick="window.history.go(-1)" class="inline-button">Go Back</a>
<a href="{{ config.extra.issues_url }}">File an Issue</a>
</p>
{% endblock content %}

View File

@ -2,11 +2,11 @@
<html lang="en">
{% include "partials/head.html" ignore missing -%}
<body>
{% include "partials/nav.html" ignore missing -%}
<div id="main" class="container">
{% block custom %}{%- endblock -%}
{% block content %}{%- endblock -%}
</div>
{% include "partials/footer.html" ignore missing -%}
{% include "partials/nav.html" ignore missing -%}
<div id="main" class="container">
{% block custom %}{%- endblock -%}
{% block content %}{%- endblock -%}
</div>
{% include "partials/footer.html" ignore missing -%}
</body>
</html>

View File

@ -4,98 +4,96 @@
<h1>{{ page.title }}</h1>
{%- if page.date %}
<small>
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
</time>
{%- if page.authors %}
<span></span>
<span>Author: {{ page.authors[0] }}</span>
{%- endif %}
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
<small>
<time datetime="{{ page.date | date(format=' %+') }}" pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
</time>
{%- if page.authors %}
<span></span>
<span>Author: {{ page.authors[0] }}</span>
{%- endif %}
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
{%- endif %}
{% if page.extra.archive %}
<div class="statement-container archive">
<strong class="big">⚠ Archived</strong>
{{ page.extra.archive | markdown | safe }}
</div>
<div class="statement-container archive">
<strong class="big">⚠ Archived</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{% endif %}
{% if page.extra.trigger %}
<div class="statement-container trigger">
<strong class="big">⚠ Trigger Warning</strong>
{{ page.extra.trigger | markdown | safe }}
</div>
<div class="statement-container trigger">
<strong class="big">⚠ Trigger Warning</strong>
{{ page.extra.trigger | markdown | safe }}
</div>
{% endif %}
{% if page.extra.disclaimer %}
<div class="statement-container disclaimer">
<strong class="big">⚠ Disclaimer(s)</strong>
{{ page.extra.disclaimer | markdown | safe }}
</div>
<div class="statement-container disclaimer">
<strong class="big">⚠ Disclaimer(s)</strong>
{{ page.extra.disclaimer | markdown | safe }}
</div>
{% endif %}
{% if page.extra.toc %}
<h2>
Table of Contents
</h2>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
<h2>Table of Contents</h2>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{{ page.content | safe }}
{% if page.extra.comments.id %}
{% include "partials/comments.html" %}
{% include "partials/comments.html" %}
{% endif %}
{% if page.lower or page.higher %}
<hr>
<nav id="post-nav">
{% if page.higher %}
<a class="post-nav-item post-nav-prev" href="{{ page.higher.permalink }}">
<div class="nav-arrow">← Previous</div>
<span class="post-title">{{ page.higher.title }}</span>
</a>
{% endif %}
{% if page.lower %}
<a class="post-nav-item post-nav-next" href="{{ page.lower.permalink }}">
<div class="nav-arrow">Next →</div>
<span class="post-title">{{ page.lower.title }}</span>
</a>
{% endif %}
</nav>
<hr>
<nav id="post-nav">
{% if page.higher %}
<a class="post-nav-item post-nav-prev" href="{{ page.higher.permalink }}">
<div class="nav-arrow">← Previous</div>
<span class="post-title">{{ page.higher.title }}</span>
</a>
{% endif %}
{% if page.lower %}
<a class="post-nav-item post-nav-next" href="{{ page.lower.permalink }}">
<div class="nav-arrow">Next →</div>
<span class="post-title">{{ page.lower.title }}</span>
</a>
{% endif %}
</nav>
{% endif %}
<p class="dialog-buttons">
<a class="inline-button" href="#top">Go to top</a>
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an issue</a>
<a class="inline-button" href="#top">Go to top</a>
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an issue</a>
</p>
{% endblock content %}

View File

@ -6,45 +6,39 @@
<p>{{ section.description }}</p>
<small>
<a class="link-page" href="{{ get_url(path='tags') }}">Filter by tag</a>
<br />
From newest to oldest ↓
<a class="link-page" href="{{ get_url(path='tags') }}">Filter by tag</a>
<br />
From newest to oldest ↓
</small>
<div class="blog-list">
{% for page in section.pages %}
<article>
<h3>
<a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a>
</h3>
{%- if page.description %}
<p>{{ page.description }}</p>
{%- endif %}
{%- if page.date %}
<small>
<time datetime="{{ page.date | date(format='%+') }}" pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
</time>
{%- if page.authors %}
<span></span>
<span>Author: {{ page.authors[0] }}</span>
{%- endif %}
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
{%- endif %}
</article>
<hr>
{% endfor %}
{% for page in section.pages %}
<article>
<h3><a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a></h3>
{%- if page.description %}
<p>{{ page.description }}</p>
{%- endif %}
{%- if page.date %}
<small>
<time datetime="{{ page.date | date(format='%+') }}" pubdate>{{- page.date | date(format=config.extra.date_format) -}}</time>
{%- if page.authors %}
<span></span>
<span>Author: {{ page.authors[0] }}</span>
{%- endif %}
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li><a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a></li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
{%- endif %}
</article>
<hr>
{% endfor %}
</div>
{% endblock content %}

View File

@ -2,4 +2,4 @@
{% block content %}
{{ section.content | safe }}
{% endblock content %}
{% endblock content %}

View File

@ -2,10 +2,10 @@
{% block content %}
{% if page.extra.archive %}
<div class="statement-container archive">
<strong class="big">⚠ Archived</strong>
{{ page.extra.archive | markdown | safe }}
</div>
<div class="statement-container archive">
<strong class="big">⚠ Archived</strong>
{{ page.extra.archive | markdown | safe }}
</div>
{% endif %}
{{ page.content | safe }}
{% endblock content %}
{% endblock content %}

View File

@ -1,251 +1,252 @@
<!-- Taken from the https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ -->
{% if page.extra.comments.host %}
{% set host = page.extra.comments.host %}
{% set host = page.extra.comments.host %}
{% else %}
{% set host = config.extra.comments.host %}
{% set host = config.extra.comments.host %}
{% endif %}
{% if page.extra.comments.user %}
{% set username = page.extra.comments.user %}
{% set username = page.extra.comments.user %}
{% else %}
{% set username = config.extra.comments.user %}
{% set username = config.extra.comments.user %}
{% endif %}
{% set id = page.extra.comments.id %}
<section id="comments">
<img id="qrcode" class="no-hover pixels" alt="QR code to a Mastodon post"
src="https://api.qrserver.com/v1/create-qr-code/?data=https://{{ host }}/@{{ username }}/{{ id }}">
<h2>Comments</h2>
<p>
You can respond to this <a href="https://{{ host }}/@{{ username }}/{{ id }}">post</a> with an account on the
Fediverse (e.g Mastodon, Akkoma, Sharkey or any Mastodon API compatible server).
</p>
<p>
<small>
Since Fediverse is decentralized, you can use your existing Mastodon API compatible account if you don't have an
account on this server. Known non-private replies are displayed below.
</small>
</p>
<img id="qrcode" class="no-hover pixels" alt="QR code to a Mastodon post"
src="https://api.qrserver.com/v1/create-qr-code/?data=https://{{ host }}/@{{ username }}/{{ id }}">
<h2>Comments</h2>
<p>
You can respond to this <a href="https://{{ host }}/@{{ username }}/{{ id }}">post</a> with an account on the
Fediverse (e.g Mastodon, Akkoma, Sharkey or any Mastodon API compatible server).
</p>
<p>
<small>
Since Fediverse is decentralized, you can use your existing Mastodon API compatible account if you don't
have an
account on this server. Known non-private replies are displayed below.
</small>
</p>
<p>
<a id="load-comments" class="inline-button" onclick="loadComments()">Load comments…</a>
</p>
<div id="comments-wrapper">
<noscript>
<p>
Loading comments relies on JavaScript. Try enabling JavaScript and
reloading, or visit
<a href="https://{{ host }}/@{{ username }}/{{ id }}">
the original post
</a>
on Mastodon.
</p>
</noscript>
</div>
<script type="text/javascript">
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
function emojify(input, emojis) {
let output = input;
<p>
<a id="load-comments" class="inline-button" onclick="loadComments()">Load comments…</a>
</p>
<div id="comments-wrapper">
<noscript>
<p>
Loading comments relies on JavaScript. Try enabling JavaScript and
reloading, or visit
<a href="https://{{ host }}/@{{ username }}/{{ id }}">
the original post
</a>
on Mastodon.
</p>
</noscript>
</div>
<script type="text/javascript">
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
function emojify(input, emojis) {
let output = input;
emojis.forEach((emoji) => {
let picture = document.createElement("picture");
emojis.forEach((emoji) => {
let picture = document.createElement("picture");
let source = document.createElement("source");
source.setAttribute("srcset", escapeHtml(emoji.url));
source.setAttribute("media", "(prefers-reduced-motion: no-preference)");
let source = document.createElement("source");
source.setAttribute("srcset", escapeHtml(emoji.url));
source.setAttribute("media", "(prefers-reduced-motion: no-preference)");
let img = document.createElement("img");
img.className = "emoji";
img.setAttribute("src", escapeHtml(emoji.static_url));
img.setAttribute("alt", `:${emoji.shortcode}:`);
img.setAttribute("title", `:${emoji.shortcode}:`);
img.setAttribute("width", "20");
img.setAttribute("height", "20");
let img = document.createElement("img");
img.className = "emoji";
img.setAttribute("src", escapeHtml(emoji.static_url));
img.setAttribute("alt", `:${emoji.shortcode}:`);
img.setAttribute("title", `:${emoji.shortcode}:`);
img.setAttribute("width", "20");
img.setAttribute("height", "20");
picture.appendChild(source);
picture.appendChild(img);
picture.appendChild(source);
picture.appendChild(img);
output = output.replace(`:${emoji.shortcode}:`, picture.outerHTML);
});
output = output.replace(`:${emoji.shortcode}:`, picture.outerHTML);
});
return output;
}
return output;
}
function loadComments() {
let commentsWrapper = document.getElementById("comments-wrapper");
document.getElementById("load-comments").innerHTML = "Loading…";
fetch("https://{{ host }}/api/v1/statuses/{{ id }}/context")
.then(function (response) {
return response.json();
})
.then(function (data) {
let descendants = data["descendants"];
if (
descendants &&
Array.isArray(descendants) &&
descendants.length > 0
) {
commentsWrapper.innerHTML = "";
function loadComments() {
let commentsWrapper = document.getElementById("comments-wrapper");
document.getElementById("load-comments").innerHTML = "Loading…";
fetch("https://{{ host }}/api/v1/statuses/{{ id }}/context")
.then(function (response) {
return response.json();
})
.then(function (data) {
let descendants = data["descendants"];
if (
descendants &&
Array.isArray(descendants) &&
descendants.length > 0
) {
commentsWrapper.innerHTML = "";
descendants.forEach(function (status) {
console.log(descendants);
if (status.account.display_name.length > 0) {
status.account.display_name = escapeHtml(
status.account.display_name
);
status.account.display_name = emojify(
status.account.display_name,
status.account.emojis
);
} else {
status.account.display_name = status.account.username;
}
descendants.forEach(function (status) {
console.log(descendants);
if (status.account.display_name.length > 0) {
status.account.display_name = escapeHtml(
status.account.display_name
);
status.account.display_name = emojify(
status.account.display_name,
status.account.emojis
);
} else {
status.account.display_name = status.account.username;
}
let instance = "";
if (status.account.acct.includes("@")) {
instance = status.account.acct.split("@")[1];
} else {
instance = "{{ host }}";
}
let instance = "";
if (status.account.acct.includes("@")) {
instance = status.account.acct.split("@")[1];
} else {
instance = "{{ host }}";
}
const isReply = status.in_reply_to_id !== "{{ id }}";
const isReply = status.in_reply_to_id !== "{{ id }}";
let op = false;
if (status.account.acct == "{{ username }}") {
op = true;
}
let op = false;
if (status.account.acct == "{{ username }}") {
op = true;
}
status.content = emojify(status.content, status.emojis);
status.content = emojify(status.content, status.emojis);
let avatarSource = document.createElement("source");
avatarSource.setAttribute(
"srcset",
escapeHtml(status.account.avatar)
);
avatarSource.setAttribute(
"media",
"(prefers-reduced-motion: no-preference)"
);
let avatarSource = document.createElement("source");
avatarSource.setAttribute(
"srcset",
escapeHtml(status.account.avatar)
);
avatarSource.setAttribute(
"media",
"(prefers-reduced-motion: no-preference)"
);
let avatarImg = document.createElement("img");
avatarImg.className = "avatar";
avatarImg.setAttribute(
"src",
escapeHtml(status.account.avatar_static)
);
avatarImg.setAttribute(
"alt",
`@${status.account.username}@${instance} avatar`
);
let avatarImg = document.createElement("img");
avatarImg.className = "avatar";
avatarImg.setAttribute(
"src",
escapeHtml(status.account.avatar_static)
);
avatarImg.setAttribute(
"alt",
`@${status.account.username}@${instance} avatar`
);
let avatarPicture = document.createElement("picture");
avatarPicture.appendChild(avatarSource);
avatarPicture.appendChild(avatarImg);
let avatarPicture = document.createElement("picture");
avatarPicture.appendChild(avatarSource);
avatarPicture.appendChild(avatarImg);
let avatar = document.createElement("a");
avatar.className = "avatar-link";
avatar.setAttribute("href", status.account.url);
avatar.setAttribute("rel", "external nofollow");
avatar.setAttribute(
"title",
`View profile at @${status.account.username}@${instance}`
);
avatar.appendChild(avatarPicture);
let avatar = document.createElement("a");
avatar.className = "avatar-link";
avatar.setAttribute("href", status.account.url);
avatar.setAttribute("rel", "external nofollow");
avatar.setAttribute(
"title",
`View profile at @${status.account.username}@${instance}`
);
avatar.appendChild(avatarPicture);
let instanceBadge = document.createElement("a");
instanceBadge.className = "instance";
instanceBadge.setAttribute("href", status.account.url);
instanceBadge.setAttribute(
"title",
`@${status.account.username}@${instance}`
);
instanceBadge.setAttribute("rel", "external nofollow");
instanceBadge.textContent = instance;
let instanceBadge = document.createElement("a");
instanceBadge.className = "instance";
instanceBadge.setAttribute("href", status.account.url);
instanceBadge.setAttribute(
"title",
`@${status.account.username}@${instance}`
);
instanceBadge.setAttribute("rel", "external nofollow");
instanceBadge.textContent = instance;
let display = document.createElement("span");
display.className = "display";
display.setAttribute("itemprop", "author");
display.setAttribute("itemtype", "http://schema.org/Person");
display.innerHTML = status.account.display_name;
let display = document.createElement("span");
display.className = "display";
display.setAttribute("itemprop", "author");
display.setAttribute("itemtype", "http://schema.org/Person");
display.innerHTML = status.account.display_name;
let header = document.createElement("header");
header.className = "author";
header.appendChild(display);
header.appendChild(instanceBadge);
let header = document.createElement("header");
header.className = "author";
header.appendChild(display);
header.appendChild(instanceBadge);
let permalink = document.createElement("a");
permalink.setAttribute("href", status.url);
permalink.setAttribute("itemprop", "url");
permalink.setAttribute("title", `View comment at ${instance}`);
permalink.setAttribute("rel", "external nofollow");
permalink.textContent = new Date(
status.created_at
).toLocaleString("en-IE", {
dateStyle: "long",
timeStyle: "short",
});
let permalink = document.createElement("a");
permalink.setAttribute("href", status.url);
permalink.setAttribute("itemprop", "url");
permalink.setAttribute("title", `View comment at ${instance}`);
permalink.setAttribute("rel", "external nofollow");
permalink.textContent = new Date(
status.created_at
).toLocaleString("en-IE", {
dateStyle: "long",
timeStyle: "short",
});
let timestamp = document.createElement("time");
timestamp.setAttribute("datetime", status.created_at);
timestamp.appendChild(permalink);
let timestamp = document.createElement("time");
timestamp.setAttribute("datetime", status.created_at);
timestamp.appendChild(permalink);
let main = document.createElement("main");
main.setAttribute("itemprop", "text");
main.innerHTML = status.content;
let main = document.createElement("main");
main.setAttribute("itemprop", "text");
main.innerHTML = status.content;
let interactions = document.createElement("footer");
let interactions = document.createElement("footer");
let faves = document.createElement("a");
faves.className = "faves";
faves.setAttribute("href", `${status.url}/favourites`);
faves.setAttribute("title", `Favorites from ${instance}`);
faves.textContent = status.favourites_count;
interactions.appendChild(faves);
let faves = document.createElement("a");
faves.className = "faves";
faves.setAttribute("href", `${status.url}/favourites`);
faves.setAttribute("title", `Favorites from ${instance}`);
faves.textContent = status.favourites_count;
interactions.appendChild(faves);
let comment = document.createElement("article");
comment.id = `comment-${status.id}`;
comment.className = isReply ? "comment comment-reply" : "comment";
comment.setAttribute("itemprop", "comment");
comment.setAttribute("itemtype", "http://schema.org/Comment");
comment.appendChild(avatar);
comment.appendChild(header);
comment.appendChild(timestamp);
comment.appendChild(main);
if (status.favourites_count > 0) {
comment.appendChild(interactions);
}
let comment = document.createElement("article");
comment.id = `comment-${status.id}`;
comment.className = isReply ? "comment comment-reply" : "comment";
comment.setAttribute("itemprop", "comment");
comment.setAttribute("itemtype", "http://schema.org/Comment");
comment.appendChild(avatar);
comment.appendChild(header);
comment.appendChild(timestamp);
comment.appendChild(main);
if (status.favourites_count > 0) {
comment.appendChild(interactions);
}
if (op === true) {
comment.classList.add("op");
if (op === true) {
comment.classList.add("op");
avatar.classList.add("op");
avatar.setAttribute(
"title",
"Blog post author; " + avatar.getAttribute("title")
);
avatar.classList.add("op");
avatar.setAttribute(
"title",
"Blog post author; " + avatar.getAttribute("title")
);
instanceBadge.classList.add("op");
instanceBadge.setAttribute(
"title",
"Blog post author: " + instanceBadge.getAttribute("title")
);
}
instanceBadge.classList.add("op");
instanceBadge.setAttribute(
"title",
"Blog post author: " + instanceBadge.getAttribute("title")
);
}
commentsWrapper.innerHTML += comment.outerHTML;
});
}
let loadCommentsButton = document.getElementById("load-comments");
loadCommentsButton.remove();
});
}
</script>
</section>
commentsWrapper.innerHTML += comment.outerHTML;
});
}
let loadCommentsButton = document.getElementById("load-comments");
loadCommentsButton.remove();
});
}
</script>
</section>

View File

@ -1,19 +1,20 @@
<footer id="site-footer">
{% if config.extra.footer.show_copyright %}
<p title="Last built at {{ now() | date(format='%F %R %Z') }}">&copy; {{ config.title }}, {{ now() | date(format="%Y") }}</p>
{% endif %}
{% if config.extra.footer.show_copyright %}
<p title="Last built at {{ now() | date(format='%F %R %Z') }}">&copy; {{ config.title }}, {{ now() | date(format="%Y") }}</p>
{% endif %}
{% if config.extra.footer.show_source %}
<p><a href="{{ config.extra.source_url }}">Website source</a></p>
{% endif %}
{% if config.extra.footer.show_source %}
<p><a href="{{ config.extra.source_url }}">Website source</a></p>
{% endif %}
{% if config.extra.footer.show_powered_by %}
<p><small>Powered by <a href="https://www.getzola.org">Zola</a> and <a href="https://daudix.codeberg.page/duckquill">Duckquill</a></small></p>
{% endif %}
{% if config.extra.footer.show_powered_by %}
<p><small>Powered by <a href="https://www.getzola.org">Zola</a> and <a href="https://daudix.codeberg.page/duckquill">Duckquill</a></small></p>
{% endif %}
{% if config.extra.footer.show_johnvert %}
<details><summary>Johnvertisement</summary>
<iframe id="johnvertisement" title="Johnvertisement" src="https://john.citrons.xyz/embed?ref={{ config.extra.footer.johnvert_ref }}"></iframe>
</details>
{% endif %}
{% if config.extra.footer.show_johnvert %}
<details>
<summary>Johnvertisement</summary>
<iframe id="johnvertisement" title="Johnvertisement" src="https://john.citrons.xyz/embed?ref={{ config.extra.footer.johnvert_ref }}"></iframe>
</details>
{% endif %}
</footer>

View File

@ -1,62 +1,60 @@
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="{{ config.description }}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="{{ config.extra.primary_color }}" />
<link rel="canonical" href="{{ current_url | default(value='/') }}" />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="{{ config.description }}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="{{ config.extra.primary_color }}" />
<link rel="canonical" href="{{ current_url | default(value='/') }}" />
<title>
{%- if page.title -%}
{{- page.title }} - {{ config.title -}}
{%- elif section.title -%}
{{- section.title }} - {{ config.title -}}
{%- else -%}
{{- config.title -}}
{%- endif -%}
</title>
<title>
{%- if page.title -%}
{{- page.title }} - {{ config.title -}}
{%- elif section.title -%}
{{- section.title }} - {{ config.title -}}
{%- else -%}
{{- config.title -}}
{%- endif -%}
</title>
<link rel="stylesheet" type="text/css" href="{{ get_url(path='style.css') }}" />
<link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" type="text/css" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)" />
{% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %}
<link rel="stylesheet" type="text/css" href="{{ get_url(path=stylesheet) }}" />
{% endfor %}
{% endif %}
<link rel="stylesheet" type="text/css" href="{{ get_url(path='style.css') }}" />
<link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" type="text/css" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)" />
{% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %}
<link rel="stylesheet" type="text/css" href="{{ get_url(path=stylesheet) }}" />
{% endfor %}
{% endif %}
<style type="text/css">
:root {
--primary-color-alpha: {{ config.extra.primary_color_alpha }};
--primary-color: {{ config.extra.primary_color }};
}
</style>
<style type="text/css">
:root {
--primary-color-alpha: {{ config.extra.primary_color_alpha }};
--primary-color: {{ config.extra.primary_color }};
}
</style>
{% if page.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ page.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ page.extra.emoji_favicon }}</text></svg>">
{% elif section.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ section.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ section.extra.emoji_favicon }}</text></svg>">
{% elif config.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ config.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ config.extra.emoji_favicon }}</text></svg>">
{% elif config.extra.animated_favicon %}
<link rel="icon" type="image/gif" href="{{ get_url(path='favicon.gif') }}" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}" />
{% else %}
<link rel="icon" type="image/png" href="{{ get_url(path='favicon.png') }}" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}" />
{% endif %}
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
{% if page.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ page.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ page.extra.emoji_favicon }}</text></svg>">
{% elif section.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ section.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ section.extra.emoji_favicon }}</text></svg>">
{% elif config.extra.emoji_favicon %}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ config.extra.emoji_favicon }}</text></svg>">
<link rel="apple-touch-icon" type="image/svg+xml" sizes="180x180" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%22-.1em%22 y=%22.9em%22 font-size=%2290%22>{{ config.extra.emoji_favicon }}</text></svg>">
{% elif config.extra.animated_favicon %}
<link rel="icon" type="image/gif" href="{{ get_url(path='favicon.gif') }}" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}" />
{% else %}
<link rel="icon" type="image/png" href="{{ get_url(path='favicon.png') }}" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}" />
{% endif %}
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
<!-- Open Graph -->
<meta property="og:site_name" content="{{ config.title }}" />
<meta property="og:title" content="{%- if page.title -%} {{- page.title }} - {{ config.title -}}
{%- elif section.title -%} {{- section.title }} - {{ config.title -}}
{%- else -%} {{- config.title -}} {%- endif -%}" />
<meta property="og:url" content="{{ current_url | default(value='/') }}" />
<meta property="og:description" content="{{ page.description | default(value=config.description) }}" />
<meta property="og:image" content="{{ get_url(path='card.png') }}" />
<meta property="twitter:card" content="summary_large_image" />
<!-- Open Graph -->
<meta property="og:site_name" content="{{ config.title }}" />
<meta property="og:title" content="{%- if page.title -%}{{- page.title }} - {{ config.title -}}{%- elif section.title -%}{{- section.title }} - {{ config.title -}}{%- else -%}{{- config.title -}}{%- endif -%}" />
<meta property="og:url" content="{{ current_url | default(value='/') }}" />
<meta property="og:description" content="{{ page.description | default(value=config.description) }}" />
<meta property="og:image" content="{{ get_url(path='card.png') }}" />
<meta property="twitter:card" content="summary_large_image" />
</head>

View File

@ -1,25 +1,24 @@
<header id="site-nav">
<nav>
<a href="#main" id="main-content" tabindex="0">Skip to main content</a>
<ul>
<li id="home">
<a href="{{ get_url(path='') }}">{{ config.title }}</a>
</li>
{% for link in config.extra.nav.links %}
<li>
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">{{ link.name }}</a>
</li>
{% endfor %}
{% if config.extra.nav.show_feed %}
<li id="feed">
<a href="{{ get_url(path='') }}/{{ config.feed_filename }}">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="M1.988 1.988V3c.008.547.453.984 1 .988.004-.004.008-.004.012-.004v.028A8.977 8.977 0 0 1 11.988 13a.991.991 0 0 0 1 .984h1V13h-.004c0-.004 0-.004.004-.008C13.984 7.02 9.184 2.148 3.242 2.02A1.004 1.004 0 0 0 3 1.988v-.004zm0 4V7c.008.547.453.984 1 .988.004-.004.008-.004.012-.004V8a4.985 4.985 0 0 1 4.996 4.844 1.002 1.002 0 0 0 .988 1.145c.008-.005.012-.005.016-.005v.004h.984V13H10c0-3.793-3.047-6.898-6.82-6.992 0-.004-.004-.004-.004-.004A.892.892 0 0 0 3 5.988v-.004zm2 4a1.999 1.999 0 1 0-.002 3.998 1.999 1.999 0 0 0 .002-3.998m0 0" />
</svg>
<span>Feed</span>
</a>
</li>
{% endif %}
</ul>
</nav>
<nav>
<a href="#main" id="main-content" tabindex="0">Skip to main content</a>
<ul>
<li id="home">
<a href="{{ get_url(path='') }}">{{ config.title }}</a>
</li>
{% for link in config.extra.nav.links %}
<li>
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">{{ link.name
}}</a>
</li>
{% endfor %}
{% if config.extra.nav.show_feed %}
<li id="feed">
<a href="{{ get_url(path='') }}/{{ config.feed_filename }}">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1.988 1.988V3c.008.547.453.984 1 .988.004-.004.008-.004.012-.004v.028A8.977 8.977 0 0 1 11.988 13a.991.991 0 0 0 1 .984h1V13h-.004c0-.004 0-.004.004-.008C13.984 7.02 9.184 2.148 3.242 2.02A1.004 1.004 0 0 0 3 1.988v-.004zm0 4V7c.008.547.453.984 1 .988.004-.004.008-.004.012-.004V8a4.985 4.985 0 0 1 4.996 4.844 1.002 1.002 0 0 0 .988 1.145c.008-.005.012-.005.016-.005v.004h.984V13H10c0-3.793-3.047-6.898-6.82-6.992 0-.004-.004-.004-.004-.004A.892.892 0 0 0 3 5.988v-.004zm2 4a1.999 1.999 0 1 0-.002 3.998 1.999 1.999 0 0 0 .002-3.998m0 0" /></svg>
<span>Feed</span>
</a>
</li>
{% endif %}
</ul>
</nav>
</header>

View File

@ -2,4 +2,4 @@
{% block content %}
{{ section.content | safe }}
{% endblock content %}
{% endblock content %}

View File

@ -1,3 +1,3 @@
<div class="crt scanlines">
{{ body | markdown | safe }}
{{ body | markdown | safe }}
</div>

View File

@ -1,12 +1,10 @@
<a href="{{url}}">
<img
class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
{% if no_hover %}no-hover{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
src="{% if url_min %}{{url_min}}{% else %}{{url}}{% endif %}"
/>
<img class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
{% if no_hover %}no-hover{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
src="{% if url_min %}{{url_min}}{% else %}{{url}}{% endif %}" />
</a>

View File

@ -1,10 +1,9 @@
<video
class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
controls
src="{{url}}">
class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
controls src="{{url}}">
</video>

View File

@ -5,12 +5,10 @@
<small> {{ terms | length }} tags in total </small>
<br />
<small>
<ul class="tags">
{% for tag in terms %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">{{ tag.name }}</a>
</li>
{% endfor %}
</ul>
<ul class="tags">
{% for tag in terms %}
<li><a class="tag" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">{{ tag.name }}</a></li>
{% endfor %}
</ul>
</small>
{% endblock content %}

View File

@ -3,37 +3,29 @@
{% block content %}
<h1>Posts with tag “{{ term.name }}”</h1>
<small>
<a class="link-page" href="{{ get_url(path='tags') }}">See all tags</a>
<br />
{{ term.pages | length }} posts in total
<a class="link-page" href="{{ get_url(path='tags') }}">See all tags</a>
<br />
{{ term.pages | length }} posts in total
</small>
<article>
{% for page in term.pages %}
<h3>
<a class="link-page" href="{{ page.permalink | safe }}">
{{ page.title }}
</a>
</h3>
{%- if page.description %}
<p>{{ page.description }}</p>
{%- endif %}
<small>
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
{{- page.date | date(format=config.extra.date_format) -}}
</time>
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li>
<a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
</li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
{% endfor %}
{% for page in term.pages %}
<h3><a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a></h3>
{%- if page.description %}
<p>{{ page.description }}</p>
{%- endif %}
<small>
<time datetime='{{ page.date | date(format=' %+') }}' pubdate>{{- page.date | date(format=config.extra.date_format) -}}</time>
{%- if page.taxonomies %}
{%- for name, taxon in page.taxonomies %}
<span></span>
<ul class="tags">
{%-for item in taxon %}
<li><a class="tag" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a></li>
{%- endfor %}
</ul>
{%- endfor %}
{%- endif %}
</small>
{% endfor %}
</article>
{% endblock content %}