summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl/index.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-08-15 15:23:25 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-08-15 15:26:03 -0600
commit5bc4c2fe4eb2dd401380493d95e05badd7f2bf5d (patch)
tree9e4e35435d2899256c92f02298ec289006778f44 /srv/src/http/tpl/index.html
parentcd1d97bebf73ba513a3b89df92cc3030f264f7d8 (diff)
began using new.css, got rid of the old css almost entirely
Diffstat (limited to 'srv/src/http/tpl/index.html')
-rw-r--r--srv/src/http/tpl/index.html38
1 files changed, 11 insertions, 27 deletions
diff --git a/srv/src/http/tpl/index.html b/srv/src/http/tpl/index.html
index 5b268b7..b1f255a 100644
--- a/srv/src/http/tpl/index.html
+++ b/srv/src/http/tpl/index.html
@@ -1,43 +1,27 @@
{{ define "body" }}
- <!--
+ {{ if ge .Payload.PrevPage 0 }}
<p>
- By Tag:
- {{ range .Payload.Tags }}
- <a href="{{ BlogURL "/" }}?tag={{ . }}">{{ . }}</a>
- {{ end }}
+ <a href="?p={{ .Payload.PrevPage}}">&lt; &lt; Previous Page</a>
</p>
- -->
+ {{ end }}
- <ul id="posts-list">
+ <ul>
{{ range .Payload.Posts }}
<li>
- <h2>
- <a href="{{ PostURL .ID }}">{{ .Title }}</a>
- </h2>
- <span>{{ DateTimeFormat .PublishedAt }}</span>
- {{ if not .LastUpdatedAt.IsZero }}
- <span>(Updated {{ DateTimeFormat .LastUpdatedAt }})</span>
- {{ end }}
- <p>{{ .Description }}</p>
+ {{ DateTimeFormat .PublishedAt }}
+ &nbsp;•&nbsp; <a href="{{ PostURL .ID }}">{{ .Title }}</a>
+ &nbsp;•&nbsp; {{ .Description }}
</li>
{{ end }}
</ul>
- {{ if or (ge .Payload.PrevPage 0) (ge .Payload.NextPage 0) }}
- <div id="page-turner">
-
- {{ if ge .Payload.PrevPage 0 }}
- <a style="float: left;" href="?p={{ .Payload.PrevPage}}">Newer</a>
- {{ end }}
-
- {{ if ge .Payload.NextPage 0 }}
- <a style="float:right;" href="?p={{ .Payload.NextPage}}">Older</a>
- {{ end }}
-
- </div>
+ {{ if ge .Payload.NextPage 0 }}
+ <p>
+ <a href="?p={{ .Payload.NextPage}}">Next Page &gt; &gt;</a>
+ </p>
{{ end }}
{{ end }}