Skip to content

Commit feeae28

Browse files
committed
Refine layout and spacing for insight metadata and footer
Updates the visual hierarchy of the single insight page by tightening the metadata block (byline, date, tags) to create a more cohesive header. Adjusts vertical rhythm throughout to reduce visual clutter.
1 parent 82da1d8 commit feeae28

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

hugo/themes/dora-2025/assets/scss/insights.scss

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ h3 {
44

55
h4 {
66
color: #666;
7-
margin-bottom: 1em;
7+
margin-bottom: 0.25em;
8+
font-size: 0.9em;
9+
font-weight: 300;
810
}
911

1012
.mainContent li {
1113
font-weight: 300;
12-
font-family: "Roboto";
13-
font-size: 14px;
1414
}
1515

1616
p.description {
@@ -30,16 +30,42 @@ li div:not(:first-child) {
3030
}
3131

3232
.posted {
33-
margin-bottom: 0.5em;
33+
margin-bottom: 0.25em;
34+
}
35+
36+
.tags strong,
37+
.insights-navigation strong {
38+
font-weight: 300;
39+
color: #666;
3440
}
3541

3642
.tags {
3743
margin-bottom: 1em;
44+
margin-top: 0.25em;
45+
display: block;
46+
47+
a {
48+
border: 1px solid var(--dora-primary-light);
49+
padding: 2px 8px;
50+
border-radius: 50vh;
51+
text-decoration: none;
52+
color: #666;
53+
margin-left: 0.25em;
54+
55+
&:hover {
56+
color: var(--dora-primary-dark);
57+
border-color: var(--dora-primary-dark);
58+
}
59+
}
60+
}
61+
62+
.tags.footer-tags {
63+
margin-bottom: 0.5em;
3864
}
3965

4066
.post-separator {
41-
margin-top: 2em;
42-
margin-bottom: 2em;
67+
margin-top: 1em;
68+
margin-bottom: 1em;
4369
border: 0;
4470
border-top: 1px solid #eee;
4571
}

hugo/themes/dora-2025/layouts/insights/single.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ <h2>{{ .Params.subhead }}</h2>
3131
{{ end }}
3232

3333
{{ with .GetTerms "tags" }}
34-
<div class="tags">
35-
<strong>Posted in:</strong>
34+
<div class="tags">Posted in:
3635
{{ range . }}
37-
<a href="{{ .RelPermalink }}">#{{ .LinkTitle }}</a>
36+
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
3837
{{ end }}
3938
</div>
4039
{{ end }}
@@ -54,10 +53,9 @@ <h2>{{ .Params.subhead }}</h2>
5453
<hr class="post-separator">
5554

5655
{{ with .GetTerms "tags" }}
57-
<div class="footer-tags">
58-
<strong>Posted in:</strong>
56+
<div class="tags footer-tags">Posted in:
5957
{{ range . }}
60-
<a href="{{ .RelPermalink }}">#{{ .LinkTitle }}</a>
58+
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
6159
{{ end }}
6260
</div>
6361
{{ end }}

0 commit comments

Comments
 (0)