diff options
Diffstat (limited to 'themes/hugo-coder/layouts/posts')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/posts/li.html | 4 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/posts/list.html | 21 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/posts/single.html | 52 |
4 files changed, 77 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/posts/li.html b/themes/hugo-coder/layouts/posts/li.html new file mode 100644 index 0000000..dd58396 --- /dev/null +++ b/themes/hugo-coder/layouts/posts/li.html | |||
@@ -0,0 +1,4 @@ | |||
1 | <li> | ||
2 | <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span> | ||
3 | <a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a> | ||
4 | </li> | ||
diff --git a/themes/hugo-coder/layouts/posts/list.html b/themes/hugo-coder/layouts/posts/list.html new file mode 100644 index 0000000..8ed6850 --- /dev/null +++ b/themes/hugo-coder/layouts/posts/list.html | |||
@@ -0,0 +1,21 @@ | |||
1 | {{ define "title" }} | ||
2 | {{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }} | ||
3 | {{ end }} | ||
4 | {{ define "content" }} | ||
5 | <section class="container list"> | ||
6 | <h1 class="title"> | ||
7 | <a class="title-link" href="{{ .Permalink | safeURL }}"> | ||
8 | {{ title (i18n (lower .Title)) | default .Title }} | ||
9 | </a> | ||
10 | </h1> | ||
11 | {{ .Content }} | ||
12 | <ul> | ||
13 | e | ||
14 | {{- range .Paginator.Pages -}} | ||
15 | {{- .Render "li" -}} | ||
16 | {{- end -}} | ||
17 | </ul> | ||
18 | |||
19 | {{ partial "pagination.html" . }} | ||
20 | </section> | ||
21 | {{ end }} | ||
diff --git a/themes/hugo-coder/layouts/posts/single.html b/themes/hugo-coder/layouts/posts/single.html new file mode 100644 index 0000000..61f11f7 --- /dev/null +++ b/themes/hugo-coder/layouts/posts/single.html | |||
@@ -0,0 +1,52 @@ | |||
1 | {{ define "title" }} | ||
2 | {{ .Title }} · {{ .Site.Title }} | ||
3 | {{ end }} | ||
4 | {{ define "content" }} | ||
5 | <section class="container post"> | ||
6 | <article> | ||
7 | <header> | ||
8 | <div class="post-title"> | ||
9 | <h1 class="title"> | ||
10 | <a class="title-link" href="{{ .Permalink | safeURL }}"> | ||
11 | {{ .Title }} | ||
12 | </a> | ||
13 | </h1> | ||
14 | </div> | ||
15 | <div class="post-meta"> | ||
16 | <div class="date"> | ||
17 | <span class="posted-on"> | ||
18 | <i class="fa fa-calendar" aria-hidden="true"></i> | ||
19 | <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'> | ||
20 | {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }} | ||
21 | </time> | ||
22 | </span> | ||
23 | <span class="reading-time"> | ||
24 | <i class="fa fa-clock-o" aria-hidden="true"></i> | ||
25 | {{ i18n "reading_time" .ReadingTime }} | ||
26 | </span> | ||
27 | </div> | ||
28 | {{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }} | ||
29 | {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} | ||
30 | {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} | ||
31 | </div> | ||
32 | </header> | ||
33 | |||
34 | <div> | ||
35 | {{ if .Params.featuredImage }} | ||
36 | <img src='{{ .Params.featuredImage }}' alt="Featured image"/> | ||
37 | {{ end }} | ||
38 | {{ .Content }} | ||
39 | </div> | ||
40 | |||
41 | |||
42 | <footer> | ||
43 | {{ partial "posts/series.html" . }} | ||
44 | {{ partial "posts/disqus.html" . }} | ||
45 | {{ partial "posts/commento.html" . }} | ||
46 | {{ partial "posts/utterances.html" . }} | ||
47 | </footer> | ||
48 | </article> | ||
49 | |||
50 | {{ partial "posts/math.html" . }} | ||
51 | </section> | ||
52 | {{ end }} | ||