Compare commits

...

2 Commits

Author SHA1 Message Date
Brian Picciano
9a14e93524 Inrease font size for small devices 2022-11-23 18:57:43 +01:00
Brian Picciano
cbaaad38c9 Use unordered list instead of table on post index 2022-11-23 18:53:40 +01:00
3 changed files with 22 additions and 22 deletions

View File

@ -65,7 +65,7 @@ published_posts:
- id: empty-test - id: empty-test
title: Empty Test title: Empty Test
description: A post with no content. Might as well test it. description:
tags: tags:
- foo - foo
- bar - bar

View File

@ -61,6 +61,12 @@ html {
font-size: 1em; font-size: 1em;
} }
@media (max-width: 800px) {
html {
font-size: 1.3em;
}
}
header { header {
background: var(--nc-bg-1); background: var(--nc-bg-1);
font-size: 1.5rem; font-size: 1.5rem;
@ -89,6 +95,10 @@ ul {
list-style: circle; list-style: circle;
} }
ul li {
margin-bottom: 1rem;
}
hr { hr {
margin: 2rem 0 2rem 0; margin: 2rem 0 2rem 0;
border-color: var(--nc-bg-3); border-color: var(--nc-bg-3);

View File

@ -11,28 +11,18 @@
</p> </p>
{{ end }} {{ end }}
<table> <ul>
<colgroup>
<col span="1" style="width: 7rem;">
<col span="1">
<col span="1" style="width: 50%;">
</colgroup>
{{ range .Payload.Posts }} {{ range .Payload.Posts }}
<tr> <li>
<td>{{ DateTimeFormat .PublishedAt }}</td> <a href="{{ PostURL .ID }}">
<td><a href="{{ PostURL .ID }}">{{ .Title }}</td> {{ DateTimeFormat .PublishedAt }} / {{ .Title }}
<td><em>{{ .Description }}</em></td> </a>
</tr> {{ if .Description }}
<br/><em>{{ .Description }}</em>
{{ end }} {{ end }}
</table> </li>
{{ if ge .Payload.NextPage 0 }}
<p>
<a href="?p={{ .Payload.NextPage}}">Next Page &gt; &gt;</a>
</p>
{{ end }} {{ end }}
</ul>
{{ end }} {{ end }}