Skip to content

Commit f979315

Browse files
Merge pull request #59 from Lemon73-Computing/lemon73/improve-posts-page-design
style: improve the posts page design
2 parents cdf216a + 1809337 commit f979315

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

layouts/_default/list.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{{ define "main" }}
22
<h1>{{ .Title }}</h1>
33
{{ .Content }}
4-
{{ range .Pages }}
5-
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
6-
{{ .Summary }}
7-
{{ end }}
4+
<div class="info-card">
5+
{{ range .Pages }}
6+
<a href="{{ .Permalink }}">
7+
<p id="info-date">{{ .Date.Format "2006.01.02" }}</p>
8+
<p id="info-title">{{ .Title }}</p>
9+
<p id="info-summary">{{ .Summary | plainify }}…</p>
10+
</a>
11+
{{ end }}
12+
</div>
813
{{ end }}

0 commit comments

Comments
 (0)