Skip to content

Commit

Permalink
Move news to the home page
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Aug 28, 2024
1 parent 94e6396 commit 69ed047
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>pimutils</h1>
<li><a href="/">Home</a></li>
<li><a href="/thanks/">Thanks</a></li>
<li><a href="/contact/">Contact</a></li>
<li><a href="/blog/">Blog</a></li>
<!-- <li><a href="/blog/">Blog</a></li> -->
<li><a href="/coc/">Code of Conduct</a></li>
</ul>
</nav>
Expand Down
17 changes: 17 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{{ define "main" }}
<h1>Utilities for personal information management</h1>
{{ .Content }}

<h1>News</h1>

<section class="article-list">
{{ range (where .Site.RegularPages "Section" "blog") }}
<div class="blog-post">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="post-details">
Written by {{ .Params.Author }} on
<time datetime="{{.Date.Format "2006-01-02"}}">
{{ .Date.Format "2006-01-02" }}
</time>
</div>
</div>
{{ end }}
</section>

{{ end }}

0 comments on commit 69ed047

Please sign in to comment.