Bones of a Twitter section

Copied over the templates from blog/ and set up permalinks.
Drew some bespoke star and retweet icons.
Wrote a script to import data from the archive.
This commit is contained in:
Eryn Wells 2023-09-23 09:52:33 -07:00
parent 16f96558cc
commit cac32298b8
10 changed files with 362 additions and 0 deletions

26
layouts/twitter/list.html Normal file
View file

@ -0,0 +1,26 @@
{{ define "header" }}
{{ partial "header.html" . }}
{{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ $paginator := .Paginator 100 }}
{{ template "_internal/pagination.html" . }}
<ul class=tweets>
{{ range $paginator.Pages }}
{{- if or (not .Draft) (not hugo.IsProduction) -}}
{{- .Render "li_grid_with_date" -}}
{{- end -}}
{{- end -}}
</ul>
{{ template "_internal/pagination.html" . }}
{{ end }}
{{ define "footer" }}
{{ partial "footer.html" . }}
{{ end }}