1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Template accessibility fixes

- Language code in <html> tag
- Make post list more easily clickable by splitting post URLs and
  timestamps.
This commit is contained in:
rohan kumar 2020-11-24 17:08:28 -08:00
parent 1e371f7cfe
commit a0cbba8a63
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="{{- default "" .Site.LanguageCode -}}">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}

View file

@ -2,9 +2,10 @@
<ul id="posts">
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<br>
<a href="{{ .Permalink }}">
{{ .Title }}
<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</a>
</li>
{{- end }}