Skip to content

Commit a6343b0

Browse files
committed
improve releases template
1 parent 273c4a1 commit a6343b0

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

content/releases/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Phel Releases"
2+
title = "Releases"
33
sort_by = "date"
44
template = "releases.html"
55
page_template = "release-entry.html"

css/components/blog.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
.blog-intro {
22
font-size: var(--text-lg);
33
color: var(--color-light-text-secondary);
4-
margin-bottom: var(--space-2xl);
4+
margin-bottom: var(--space-xl);
55
}
66

77
.post-list {
88
padding: 0;
9-
margin: var(--space-3xl) 0;
109
display: grid;
1110
gap: var(--space-xl);
1211
}
@@ -18,7 +17,7 @@
1817
.post-card {
1918
position: relative;
2019
display: block;
21-
padding: var(--space-xl) var(--space-2xl);
20+
padding: var(--space-lg) var(--space-xl);
2221
border-radius: var(--radius-lg);
2322
border: 1px solid var(--color-light-border-strong, #d1d5e5);
2423
background: var(--color-light-surface);

css/components/releases.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
margin-bottom: var(--space-xl);
55
}
66

7-
.release-list {
8-
margin: var(--space-3xl) 0;
9-
}
10-
117
.dark .releases-intro {
128
color: var(--color-dark-text-secondary);
139
}

templates/navigation/top-navigation.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<li class="top-navigation__item {% if current_path and current_path is starting_with('/documentation/api/') %}active{% endif %}">
66
<a href="/documentation/api/">API</a>
77
</li>
8-
<li class="top-navigation__item {% if current_path and current_path is starting_with('/releases/') %}active{% endif %}">
9-
<a href="/releases/">Releases</a>
10-
</li>
118
<li class="top-navigation__item {% if current_path and current_path is starting_with('/tutorials/exercises/') %}active{% endif %}">
129
<a href="/tutorials/exercises/basic">Exercises</a>
1310
</li>
1411
<li class="top-navigation__item {% if current_path and current_path is starting_with('/blog/') %}active{% endif %}">
1512
<a href="/blog">Blog</a>
1613
</li>
14+
<li class="top-navigation__item {% if current_path and current_path is starting_with('/releases/') %}active{% endif %}">
15+
<a href="/releases/">Releases</a>
16+
</li>
1717
</ul>

templates/releases.html

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

99
{% block content %}
1010
{% if paginator.current_index == 1 %}
11-
<h1>Phel Releases</h1>
11+
<h1>Releases</h1>
1212
<p class="releases-intro">Complete list of Phel releases, automatically generated from the <a href="https://github.com/phel-lang/phel-lang/releases">Phel GitHub releases</a>.</p>
1313
{% endif %}
1414

0 commit comments

Comments
 (0)