From 3245f1f1404785d92c21eb381c08dee5a4be6bb7 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Tue, 4 Sep 2018 09:08:41 +0300 Subject: Moved site to website folder --- themes/natrium/layouts/404.html | 17 ----------- themes/natrium/layouts/_default/list.html | 1 - themes/natrium/layouts/_default/single.html | 31 -------------------- themes/natrium/layouts/index.html | 20 ------------- themes/natrium/layouts/partials/footer.html | 13 --------- themes/natrium/layouts/partials/head.html | 31 -------------------- themes/natrium/layouts/partials/header.html | 10 ------- themes/natrium/layouts/partials/list-item.html | 6 ---- themes/natrium/layouts/partials/nav.html | 14 --------- themes/natrium/layouts/partials/pagination.html | 34 ---------------------- themes/natrium/layouts/rss.xml | 28 ------------------ themes/natrium/layouts/taxonomy/category.html | 18 ------------ .../natrium/layouts/taxonomy/category.terms.html | 22 -------------- themes/natrium/layouts/taxonomy/tag.html | 18 ------------ themes/natrium/layouts/taxonomy/tag.terms.html | 31 -------------------- 15 files changed, 294 deletions(-) delete mode 100644 themes/natrium/layouts/404.html delete mode 100644 themes/natrium/layouts/_default/list.html delete mode 100644 themes/natrium/layouts/_default/single.html delete mode 100644 themes/natrium/layouts/index.html delete mode 100644 themes/natrium/layouts/partials/footer.html delete mode 100644 themes/natrium/layouts/partials/head.html delete mode 100644 themes/natrium/layouts/partials/header.html delete mode 100644 themes/natrium/layouts/partials/list-item.html delete mode 100644 themes/natrium/layouts/partials/nav.html delete mode 100644 themes/natrium/layouts/partials/pagination.html delete mode 100644 themes/natrium/layouts/rss.xml delete mode 100644 themes/natrium/layouts/taxonomy/category.html delete mode 100644 themes/natrium/layouts/taxonomy/category.terms.html delete mode 100644 themes/natrium/layouts/taxonomy/tag.html delete mode 100644 themes/natrium/layouts/taxonomy/tag.terms.html (limited to 'themes/natrium/layouts') diff --git a/themes/natrium/layouts/404.html b/themes/natrium/layouts/404.html deleted file mode 100644 index 28489eb..0000000 --- a/themes/natrium/layouts/404.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ partial "header" . }} - -
-
-

404

-
-
- {{ i18n "errorMessage" }} -
- -
-
-
- -{{ partial "footer" . }} - - diff --git a/themes/natrium/layouts/_default/list.html b/themes/natrium/layouts/_default/list.html deleted file mode 100644 index 9353e44..0000000 --- a/themes/natrium/layouts/_default/list.html +++ /dev/null @@ -1 +0,0 @@ -/* Natrium doesn't support list.html. */ diff --git a/themes/natrium/layouts/_default/single.html b/themes/natrium/layouts/_default/single.html deleted file mode 100644 index 240109d..0000000 --- a/themes/natrium/layouts/_default/single.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ partial "header.html" . }} - -
-
-

{{ .Title }}

- {{ if eq .Section "post" }} - - {{ end }} - -
- {{ .Content }} -
- -
    - {{ if .Params.categories }} -
    -
  • - {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}{{ end }}{{ . }}{{ end }} -
  • - {{ end }} - - {{ if .Params.tags }} -
  • - {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}{{ end }}{{ . }}{{ end }} -
  • - {{ end }} -
- -
- -{{ partial "footer.html" . }} diff --git a/themes/natrium/layouts/index.html b/themes/natrium/layouts/index.html deleted file mode 100644 index d71b3fa..0000000 --- a/themes/natrium/layouts/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ partial "header.html" . }} - -
- -
- {{ range (.Paginate ((where .Data.Pages "Type" "post").GroupByDate "2006")).PageGroups }} -

{{ .Key }}

- {{ range .Pages }} - - {{ partial "list-item.html" . }} - - {{ end }} - {{ end }} -
- - {{ partial "pagination.html" . }} - -
- -{{ partial "footer.html" . }} diff --git a/themes/natrium/layouts/partials/footer.html b/themes/natrium/layouts/partials/footer.html deleted file mode 100644 index 0230966..0000000 --- a/themes/natrium/layouts/partials/footer.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - diff --git a/themes/natrium/layouts/partials/head.html b/themes/natrium/layouts/partials/head.html deleted file mode 100644 index b17415e..0000000 --- a/themes/natrium/layouts/partials/head.html +++ /dev/null @@ -1,31 +0,0 @@ - - -{{ .Hugo.Generator }} - -{{ if eq .URL "/" }} -{{ .Title }} - - -{{ else }} -{{ .Title }} - {{ .Site.Title }} - -{{ end }} - -{{ if eq .URL "/" }} - -{{ else }} - {{ if .Description }} - - {{ end }} -{{ end }} - -{{ if .Keywords }} - -{{ end }} - -{{ if .RSSLink }} - -{{ end }} - - - diff --git a/themes/natrium/layouts/partials/header.html b/themes/natrium/layouts/partials/header.html deleted file mode 100644 index 6a3b55c..0000000 --- a/themes/natrium/layouts/partials/header.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - {{ partial "head.html" . }} - - -
-
- {{ partial "nav.html" . }} -
diff --git a/themes/natrium/layouts/partials/list-item.html b/themes/natrium/layouts/partials/list-item.html deleted file mode 100644 index 245a80d..0000000 --- a/themes/natrium/layouts/partials/list-item.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/themes/natrium/layouts/partials/nav.html b/themes/natrium/layouts/partials/nav.html deleted file mode 100644 index 607878c..0000000 --- a/themes/natrium/layouts/partials/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/themes/natrium/layouts/partials/pagination.html b/themes/natrium/layouts/partials/pagination.html deleted file mode 100644 index d818c18..0000000 --- a/themes/natrium/layouts/partials/pagination.html +++ /dev/null @@ -1,34 +0,0 @@ -{{ $pag := $.Paginator }} -{{ if gt $pag.TotalPages 1 }} - - -{{ end }} diff --git a/themes/natrium/layouts/rss.xml b/themes/natrium/layouts/rss.xml deleted file mode 100644 index 4008f49..0000000 --- a/themes/natrium/layouts/rss.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{ with .OutputFormats.Get "RSS" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ range .Data.Pages }} - {{ if eq .Section "post" }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{ .Summary | html }} - - {{ end }} - {{ end }} - - diff --git a/themes/natrium/layouts/taxonomy/category.html b/themes/natrium/layouts/taxonomy/category.html deleted file mode 100644 index d20298a..0000000 --- a/themes/natrium/layouts/taxonomy/category.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ partial "header.html" . }} - -
- -
-

{{ .Title }}

- {{ range .Paginator.Pages }} - - {{ partial "list-item.html" . }} - - {{ end }} -
- - {{ partial "pagination.html" . }} - -
- -{{ partial "footer.html" . }} diff --git a/themes/natrium/layouts/taxonomy/category.terms.html b/themes/natrium/layouts/taxonomy/category.terms.html deleted file mode 100644 index d5ba7bc..0000000 --- a/themes/natrium/layouts/taxonomy/category.terms.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ partial "header.html" . }} - -
- -
-

{{ i18n "categories" }}

- {{ $data := .Data }} - {{ range $key, $value := .Data.Terms.Alphabetical }} - - {{ end }} -
- -
- -{{ partial "footer.html" . }} diff --git a/themes/natrium/layouts/taxonomy/tag.html b/themes/natrium/layouts/taxonomy/tag.html deleted file mode 100644 index 08eb524..0000000 --- a/themes/natrium/layouts/taxonomy/tag.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ partial "header.html" . }} - -
- -
-

{{ .Title }}

- {{ range .Paginator.Pages }} - - {{ partial "list-item.html" . }} - - {{ end }} -
- - {{ partial "pagination.html" . }} - -
- -{{ partial "footer.html" . }} diff --git a/themes/natrium/layouts/taxonomy/tag.terms.html b/themes/natrium/layouts/taxonomy/tag.terms.html deleted file mode 100644 index 77a68c7..0000000 --- a/themes/natrium/layouts/taxonomy/tag.terms.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ partial "header.html" . }} - -
- -
-

{{ i18n "tags" }}

- {{ if not (eq (len $.Site.Taxonomies.tags) 0) }} - {{ $fontUnit := "rem" }} - {{ $largestFontSize := 2.5 }} - {{ $smallestFontSize := 1.0 }} - {{ $fontSpread := sub $largestFontSize $smallestFontSize }} - {{ $max := add (len (index $.Site.Taxonomies.tags.ByCount 0).Pages) 1 }} - {{ $min := len (index $.Site.Taxonomies.tags.ByCount.Reverse 0).Pages }} - {{ $spread := sub $max $min }} - {{ $fontStep := div $fontSpread $spread }} -
    - {{ range $name, $taxonomy := $.Site.Taxonomies.tags }} - {{ $currentTagCount := len $taxonomy.Pages }} - {{ $currentFontSize := (add $smallestFontSize (mul (sub $currentTagCount $min) $fontStep) ) }} - {{ $count := len $taxonomy.Pages }} - {{ $weigth := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }} - {{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weigth) ) }} -
  • {{ $name }}
  • - {{ end }} -
- {{ end }} -
- -
- -{{ partial "footer.html" . }} -- cgit v1.3.1-26-gb76a