Skip to content

Commit e7576db

Browse files
committed
Move news to the home page
1 parent 94e6396 commit e7576db

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1>pimutils</h1>
2626
<li><a href="/">Home</a></li>
2727
<li><a href="/thanks/">Thanks</a></li>
2828
<li><a href="/contact/">Contact</a></li>
29-
<li><a href="/blog/">Blog</a></li>
29+
<!-- <li><a href="/blog/">Blog</a></li> -->
3030
<li><a href="/coc/">Code of Conduct</a></li>
3131
</ul>
3232
</nav>

layouts/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
{{ define "main" }}
22
<h1>Utilities for personal information management</h1>
33
{{ .Content }}
4+
5+
<h1>News</h1>
6+
7+
<section class="article-list">
8+
{{ range (where .Site.RegularPages "Section" "blog") }}
9+
<div class="blog-post">
10+
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
11+
<div class="post-details">
12+
Written by {{ .Params.Author }} on
13+
<time datetime="{{.Date.Format "2006-01-02"}}">
14+
{{ .Date.Format "2006-01-02" }}
15+
</time>
16+
</div>
17+
</div>
18+
{{ end }}
19+
</section>
20+
421
{{ end }}

0 commit comments

Comments
 (0)