diff options
-rw-r--r-- | layouts/index.html | 6 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/list.html | 11 |
3 files changed, 12 insertions, 9 deletions
diff --git a/layouts/index.html b/layouts/index.html index 25eaf74..c555aa9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,9 +9,9 @@ <h2>Latest Posts</h2> <ul> {{- range first 3 .Site.RegularPages }} - <li> - <a href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a> - <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> + <li class="h-entry"> + <a class="u-url p-name" href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a> + <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> </li> {{- end }} </ul> diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html index 6757396..16332b8 100644 --- a/themes/xmin/layouts/_default/baseof.html +++ b/themes/xmin/layouts/_default/baseof.html @@ -1,9 +1,9 @@ <!DOCTYPE html> -<html lang="{{ .Site.LanguageCode }}"> +<html lang="{{ .Site.LanguageCode }}" {{- if .Page.IsNode }} class="h-feed"{{ end }}> <head profile="//gmpg.org/xfn/11"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ .Title }} | {{ .Site.Title }}</title> + <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title> <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> {{ range .AlternativeOutputFormats -}} {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} diff --git a/themes/xmin/layouts/_default/list.html b/themes/xmin/layouts/_default/list.html index bf0af50..6780bba 100644 --- a/themes/xmin/layouts/_default/list.html +++ b/themes/xmin/layouts/_default/list.html @@ -1,18 +1,21 @@ {{ define "main" }} -{{if not .IsHome }} +{{ if not .IsHome }} <h1>{{ .Title | markdownify }}</h1> +{{ else }} +<h1>{{ .Site.Title | markdownify }}</h1> {{ end }} + {{ .Content }} <ul> {{ $pages := .Pages }} {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} {{ range (where $pages "Section" "!=" "") }} - <li> - <span class="date">{{ .Date.Format "2006-01-02" }}</span> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> + <li class="h-entry"> + <span class="date dt-published">{{ .Date.Format "2006-01-02" }}</span> + <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> </li> {{ end }} </ul> |