diff options
Diffstat (limited to 'themes/simple/layouts/_default/single.html')
| -rw-r--r-- | themes/simple/layouts/_default/single.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index ffa776f..4489601 100644 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | <header class="mb-6"> | 6 | <header class="mb-6"> |
| 7 | <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1> | 7 | <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1> |
| 8 | 8 | ||
| 9 | {{ if in .Type "posts" }} | 9 | {{ if not (eq .Type "pages") }} |
| 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> | 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| 11 | {{ end }} | 11 | {{ end }} |
| 12 | </header> | 12 | </header> |
| @@ -23,7 +23,7 @@ | |||
| 23 | </div> | 23 | </div> |
| 24 | </article> | 24 | </article> |
| 25 | 25 | ||
| 26 | {{ if in .Type "posts" }} | 26 | {{ if not (eq .Type "pages") }} |
| 27 | <hr class="border-2 border-gray-100 mb-10" /> | 27 | <hr class="border-2 border-gray-100 mb-10" /> |
| 28 | {{ end }} | 28 | {{ end }} |
| 29 | 29 | ||
| @@ -39,7 +39,7 @@ | |||
| 39 | {{ end }} | 39 | {{ end }} |
| 40 | 40 | ||
| 41 | <!-- Read more --> | 41 | <!-- Read more --> |
| 42 | {{ if in .Type "posts" }} | 42 | {{ if not (eq .Type "pages") }} |
| 43 | {{ partial "read-more.html" . }} | 43 | {{ partial "read-more.html" . }} |
| 44 | {{ end }} | 44 | {{ end }} |
| 45 | 45 | ||
| @@ -53,4 +53,4 @@ | |||
| 53 | {{ end }} | 53 | {{ end }} |
| 54 | 54 | ||
| 55 | </main> | 55 | </main> |
| 56 | {{ end }} \ No newline at end of file | 56 | {{ end }} |
