diff options
6 files changed, 0 insertions, 108 deletions
| -rw-r--r-- | themes/natrium/layouts/partials/footer.html | 13 | ||||
| -rw-r--r-- | themes/natrium/layouts/partials/head.html | 31 | ||||
| -rw-r--r-- | themes/natrium/layouts/partials/header.html | 10 | ||||
| -rw-r--r-- | themes/natrium/layouts/partials/list-item.html | 6 | ||||
| -rw-r--r-- | themes/natrium/layouts/partials/nav.html | 14 | ||||
| -rw-r--r-- | themes/natrium/layouts/partials/pagination.html | 34 |
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">< </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">…</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"> ></span></a> - </li> -</ul> -{{ end }} |
