1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 08:12:11 +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> <!DOCTYPE html>
<html> <html lang="{{- default "" .Site.LanguageCode -}}">
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
<body> <body>
{{- partial "header.html" . -}} {{- partial "header.html" . -}}

View file

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