Website Summary Files Commits Branches @commit @diff @stats
path: root / themes / natrium / layouts
diff options
context:
space:
mode:
Commit3245f1f1404785d92c21eb381c08dee5a4be6bb7 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Files3c245582fb5a2a9eaf8518f7272c03a6aaa2f635 /themes/natrium/layouts
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar.gz
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.zip
Parentae12c0a482298e4da9b816137ceb6131c7d4b9e4 (diff)
Moved site to website folder
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" . }}
-
- <main class="content">
- <div>
- <h1 class="error-page-title">404</h1>
- </div>
- <div class="error-page-content">
- {{ i18n "errorMessage" }}
- <div>
- <a href="{{ .Site.BaseURL }}"><i class="fa fa-chevron-up"></i></a>
- </div>
- </div>
- </main>
-
-{{ 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" . }}
-
-<main class="content" role="main">
- <article class="article">
- <h1 class="article-title">{{ .Title }}</h1>
- {{ if eq .Section "post" }}
- <span class="article-date">{{ .Date.Format "2006-01-02" }}</span>
- {{ end }}
-
- <div class="article-content">
- {{ .Content }}
- </div>
-
- <ul class="article-taxonomy">
- {{ if .Params.categories }}
- <hr>
- <li>
- <i class="fa fa-category"></i>{{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}{{ end }}<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
- </li>
- {{ end }}
-
- {{ if .Params.tags }}
- <li>
- <i class="fa fa-tags"></i>{{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}{{ end }}<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
- </li>
- {{ end }}
- </article>
-
-</main>
-
-{{ 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" . }}
-
-<main class="content">
-
- <div class="list">
- {{ range (.Paginate ((where .Data.Pages "Type" "post").GroupByDate "2006")).PageGroups }}
- <h2 class="list-title">{{ .Key }}</h2>
- {{ range .Pages }}
-
- {{ partial "list-item.html" . }}
-
- {{ end }}
- {{ end }}
- </div>
-
- {{ partial "pagination.html" . }}
-
-</main>
-
-{{ 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 @@
- <footer class="footer">
- <ul class="footer-links">
- <li>
- <a href="{{ .Site.RSSLink }}" type="application/rss+xml" target="_blank"><i class="fa fa-rss"></i> {{ i18n "footerRSS" }}</a>
- </li>
- <li>
- <a href="{{ .Site.Params.GitHubURL }}"><i class="fa fa-github"></i> Code</a>
- </li>
- </ul>
- </footer>
- </div>
- </body>
-</html>
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 @@
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-{{ .Hugo.Generator }}
-
-{{ if eq .URL "/" }}
-<title>{{ .Title }}</title>
-<meta property="og:title" content="{{ .Title }}">
-<meta property="og:type" content="website">
-{{ else }}
-<title>{{ .Title }} - {{ .Site.Title }}</title>
-<meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
-{{ end }}
-
-{{ if eq .URL "/" }}
-<meta property="description" content="{{ .Site.Params.description }}">
-{{ else }}
- {{ if .Description }}
- <meta property="description" content="{{ .Description }}">
- {{ end }}
-{{ end }}
-
-{{ if .Keywords }}
-<meta property="keywords" content ="{{ delimit .Keywords ", " }}">
-{{ end }}
-
-{{ if .RSSLink }}
-<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
-{{ end }}
-
-<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" media="all">
-<link rel="stylesheet" href="{{ .Site.BaseURL }}css/fonts.css">
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 @@
-<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
- <head>
- {{ partial "head.html" . }}
- </head>
- <body>
- <div class="wrapper">
- <header class="header">
- {{ partial "nav.html" . }}
- </header>
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 @@
- <nav class="list-item">
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- <span class="list-item-date">
- {{ .Date.Format "2006-01-02" }}
- </span>
- </nav>
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 @@
-<nav class="nav">
- <a href="{{ .Site.BaseURL }}" class="nav-logo">
- <img src="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}"
- width="{{ .Site.Params.logo.width }}"
- height="{{ .Site.Params.logo.height }}"
- alt="{{ .Site.Params.logo.alt }}">
- </a>
-
- <ul class="nav-links">
- {{ range .Site.Menus.main }}
- <li><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{ end }}
- </ul>
-</nav>
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 }}
-
-<ul class="page-links">
- <li
- {{ if not $pag.HasPrev }}class="page-links-disabled"{{ end }}>
- <a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">&lt;&#160;</span></a>
- </li>
- {{ $.Scratch.Set "__paginator.ellipsed" false }}
- {{ range $pag.Pagers }}
- {{ $right := sub .TotalPages .PageNumber }}
- {{ $showNumber := or (le .PageNumber 3) (eq $right 0) }}
- {{ $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) }}
- {{ if $showNumber }}
- {{ $.Scratch.Set "__paginator.ellipsed" false }}
- {{ $.Scratch.Set "__paginator.shouldEllipse" false }}
- {{ else }}
- {{ $.Scratch.Set "__paginator.shouldEllipse" (not ($.Scratch.Get "__paginator.ellipsed") ) }}
- {{ $.Scratch.Set "__paginator.ellipsed" true }}
- {{ end }}
- {{ if $showNumber }}
- <li
- {{ if eq . $pag }}class="page-links-active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a>
- </li>
- {{ else if ($.Scratch.Get "__paginator.shouldEllipse") }}
- <li class="page-links-disabled"><span aria-hidden="true">&hellip;</span></li>
- {{ end }}
- {{ end }}
- <li
- {{ if not $pag.HasNext }}class="page-links-disabled"{{ end }}>
- <a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">&#160;&gt;</span></a>
- </li>
-</ul>
-{{ 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 @@
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
- <link>{{ .Permalink }}</link>
- <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
- <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
- <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
- <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
- <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
- <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
- {{ with .OutputFormats.Get "RSS" }}
- {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
- {{ end }}
- {{ range .Data.Pages }}
- {{ if eq .Section "post" }}
- <item>
- <title>{{ .Title }}</title>
- <link>{{ .Permalink }}</link>
- <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
- <guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | html }}</description>
- </item>
- {{ end }}
- {{ end }}
- </channel>
-</rss>
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" . }}
-
-<main class="content" role="main">
-
- <div class="list">
- <h2 class="list-title">{{ .Title }}</h2>
- {{ range .Paginator.Pages }}
-
- {{ partial "list-item.html" . }}
-
- {{ end }}
- </div>
-
- {{ partial "pagination.html" . }}
-
-</main>
-
-{{ 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" . }}
-
-<main class="content">
-
- <div class="category">
- <h2 class="category-title">{{ i18n "categories" }}</h2>
- {{ $data := .Data }}
- {{ range $key, $value := .Data.Terms.Alphabetical }}
- <ul class="category-item">
- <li>
- <a href="{{ $.Site.LanguagePrefix }}/{{ $data.Plural }}/{{ $value.Name | urlize }}">{{ $value.Name }}</a>
- <span class="category-item-count">
- <sup>({{ $value.Count }})</sup>
- </span>
- </li>
- </ul>
- {{ end }}
- </div>
-
-</main>
-
-{{ 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" . }}
-
-<main class="content" role="main">
-
- <div class="list">
- <h2 class="list-title">{{ .Title }}</h2>
- {{ range .Paginator.Pages }}
-
- {{ partial "list-item.html" . }}
-
- {{ end }}
- </div>
-
- {{ partial "pagination.html" . }}
-
-</main>
-
-{{ 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" . }}
-
-<main class="content">
-
- <div class="tag-cloud">
- <h2 class="tag-cloud-title">{{ i18n "tags" }}</h2>
- {{ 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 }}
- <ul class="tag-cloud-item">
- {{ 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) ) }}
- <li><a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ $name }}</a></li>
- {{ end }}
- </ul>
- {{ end }}
- </div>
-
-</main>
-
-{{ partial "footer.html" . }}