diff options
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/list.html | 8 | ||||
-rw-r--r-- | layouts/posts/single.html | 15 |
2 files changed, 14 insertions, 9 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 40a0ba5..b5ec8ca 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -6,11 +6,13 @@ <ul> {{- range .Pages }} <li> - <a href="{{ .Permalink }}">{{ .Title }}</a> + <a class="u-url" href="{{ .Permalink }}"><span class="p-name">{{ .Title }}</span></a> <small> - {{ .Date | dateFormat "2006-01-02" }} + <time class="dt-published" datetime="{{ .Date | dateFormat "2006-01-02" }}"> + {{ .Date | dateFormat "2006-01-02" }} + </time> {{- range .Params.tags }} - <a href="/tags/{{ . | lower }}">#{{ . }}</a> + <a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a> {{- end }} </small> </li> diff --git a/layouts/posts/single.html b/layouts/posts/single.html index cab9527..eca87b9 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,10 +1,13 @@ {{ define "main" }} -<article> +<article class="h-entry"> <header> - <h1>{{ .Title }}</h1> - {{- range .Params.tags }} - <a href="/tags/{{ . | lower }}">#{{ . }}</a> - {{- end }} + <h1 class="p-name">{{ .Title }}</h1> + <p> + {{- range .Params.tags }} + <a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a> + {{- end }} + — Published on <time class="dt-published" datetime="{{ .Date | dateFormat "2006-01-02" }}">{{ .Date | dateFormat "2006-01-02" }}</time>. + </p> {{- if .Draft }} <section class="admonition"> <div class="admonition-title"> @@ -19,7 +22,7 @@ </section> {{- end }} </header> - <main> + <main class="e-content"> {{ .Content }} </main> <footer> |