diff options
Diffstat (limited to 'themes/m10c/layouts')
-rw-r--r-- | themes/m10c/layouts/404.html | 7 | ||||
-rw-r--r-- | themes/m10c/layouts/_default/baseof.html | 44 | ||||
-rw-r--r-- | themes/m10c/layouts/_default/list.html | 17 | ||||
-rw-r--r-- | themes/m10c/layouts/_default/single.html | 38 | ||||
-rw-r--r-- | themes/m10c/layouts/_default/terms.html | 16 | ||||
-rw-r--r-- | themes/m10c/layouts/partials/icon.html | 12 | ||||
-rw-r--r-- | themes/m10c/layouts/partials/pagination.html | 27 |
7 files changed, 0 insertions, 161 deletions
diff --git a/themes/m10c/layouts/404.html b/themes/m10c/layouts/404.html deleted file mode 100644 index 7009c19..0000000 --- a/themes/m10c/layouts/404.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} - <div class="error-404"> - <h1 class="error-404-title">O{{ partial "icon.html" (dict "ctx" $ "name" "frown") }}ps... </h1> - <p>The link you followed may be broken, or the page may have been removed.</p> - <a href="{{ "/" | relURL }}">Go home {{ partial "icon.html" (dict "ctx" $ "name" "arrow-right") }}</a> - </div> -{{ end }} diff --git a/themes/m10c/layouts/_default/baseof.html b/themes/m10c/layouts/_default/baseof.html deleted file mode 100644 index 071d891..0000000 --- a/themes/m10c/layouts/_default/baseof.html +++ /dev/null @@ -1,44 +0,0 @@ -<!doctype html> -<html lang="{{ .Site.LanguageCode | default "en-us" }}"> - <head> - <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} // {{ .Site.Title }}{{ end }}</title> - <meta charset="utf-8" /> - {{ hugo.Generator }} - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" /> - <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" /> - {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}} - <link rel="stylesheet" href="{{ $style.Permalink }}" /> - <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' /> - <script src="https://kit.fontawesome.com/0460fae059.js" crossorigin="anonymous"></script> - - {{ template "_internal/google_analytics.html" . }} - {{ template "_internal/twitter_cards.html" . }} - {{ template "_internal/opengraph.html" . }} - - </head> - <body> - <header class="app-header"> - <a href="{{ .Site.BaseURL }}"><img class="app-header-avatar" src="{{ .Site.Params.avatar | default "avatar.jpg" | relURL }}" alt="{{ .Site.Params.author | default "John Doe" }}" /></a> - <h1>{{ .Site.Title }}</h1> - <p>venezuelan π»πͺ living in montevideo πΊπΎ</p> - <p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p> - <div class="app-header-social"> - {{ range .Site.Params.social }} - <a target="_blank" href="{{ .url }}" rel="noreferrer noopener"><i class="{{ .name }}"></i></a> - {{ end }} - </div> - <p>donations:</p> - <div class="app-header-social"> - {{ range .Site.Params.donations }} - <a target="_blank" href="{{ .url }}" rel="noreferrer noopener"><i class="{{ .name }}"></i></a> - {{ end }} - </div> - </header> - <main class="app-container"> - {{ block "main" . }} - {{ .Content }} - {{ end }} - </main> - </body> -</html> diff --git a/themes/m10c/layouts/_default/list.html b/themes/m10c/layouts/_default/list.html deleted file mode 100644 index 392c5e2..0000000 --- a/themes/m10c/layouts/_default/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" }} - <article> - <h1>{{ .Title }}</h1> - <ul class="posts-list"> - {{ range $index, $element := .Paginator.Pages }} - <li class="posts-list-item"> - <a class="posts-list-item-title" href="{{ .Permalink }}">{{ .Title }}</a> - <span class="posts-list-item-description"> - {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime }} min read - - {{ .PublishDate.Format "Jan 2, 2006" }} - </span> - </li> - {{ end }} - </ul> - {{ partial "pagination.html" $ }} - </article> -{{ end }} diff --git a/themes/m10c/layouts/_default/single.html b/themes/m10c/layouts/_default/single.html deleted file mode 100644 index 2584aaf..0000000 --- a/themes/m10c/layouts/_default/single.html +++ /dev/null @@ -1,38 +0,0 @@ -{{ define "main" }} - <article class="post"> - <header class="post-header"> - <h1 class ="post-title">{{ .Title }}</h1> - <div class="post-meta"> - <div> - {{ partial "icon.html" (dict "ctx" $ "name" "calendar") }} - {{ .PublishDate.Format "Jan 2, 2006" }} - </div> - <div> - {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} - {{ .ReadingTime }} min read - </div> - {{- with .Params.tags -}} - <div> - {{ partial "icon.html" (dict "ctx" $ "name" "tag") }} - {{ range . -}} - {{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}} - <a class="tag" href="{{ .Permalink }}">{{ .Title }}</a> - {{- end -}} - {{- end -}} - </div> - {{- end -}} - </div> - </header> - <div class="post-content"> - {{ .Content }} - </div> - <div class="post-footer"> - <script defer - src="https://commento.rogs.me/js/commento.js" - data-css-override="/commento-new.css" - data-auto-init="true"> - </script> - <div id="commento"></div> - </div> - </article> -{{ end }} diff --git a/themes/m10c/layouts/_default/terms.html b/themes/m10c/layouts/_default/terms.html deleted file mode 100644 index efce125..0000000 --- a/themes/m10c/layouts/_default/terms.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} - <article> - <h1>{{ .Title }}</h1> - <ul class="posts-list"> - {{ range .Data.Terms.Alphabetical }} - <li class="posts-list-item"> - <a class="posts-list-item-title" href="{{ .Page.Permalink }}"> - {{ .Page.Title }} - </a> - {{ .Count }} - </li> - {{ end }} - </ul> - {{ partial "pagination.html" $ }} - </article> -{{ end }} diff --git a/themes/m10c/layouts/partials/icon.html b/themes/m10c/layouts/partials/icon.html deleted file mode 100644 index 123bd23..0000000 --- a/themes/m10c/layouts/partials/icon.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- if isset .ctx.Site.Data.m10c.icons .name -}} -<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-{{ .name }}"> - <title>{{ .name }}</title> - {{ safeHTML (index .ctx.Site.Data.m10c.icons .name) }} -</svg> -{{- else -}} -<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-link"> - <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path> - <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path> -</svg> -{{- end -}} - diff --git a/themes/m10c/layouts/partials/pagination.html b/themes/m10c/layouts/partials/pagination.html deleted file mode 100644 index be6fa11..0000000 --- a/themes/m10c/layouts/partials/pagination.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ with $.Paginator }} -{{ if gt .TotalPages 1 }} -<ul class="pagination"> - {{ with .Prev }} - <li class="page-item"> - <a class="page-link" href="{{ .URL }}"> - {{ partial "icon.html" (dict "ctx" $ "name" "arrow-left") }} - </a> - </li> - {{ end }} - {{ range .Pagers }} - <li class="page-item{{ if eq .PageNumber $.Paginator.PageNumber }} active{{ end }}"> - <a class="page-link" href="{{ .URL }}"> - {{ .PageNumber }} - </a> - </li> - {{ end }} - {{ with .Next }} - <li class="page-item"> - <a class="page-link" href="{{ .URL }}"> - {{ partial "icon.html" (dict "ctx" $ "name" "arrow-right") }} - </a> - </li> - {{ end }} -</ul> -{{ end }} -{{ end }} |