Skip to content

Commit 382e907

Browse files
committed
Decrease prominence of time on posts.
1 parent 5291dbd commit 382e907

File tree

7 files changed

+39
-6
lines changed

7 files changed

+39
-6
lines changed

_includes/datetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<time datetime="{{ include.post.date | date_to_xmlschema }}">
22
<a href="{{ include.post.url }}"
3-
>{{ include.post.date | date: "%B %-d, %Y" }}</a
3+
>{{ include.post.date | date: "%Y – %m – %d" }}</a
44
>
55
</time>

_includes/post_types/link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<header>
22
{% include datetime.html post=include.post %}
3-
<h1><a class="external" href="{{ include.post.link }}" target="_blank" rel="noopener">{{ include.post.title }}&nbsp;</a></h1>
3+
<h1><a class="external" href="{{ include.post.link }}" target="_blank" rel="noopener">{{ include.post.title }}→</a></h1>
44
</header>
55

66
{{ include.post.content }}

_includes/post_types/short.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<header>
12
{% include datetime.html post=include.post %}
3+
</header>
24

35
{{ include.post.content }}

_sass/abstracts/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $light-mode-color-gridlines: color(display-p3 0.9 0.09 0.2 / 0.25);
1111
$dark-mode-color-gridlines: color(display-p3 0.9 0.09 0.2 / 0.25);
1212

1313
$light-mode-background: color(display-p3 0.998 0.982 0.984);
14-
$light-mode-text: color(display-p3 0.364 0.036 0.08);
14+
$light-mode-text: color(display-p3 0.273 0.027 0.06);
1515
$light-mode-text-secondary: color(display-p3 0.364 0.036 0.08 / 0.7);
1616
$light-mode-text-emphasized: color(display-p3 0.036 0.004 0.008);
1717
$light-mode-accent: color(display-p3 0.9 0.09 0.2);

_sass/layout/article.scss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
@use 'vendors/vertical-rhythm-reset' as vr;
2+
13
article {
2-
4+
@include vr.set($margin-top: 1);
5+
6+
header {
7+
display: grid;
8+
9+
h1 {
10+
justify-self: start;
11+
}
12+
13+
time {
14+
@include vr.set($font-size: -1);
15+
16+
justify-self: end;
17+
18+
a {
19+
text-decoration: none;
20+
}
21+
}
22+
}
323
}

_sass/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
@use 'layout/header';
2020
@use 'layout/footer';
21+
@use 'layout/article';
2122

2223
@use "themes/themes";
2324

_sass/themes/_themes.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ $themes: (
77
text-emphasized: $light-mode-text-emphasized,
88
accent: $light-mode-accent,
99
link-underline: $light-mode-link-underline,
10-
text-secondary: $light-mode-text-secondary ),
10+
text-secondary: $light-mode-text-secondary),
1111
dark: (background: $dark-mode-background,
1212
text: $dark-mode-text,
1313
text-emphasized: $dark-mode-text-emphasized,
1414
accent: $dark-mode-accent,
1515
link-underline: $dark-mode-link-underline,
16-
text-secondary: $dark-mode-text-secondary )
16+
text-secondary: $dark-mode-text-secondary)
1717
);
1818

1919
@mixin theme($theme) {
@@ -64,6 +64,16 @@ $themes: (
6464
}
6565
}
6666
}
67+
68+
article {
69+
header {
70+
time {
71+
a {
72+
color: map.get($colors, text-secondary);
73+
}
74+
}
75+
}
76+
}
6777
}
6878

6979
@media (prefers-color-scheme: light) {

0 commit comments

Comments
 (0)