mirror of
https://github.com/rottenwheel/rottentheme.git
synced 2024-12-18 05:40:30 +00:00
commit
a73f59ac85
2 changed files with 18 additions and 2 deletions
|
@ -40,6 +40,8 @@ ul.list {
|
|||
}
|
||||
ul.list li {
|
||||
padding: 0.5em 0;
|
||||
border-top: 2px dashed currentColor;
|
||||
border-bottom: 2px dashed currentColor;
|
||||
}
|
||||
ul.list li span {
|
||||
float: right;
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
RSS feed <a href="/index.xml">here</a>.
|
||||
</p>
|
||||
|
||||
<h2>Latest Posts</h2>
|
||||
|
||||
<ul class="list">
|
||||
{{- range where .Site.RegularPages "Section" "posts"}}
|
||||
<li>
|
||||
<span>{{ .Date.Format "2006-01-02" }}</span>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in a new issue