File tree Expand file tree Collapse file tree
themes/pelican-tufte/pelican-tufte-theme Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 %}
Original file line number Diff line number Diff line change 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 %}
You can’t perform that action at this time.
0 commit comments