Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ecde361

Browse files
committedJul 11, 2024
WIP
1 parent f7da50c commit ecde361

28 files changed

+592
-960
lines changed
 

‎.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[*.{md,mkdn}]
22
trim_trailing_whitespace = false
33
indent_style = space
4+
5+
[anchor-link.html]
6+
insert_final_newline = false

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
public/
22
.idea/
33
*.DS_Store
4+
/static/syntax-theme-*.css

‎config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ feed_filenames = ["rss.xml"]
88

99
[markdown]
1010
highlight_code = true
11+
highlight_theme = "css"
12+
highlight_themes_css = [
13+
{ theme = "base16-ocean-dark", filename = "syntax-theme-dark.css" },
14+
{ theme = "OneHalfLight", filename = "syntax-theme-light.css" },
15+
]
1116
smart_punctuation = true
1217

1318
[extra]

‎content/blog/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Blog Posts"
3-
insert_anchor_links = "right"
3+
insert_anchor_links = "left"
44
template = "posts.html"
55
page_template = "post.html"
66
sort_by = "date"

‎content/news/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "News"
3-
insert_anchor_links = "right"
3+
insert_anchor_links = "left"
44
template = "posts.html"
55
page_template = "post.html"
66
sort_by = "date"

‎content/pages/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
+++
22
redirect_to = "/"
3-
insert_anchor_links = "right"
4-
+++
3+
insert_anchor_links = "left"
4+
+++

‎content/pages/markdown-showcase.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
+++
2+
title = "Markdown"
3+
description = "Here goes a short description or subtitle for this page"
4+
draft = true
5+
+++
6+
7+
## Formatting Examples
8+
**Lorem** _ipsum_ [dolor sit](https://example.com) ~~amet~~, `consectetur`[^1] adipiscing elit, sed do eiusmod tempor incididunt[^2] ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
9+
10+
---
11+
12+
Ac turpis egestas integer eget aliquet nibh praesent tristique magna. Amet luctus venenatis lectus magna fringilla urna porttitor. Ultricies mi quis hendrerit dolor. Risus in hendrerit gravida rutrum quisque non. Eleifend mi in nulla posuere sollicitudin aliquam.
13+
14+
## H2
15+
16+
Ac turpis egestas integer eget aliquet nibh praesent tristique magna. Amet luctus venenatis lectus magna fringilla urna porttitor. Ultricies mi quis hendrerit dolor. Risus in hendrerit gravida rutrum quisque non. Eleifend mi in nulla posuere sollicitudin aliquam.
17+
18+
### H3
19+
Duis ut diam quam nulla porttitor massa id neque. Pharetra convallis posuere morbi leo urna molestie. Nunc mattis enim ut tellus elementum. In iaculis nunc sed augue lacus viverra vitae congue eu. Dolor sit amet consectetur adipiscing elit pellentesque habitant morbi. Lacinia at quis risus sed vulputate odio. Commodo odio aenean sed adipiscing diam donec. Morbi tristique senectus et netus et. Ut eu sem integer vitae justo eget.
20+
21+
## Code
22+
```python
23+
print('Hello World')
24+
```
25+
26+
## Quote
27+
> Don't believe everything you read on the internet.
28+
> - Nikola Tesla
29+
30+
## Ordered List
31+
1. One
32+
2. Two
33+
1. Nested
34+
2. Things
35+
3. Three
36+
37+
## Unordered List
38+
* Foo
39+
* Bar
40+
* Baz
41+
42+
## Details
43+
44+
<details>
45+
<summary>Expand for more :)</summary>
46+
47+
Amet luctus venenatis lectus magna fringilla urna porttitor. Ultricies mi quis hendrerit dolor.
48+
49+
</details>
50+
51+
## Table
52+
53+
| Terminal | Iterations | min | max | mean |
54+
|---------------------|------------|--------------|---------------|--------------|
55+
| foot | 10000 | 26.130 µs | 248.260 µs | 31.825 µs |
56+
| XTerm | 10000 | 33.550 µs | 295.990 µs | 39.926 µs |
57+
| Konsole | 10000 | 34.110 µs | 3.652145 ms | 38.094 µs |
58+
| Alacritty | 10000 | 40.340 µs | 414.961 µs | 57.569 µs |
59+
| IntelliJ IDEA | 10000 | 71.267 µs | 2.453094 ms | 154.491 µs |
60+
| Terminal.app | 10000 | 196.143 µs | 25.064408 ms | 241.916 µs |
61+
| Hyper | 10000 | 16.287473 ms | 57.534790 ms | 20.040066 ms |
62+
| GNOME Console (vte) | 10000 | 8.157828 ms | 56.823240 ms | 20.656316 ms |
63+
| VSCode | 10000 | 24.164008 ms | 140.036258 ms | 26.061349 ms |
64+
| iTerm2 | 10000 | 4.065856 ms | 49.872777 ms | 28.259948 ms |
65+
66+
67+
## Title with `code`
68+
69+
# H1
70+
## H2
71+
### H3
72+
Notice that there is no extra space between these nested headings.
73+
74+
[^1]: Here comes the footnote
75+
76+
[^2]: Aaaand a second footnote

‎content/posts/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
+++
22
redirect_to = "/"
3-
insert_anchor_links = "right"
3+
insert_anchor_links = "left"
44
+++

‎sass/_extra.scss

Lines changed: 0 additions & 202 deletions
This file was deleted.

‎sass/_form.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.email-form {
2+
display: grid;
3+
margin-top: var(--section-gap);
4+
grid-template-columns: auto auto;
5+
justify-content: center;
6+
gap: var(--block-gap);
7+
background-color: var(--bg-1-color);
8+
padding: var(--block-gap);
9+
align-items: center;
10+
border-radius: var(--box-rounding);
11+
12+
.email-form__icon {
13+
width: 5em;
14+
height: 5em;
15+
--icon-stroke-color: var(--fg-color);
16+
}
17+
18+
.email-form__description {
19+
max-width: 18em;
20+
}
21+
22+
.email-form__input {
23+
grid-column: 1 / 3;
24+
}
25+
}
26+
27+
.email-input {
28+
display: grid;
29+
grid-template-columns: repeat(2, auto);
30+
gap: 5px;
31+
32+
label {
33+
grid-column: 1 / 3;
34+
font-size: .8em;
35+
}
36+
}

‎sass/_minima.scss

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎sass/_palette.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:root {
2+
--accent-color: #e33b26;
3+
--bg-0-color: #fff;
4+
--bg-1-color: color-mix(in oklab, var(--accent-color), var(--bg-0-color) 90%);
5+
--text-color: #000;
6+
--fg-color: oklch(from var(--accent-color) 0.5 C H);
7+
--icon-fill-color: oklch(from var(--accent-color) 0.9 C H);
8+
--border-color: oklch(from var(--accent-color) 0.7 0.1 H);
9+
10+
@media (prefers-color-scheme: dark) {
11+
--bg-0-color: #181818;
12+
--text-color: #fff;
13+
--fg-color: oklch(from var(--accent-color) 0.7 C H);
14+
--icon-fill-color: oklch(from var(--accent-color) 0.3 C H);
15+
--border-color: oklch(from var(--accent-color) 0.5 0.1 H);
16+
}
17+
}

‎sass/_post-content.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.post-header {
2+
margin-bottom: var(--section-gap);
3+
}
4+
5+
.post-content {
6+
h1, h2, h3, h4, p, ul, ol, blockquote {
7+
margin-bottom: var(--block-gap);
8+
}
9+
10+
figure {
11+
margin-bottom: calc(1.5 * var(--block-gap));
12+
}
13+
14+
blockquote :last-child {
15+
margin-bottom: 0;
16+
}
17+
18+
:is(ol, ul) :is(ol, ul) {
19+
margin-bottom: 0;
20+
}
21+
22+
// Headings create a new "section" so we want space between the sections
23+
// ... but not between a section and a direct subsection
24+
:is(h1, h2, h3, h4):not(:is(h1 + h2, h2 + h3, h3 + h4)) {
25+
margin-top: var(--section-gap);
26+
}
27+
28+
hr {
29+
margin: var(--section-gap) 0;
30+
}
31+
}

‎sass/_reset.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*, *::before, *::after {
2+
font: inherit;
3+
color: inherit;
4+
border: none;
5+
margin: 0;
6+
padding: 0;
7+
box-sizing: border-box;
8+
}

‎sass/_typography.scss

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
// Basic styling rules that apply everywhere (even outside articles).
2+
// This notably excludes layout things (e.g. spacing between elements).
3+
4+
h1, h2, h3, h4 {
5+
font-weight: bold;
6+
}
7+
8+
h1 {
9+
font-size: 2em;
10+
}
11+
12+
h2 {
13+
font-size: 1.5em;
14+
}
15+
16+
h3 {
17+
font-size: 1.2em;
18+
}
19+
20+
:is(h1, h2, h3, h4):has(.anchor) {
21+
position: relative;
22+
23+
.anchor {
24+
position: absolute;
25+
transform: translateX(-100%) translateX(-0.5ch);
26+
}
27+
}
28+
29+
a {
30+
color: var(--fg-color);
31+
text-decoration: none;
32+
33+
&:hover {
34+
text-decoration: underline;
35+
}
36+
}
37+
38+
pre {
39+
padding: 1em;
40+
}
41+
42+
hr {
43+
background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
44+
background-position: calc(50% - 2.5em) 50%, calc(50% + 2.5em) 50%;
45+
background-size: 2em 2px, 2em 2px;
46+
background-repeat: no-repeat;
47+
48+
&::before {
49+
content: "";
50+
margin: auto;
51+
display: block;
52+
height: 1em;
53+
aspect-ratio: 1.5;
54+
background-color: currentColor;
55+
mask-image: url(/8bit-ferris.svg);
56+
mask-size: contain;
57+
}
58+
}
59+
60+
time {
61+
font-variant-numeric: tabular-nums slashed-zero;
62+
}
63+
64+
code {
65+
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
66+
}
67+
68+
sup {
69+
font-variant-position: super;
70+
}
71+
72+
strong {
73+
font-weight: bold;
74+
}
75+
76+
em {
77+
font-style: italic;
78+
}
79+
80+
img, video {
81+
max-width: 100%;
82+
}
83+
84+
ul {
85+
padding-inline-start: 1.5ch;
86+
}
87+
88+
ol {
89+
padding-inline-start: 2ch;
90+
}
91+
92+
blockquote {
93+
font-style: italic;
94+
background-color: var(--bg-1-color);
95+
padding: var(--block-gap);
96+
border-left: 4px solid var(--border-color);
97+
}
98+
99+
table {
100+
border-collapse: collapse;
101+
font-variant-numeric: tabular-nums;
102+
overflow: hidden;
103+
104+
// border-radius and border-collapse: collapse don't
105+
// work together, so we fake the border using box shadow
106+
border-radius: var(--box-rounding);
107+
border-style: hidden;
108+
box-shadow: 0 0 0 1px var(--border-color);
109+
110+
tr:first-child :is(td, th):first-child {
111+
border-top-left-radius: var(--box-rounding);
112+
}
113+
}
114+
115+
td, th {
116+
border: 1px solid var(--border-color);
117+
padding: 6px 12px;
118+
}
119+
120+
th {
121+
font-weight: 700;
122+
}
123+
124+
tr:nth-child(2n) td {
125+
background-color: var(--bg-1-color);
126+
}
127+
128+
.footnote-definition {
129+
font-size: .8em;
130+
131+
&::before {
132+
content: '';
133+
border-top: 2px solid var(--border-color);
134+
display: block;
135+
width: 100%;
136+
max-width: 300px;
137+
margin-bottom: var(--block-gap);
138+
}
139+
140+
& > sup {
141+
float: left;
142+
margin-right: 1ch;
143+
}
144+
}
145+
146+
.footnote-definition + .footnote-definition {
147+
&::before {
148+
content: none;
149+
}
150+
}

‎sass/minima/_base.scss

Lines changed: 0 additions & 256 deletions
This file was deleted.

‎sass/minima/_layout.scss

Lines changed: 0 additions & 300 deletions
This file was deleted.

‎sass/minima/_syntax-highlighting.scss

Lines changed: 0 additions & 71 deletions
This file was deleted.

‎sass/style.scss

Lines changed: 185 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,186 @@
1-
// Some of the default colors do not meet the WCAG 2.0 accessibility
2-
// guidelines for contrast.
3-
$grey-color: #595959;
4-
$brand-color: #06C;
1+
@import '_reset.scss';
2+
@import '_palette.scss';
53

6-
@import "minima";
7-
@import "extra";
4+
:root {
5+
--block-gap: 1rem;
6+
--section-gap: 2.4rem;
7+
--box-rounding: 1rem;
8+
--content-padding: 2rem; // This padding has to make room for the anchor links
9+
}
10+
11+
:root {
12+
font-size: 1.125em;
13+
line-height: 1.5;
14+
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
15+
accent-color: var(--accent-color);
16+
color-scheme: light dark;
17+
-webkit-text-size-adjust: none; // Stop iOS Safari from adjusting the font size in landscape.
18+
color: var(--text-color);
19+
background-color: var(--bg-0-color);
20+
21+
@media (prefers-reduced-motion: no-preference) {
22+
scroll-behavior: smooth;
23+
}
24+
}
25+
26+
::selection {
27+
// TODO: use relative color syntax for min/max lightness in oklab
28+
color: color-mix(in oklab, var(--accent-color), #000 80%);
29+
background-color: color-mix(in oklab, var(--accent-color), #fff 80%);
30+
31+
@media (prefers-color-scheme: dark) {
32+
color: color-mix(in oklab, var(--accent-color), #fff 90%);
33+
background-color: color-mix(in oklab, var(--accent-color), #000 40%);
34+
}
35+
}
36+
37+
@import '_typography.scss';
38+
@import '_form.scss';
39+
@import '_post-content.scss';
40+
41+
body {
42+
display: grid;
43+
grid-template-columns: 1fr minmax(auto, 50em) 1fr;
44+
}
45+
46+
.skip-link {
47+
--skip-link-offset: 0.5rem;
48+
position: absolute;
49+
top: var(--skip-link-offset);
50+
left: var(--skip-link-offset);
51+
background-color: color-mix(in oklab, var(--accent-color), var(--background-color) 90%);
52+
padding: .5em 1em;
53+
border-radius: .5em;
54+
55+
&:not(:focus) {
56+
transform: translateY(calc(-100% - var(--skip-link-offset)));
57+
}
58+
}
59+
60+
.site-header {
61+
display: grid;
62+
grid-template-columns: subgrid;
63+
grid-column: 1 / 4;
64+
border-bottom: 2px solid var(--border-color);
65+
margin-bottom: var(--section-gap);
66+
67+
> .wrapper {
68+
grid-column: 2;
69+
padding: .5rem var(--content-padding);
70+
}
71+
}
72+
73+
.site-title {
74+
--fg-color: var(--text-color);
75+
font-size: 1.2em;
76+
display: flex;
77+
align-items: center;
78+
gap: .5em;
79+
}
80+
81+
.page-content {
82+
grid-column: 2;
83+
}
84+
85+
main {
86+
padding: 0 var(--content-padding);
87+
}
88+
89+
footer {
90+
grid-column: 1 / 4;
91+
}
92+
93+
pre, img, video {
94+
border-radius: var(--box-rounding);
95+
}
96+
97+
figure {
98+
display: flex;
99+
flex-direction: column;
100+
align-items: center;
101+
102+
a {
103+
display: contents; // TODO: remove and enable minify_html instead
104+
}
105+
106+
figcaption {
107+
margin-top: calc(0.5 * var(--block-gap));
108+
font-size: 0.8em;
109+
font-style: italic;
110+
}
111+
}
112+
113+
footer {
114+
margin-top: 4rem;
115+
background-color: var(--bg-1-color);
116+
position: relative;
117+
padding-top: 1.5em; // TODO: variable / share with ferris icon
118+
119+
&:before {
120+
position: absolute;
121+
top: -0.8em;
122+
left: calc(50% - 1.125em);
123+
content: "";
124+
display: inline-block;
125+
height: 1.5em;
126+
aspect-ratio: 1.5;
127+
background-color: color-mix(in oklab, var(--accent-color), currentColor 20%);
128+
mask-image: url(/8bit-ferris.svg);
129+
mask-size: contain;
130+
}
131+
132+
@media (prefers-contrast: no-preference) and (hover: hover) {
133+
transition: opacity 125ms;
134+
135+
&:not(:focus-within):not(:hover) {
136+
opacity: .4;
137+
}
138+
}
139+
}
140+
141+
.svg-icon {
142+
width: 1em;
143+
height: 1em;
144+
vertical-align: middle;
145+
}
146+
147+
.anchor {
148+
@media (prefers-contrast: no-preference) and (hover: hover) {
149+
transition: opacity 125ms;
150+
&:not(:focus):not(:hover) {
151+
opacity: .1;
152+
}
153+
}
154+
}
155+
156+
.social-links {
157+
list-style: none;
158+
padding-inline-start: 0; // TODO: only style lists in content
159+
display: grid;
160+
grid-template-columns: repeat(2, auto);
161+
gap: 0.2em 1.5em;
162+
}
163+
164+
.site-footer {
165+
font-size: .9em;
166+
--block-gap: .5rem;
167+
168+
.wrapper {
169+
padding: 1rem 2rem; // TODO: put in a variable
170+
max-width: 35rem; // TODO: variable
171+
margin: auto;
172+
}
173+
174+
p {
175+
margin-bottom: var(--block-gap);
176+
}
177+
}
178+
179+
.footnote-definition {
180+
--block-gap: .5rem;
181+
margin-top: var(--section-gap);
182+
}
183+
184+
.footnote-definition + .footnote-definition {
185+
margin-top: 0;
186+
}

‎static/8bit-ferris.svg

Lines changed: 42 additions & 0 deletions
Loading

‎static/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

‎static/minima-social-icons.svg

Lines changed: 4 additions & 4 deletions
Loading

‎templates/anchor-link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
&nbsp;<a class="anchor" href="#{{ id }}" aria-hidden="true">#</a>
1+
<a class="anchor" href="#{{ id }}" aria-hidden="true">#</a>

‎templates/includes/footer.html

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
1-
<footer class="site-footer h-card">
2-
<data class="u-url" href="{{ get_url(path='/') }}"></data>
3-
1+
<footer class="site-footer">
42
<div class="wrapper">
3+
{% if config.description %}
4+
<p>{{ config.description }}</p>
5+
{% endif %}
56

6-
<div class="footer-col-wrapper">
7-
<div class="footer-col one-half">
8-
<h2 class="footer-heading">{{ config.title | default(value="Minima") }}</h2>
9-
{% if config.extra.author or config.extra.email %}
10-
<ul class="contact-list">
11-
<li class="p-name">
12-
{% if config.extra.author %}
13-
{{ config.extra.author }}
14-
{% endif %}
15-
</li>
16-
{% if config.extra.email %}
17-
<li>
18-
<a class="u-email" href="mailto:{{ config.extra.email }}">{{ config.extra.email }}</a>
19-
</li>
20-
{% endif %}
21-
</ul>
22-
{% endif %}
23-
{% if config.description %}
24-
<p>{{ config.description }}</p>
25-
{% endif %}
26-
</div>
27-
28-
<div class="footer-col one-half">
29-
{% include "includes/social.html" %}
30-
</div>
31-
</div>
7+
<p>
8+
Want something in the next newsletter?
9+
<a href="https://github.com/rust-gamedev/rust-gamedev.github.io">Send us a pull request</a>
10+
</p>
3211

12+
{% include "includes/social.html" %}
3313
</div>
34-
3514
</footer>

‎templates/includes/header.html

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,10 @@
11
<header class="site-header">
22
<div class="wrapper">
33
<a class="site-title" rel="author" href="/">
4-
<img src="{{ get_url(path='logo.svg') }}" width="48" height="48" alt="" />
5-
{{ config.title | default(value="Minima") }}
4+
<svg style="width: 2.6em; height: 2.6em" aria-label="Rust GameDev Logo">
5+
<use href="{{ get_url(path='logo.svg') }}#logo" aria-hidden="true"></use>
6+
</svg>
7+
{{ config.title }}
68
</a>
7-
8-
{% set pages = get_section(path="pages/_index.md") %}
9-
{% if pages and pages.pages | length > 0 %}
10-
<nav class="site-nav">
11-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
12-
<label for="nav-trigger">
13-
<span class="menu-icon">
14-
<svg viewBox="0 0 18 15" width="18px" height="15px">
15-
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
16-
</svg>
17-
</span>
18-
</label>
19-
20-
<div class="trigger">
21-
{% for page in pages.pages %}
22-
{% if page.title %}
23-
<a class="page-link" href="{{ page.permalink }}">{{ page.title }}</a>
24-
{% endif %}
25-
{% endfor %}
26-
</div>
27-
</nav>
28-
{% endif %}
299
</div>
3010
</header>

‎templates/includes/post_list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ <h3>
1010
</h3>
1111
{% if post.date %}
1212
{% set date_format = config.extra.date_format | default(value="%b %-d, %Y") %}
13-
<span class="post-meta">{{ post.date | date(format=date_format) }}</span>
13+
<time datetime="{{ post.date | date(format='%+') }}" class="post-meta">
14+
{{ post.date | date(format=date_format) }}
15+
</time>
1416
{% endif %}
1517

1618
{% if config.extra.posts.show_summaries %}

‎templates/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta charset="utf-8">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<meta name="color-scheme" content="dark light">
910

1011
{% block seo %}
1112
<title>{{ config.title | default(value="Minima") }}</title>
@@ -28,7 +29,8 @@
2829
<meta property="og:image:height" content="200">
2930
<meta property="og:site_name" content="{{ config.title | default(value="Minima") }}">
3031

31-
<link rel="stylesheet" href="{{ get_url(path="style.css") }}">
32+
<link rel="stylesheet" href="{{ get_url(path="style.css", cachebust=true) }}">
33+
3234
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}">
3335
<link rel="icon" type="image/svg+xml" href="{{get_url(path="favicon.svg")}}">
3436
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path="favicon-32x32.png") }}">
@@ -42,12 +44,18 @@
4244
{% if config.extra.google_analytics %}
4345
{% include "includes/google-analytics.html" %}
4446
{% endif-%}
47+
48+
{# Syntax Theme #}
49+
<link rel="stylesheet" type="text/css" href="{{ get_url(path="syntax-theme-dark.css") }}" media="(prefers-color-scheme: dark)">
50+
<link rel="stylesheet" type="text/css" href="{{ get_url(path="syntax-theme-light.css") }}" media="(prefers-color-scheme: light)">
4551
</head>
4652

4753
<body>
54+
<a href="#main" tabindex="0" class="skip-link">Skip to content</a>
55+
4856
{% include "includes/header.html" %}
4957

50-
<main class="page-content" aria-label="Content">
58+
<main class="page-content" aria-label="Content" id="main">
5159
{% block content %}
5260
{% include "includes/home.html" %}
5361
{% endblock content %}

‎templates/shortcodes/image_figure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<figure>
4242
{% if link %}<a href="{{link}}">{% endif %}
43-
<img src="{{get_url(path=page.colocated_path ~ src)}}" alt="{{alt}}">
43+
<img src="{{get_url(path=page.colocated_path ~ src)}}" alt="{{alt}}">
4444
{% if link %}</a>{% endif %}
4545

4646
{% if caption %}

0 commit comments

Comments
 (0)
Please sign in to comment.