Skip to content

Commit 2d6a802

Browse files
committed
Update CSS and page template
1 parent e47e28f commit 2d6a802

3 files changed

Lines changed: 42 additions & 5 deletions

File tree

themes/pelican-tufte/pelican-tufte-theme/static/css/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,37 @@ nav>ul>li {
2525
column-width: 200px;
2626
}
2727

28+
.columns section {
29+
break-inside: avoid;
30+
}
31+
2832
.article-metadata {
2933
margin-top: -1rem;
3034
padding-top: 0;
35+
}
36+
37+
.gallery-grid {
38+
display: grid;
39+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
40+
gap: 1.5rem;
41+
padding: 1rem 0;
42+
}
43+
44+
.gallery-grid figure {
45+
margin: 0;
46+
padding: 0;
47+
text-align: center;
48+
}
49+
50+
.gallery-grid img {
51+
width: 100%;
52+
height: auto;
53+
border-radius: 8px;
54+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
55+
}
56+
57+
.gallery-grid figcaption {
58+
margin-top: 0.5rem;
59+
font-size: 0.9rem;
60+
color: #666;
3161
}

themes/pelican-tufte/pelican-tufte-theme/templates/page.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,19 @@ <h1>{{ page.title }}</h1>
2828
<div class="columns">
2929
<section>
3030
<h2>Find me in:</h2>
31-
<p>
3231
<ul>
3332
{% for name, link in SOCIAL %}
3433
<li><a href="{{ link }}">{{ name }}</a></li>
3534
{% endfor %}
3635
</ul>
37-
</p>
3836
</section>
39-
4037
<section>
4138
<h2>Links:</h2>
42-
<p>
4339
<ul>
4440
{% for name, link in LINKS %}
4541
<li><a href="{{ link }}">{{ name }}</a></li>
4642
{% endfor %}
4743
</ul>
48-
</p>
4944
</section>
5045
</div>
5146
{% endif %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}{{ page.title }}{% endblock %}
4+
5+
{% block content %}
6+
<article>
7+
<h2>{{ page.title }}</h2>
8+
<div class="gallery-grid">
9+
{{ content }}
10+
</div>
11+
</article>
12+
{% endblock %}

0 commit comments

Comments
 (0)