diff options
Diffstat (limited to 'themes/xmin')
-rw-r--r-- | themes/xmin/layouts/_default/baseof.html | 18 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/list.html | 11 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/single.html | 11 | ||||
-rw-r--r-- | themes/xmin/static/css/style.css | 3 |
4 files changed, 24 insertions, 19 deletions
diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html index 6757396..1705460 100644 --- a/themes/xmin/layouts/_default/baseof.html +++ b/themes/xmin/layouts/_default/baseof.html @@ -1,21 +1,21 @@ <!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 }} - {{ end -}} + {{- range .AlternativeOutputFormats }} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{- end }} </head> <body> <nav> <ul> - {{ range .Site.Menus.main }} + {{- range .Site.Menus.main }} <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> - {{ end }} + {{- end }} </ul> </nav> @@ -23,9 +23,9 @@ {{ end }} <footer> - {{ with .Site.Params.footer }} + {{- with .Site.Params.footer }} {{ . | markdownify }} - {{ end }} + {{- end }} </footer> </body> </html> 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> diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html index 54acdc6..ba0e22a 100644 --- a/themes/xmin/layouts/_default/single.html +++ b/themes/xmin/layouts/_default/single.html @@ -2,14 +2,13 @@ <article class="h-entry"> <header> <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1> - {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }} {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }} <p class="terms"> - {{ range $i := (slice "categories" "tags") }} - {{ with ($.Param $i) }} - {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} - {{ end }} - {{ end }} + {{- range $i := (slice "categories" "tags") }} + {{- with ($.Param $i) }} + {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} + {{- end }} + {{- end }} </p> </header> diff --git a/themes/xmin/static/css/style.css b/themes/xmin/static/css/style.css index 76658fe..8d456af 100644 --- a/themes/xmin/static/css/style.css +++ b/themes/xmin/static/css/style.css @@ -5,6 +5,9 @@ body { max-width: 800px; padding: 1em; } +.u-photo { + float:right; +} /* header and footer areas */ nav > ul { padding: 0; } |