diff options
Diffstat (limited to 'themes/terrassa/layouts/_default')
-rw-r--r-- | themes/terrassa/layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | themes/terrassa/layouts/_default/card.html | 28 | ||||
-rw-r--r-- | themes/terrassa/layouts/_default/list.html | 11 | ||||
-rw-r--r-- | themes/terrassa/layouts/_default/single.html | 37 | ||||
-rw-r--r-- | themes/terrassa/layouts/_default/tags.html | 12 |
5 files changed, 0 insertions, 99 deletions
diff --git a/themes/terrassa/layouts/_default/baseof.html b/themes/terrassa/layouts/_default/baseof.html deleted file mode 100644 index 6e1a936..0000000 --- a/themes/terrassa/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{- partial "head.html" . -}} - -<body> - {{- partial "header.html" . -}} - {{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}} -</body> - -</html>
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/card.html b/themes/terrassa/layouts/_default/card.html deleted file mode 100644 index 6a184f1..0000000 --- a/themes/terrassa/layouts/_default/card.html +++ /dev/null @@ -1,28 +0,0 @@ -<article class="card"> - <header class="card__header"> - <h1 class="card__header__title"> - <a href="{{ .Permalink }}" class="card__header__link" alt="{{ .Title }}."> - {{ .Title }} - </a> - </h1> - {{ if ne .Type "page" }} - {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} - <p class="card__header__date date"> - {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. - </p> - {{ else if $.Site.Params.posts.showDate }} - <p class="card__header__date date">{{ dateFormat $.Site.Params.posts.dateFormat .Date }}</p> - {{ else if $.Site.Params.posts.showAuthor }} - <p class="card__header__author author">By {{ $.Params.author }}.</p> - {{ end }} - {{ end }} - </header> - - <main class="card__body"> - {{ .Content | truncate 480 }} - </main> - - <footer class="card__footer"> - {{ .Render "tags" }} - </footer> -</article>
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/list.html b/themes/terrassa/layouts/_default/list.html deleted file mode 100644 index 06390f4..0000000 --- a/themes/terrassa/layouts/_default/list.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} -<main class="content"> - {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "posts") }} - - {{ range $paginator.Pages }} - {{ .Render "card" }} - {{ end }} - - {{ template "_internal/pagination.html" . }} -</main> -{{ end }} diff --git a/themes/terrassa/layouts/_default/single.html b/themes/terrassa/layouts/_default/single.html deleted file mode 100644 index 9f108f7..0000000 --- a/themes/terrassa/layouts/_default/single.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ define "main" }} -<article class="post"> - <header class="post__header"> - <h1 class="post__title">{{ .Title }}</h1> - {{ if .Description }} - <p class="post__subtitle">{{ .Description }}</p> - {{ end }} - {{ if ne .Type "page" }} - {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} - <p class="post__date date"> - {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. - </p> - {{ else if $.Site.Params.posts.showDate }} - <p class="post__date date">{{ dateFormat $.Site.Params.posts.dateFormat .Date }}</p> - {{ else if $.Site.Params.posts.showAuthor }} - <p class="post__author author">By {{ $.Params.author }}.</p> - {{ end }} - {{ end }} - </header> - - {{ if ne .Type "page" }} - <main class="post__body"> - {{ .Content }} - </main> - {{ else }} - <main class="post__body" style="margin-bottom: 3rem;"> - {{ .Content }} - </main> - {{ end }} - - {{ if ne .Type "page" }} - <footer class="post__footer"> - {{ .Render "tags" }} - </footer> - {{ end }} -</article> -{{ end }}
\ No newline at end of file diff --git a/themes/terrassa/layouts/_default/tags.html b/themes/terrassa/layouts/_default/tags.html deleted file mode 100644 index 4618ae3..0000000 --- a/themes/terrassa/layouts/_default/tags.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ if and $.Site.Params.posts.showTags .Params.Tags }} -<ul class="tags"> - {{ range .Params.Tags }} - {{ $url := printf "%stags/%s/" $.Site.BaseURL . }} - <li class="tags__tag"> - <a href="{{ $url }}" class="tag__link" alt="{{ . }}."> - #{{ . }} - </a> - </li> - {{ end }} -</ul> -{{ end }} |