theme cleanup
This commit is contained in:
parent
90a21568ea
commit
5ae63a1d7d
29 changed files with 0 additions and 1988 deletions
|
|
@ -1,40 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
|
||||
{{ $title := print .Title " · " .Site.Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
{{ $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "style.main.scss" . | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
|
||||
|
||||
</head>
|
||||
<body class="{{ block "body_class" . }} {{ end }}">
|
||||
|
||||
<div class="site-wrapper">
|
||||
{{- block "main" . }}{{- end }}
|
||||
|
||||
|
||||
<footer class="site-footer outer">
|
||||
<div class="site-footer-content inner">
|
||||
<section class="copyright"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> © {{ .Date.Format "2006" }}</section>
|
||||
<nav class="site-footer-nav">
|
||||
<a href="{{ .Site.BaseURL }}">Latest Posts</a>
|
||||
{{ if .Site.Params.facebook }}<a href="{{ .Site.Params.facebook }}" target="_blank" rel="noopener">Facebook</a>{{ end }}
|
||||
{{ if .Site.Params.twitter }}<a href="{{ .Site.Params.twitter }}" target="_blank" rel="noopener">Twitter</a>{{ end }}
|
||||
{{ if .Site.Params.github }}<a href="{{ .Site.Params.github }}" target="_blank" rel="noopener">Github</a>{{ end }}
|
||||
<a href="https://jonathanjanssens.com" target="_blank" rel="noopener" style="opacity: 0.5;">Hugo Casper3 by Jonathan Janssens</a>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
{{ define "body_class" }} tag-template {{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<header class="site-header">
|
||||
{{- partial "site-header.html" $ -}}
|
||||
|
||||
{{- partial "header-background.html" $ -}}
|
||||
<div class="inner site-header-content">
|
||||
<h1 class="site-title">{{ .Title }}</h1>
|
||||
<h2 class="site-description">
|
||||
{{ if .Param "description" }}
|
||||
{{ .Param "description" }}
|
||||
{{ else }}
|
||||
A collection of {{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}
|
||||
{{ end }}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="site-main" class="site-main outer">
|
||||
<div class="inner posts">
|
||||
<div class="post-feed">
|
||||
{{ range $index, $element := .Pages }}
|
||||
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
{{ define "body_class" }} post-template {{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<header class="site-header">
|
||||
{{- partial "site-header.html" $ -}}
|
||||
</header>
|
||||
|
||||
<main id="site-main" class="site-main outer">
|
||||
{{ partial "victorhugo.html" . }}
|
||||
<div class="inner">
|
||||
|
||||
<article class="post-full post {{ if not (.Param "feature_image") }} no-image {{ end }}">
|
||||
|
||||
<header class="post-full-header">
|
||||
|
||||
{{ with .Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<section class="post-full-tags">
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<h1 class="post-full-title">{{ .Title }}</h1>
|
||||
|
||||
{{ if .Param "summary" }}
|
||||
<p class="post-full-custom-excerpt">{{ .Summary }}</p>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-full-byline">
|
||||
<section class="post-full-byline-content">
|
||||
|
||||
{{ if .Param "author" }}
|
||||
{{- partial "post-author.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
<section class="post-full-byline-meta">
|
||||
{{ if .Param "author" }}
|
||||
<h4 class="author-name">{{ .Param "author" }}</h4>
|
||||
{{ end }}
|
||||
<div class="byline-meta-content">
|
||||
<time class="byline-meta-date" datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "2 January 2006"}}</time>
|
||||
<span class="byline-reading-time"><span class="bull">•</span> {{ .ReadingTime }} min read</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ if .Param "feature_image" }}
|
||||
<figure class="post-full-image">
|
||||
<img src="{{ .Param "feature_image" }}" alt="{{ .Title }}" />
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
||||
<section class="post-full-content">
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{- partial "post-navigation.html" . -}}
|
||||
|
||||
{{ end }}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
{{ define "body_class" }} home-template {{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<header class="site-home-header">
|
||||
{{- partial "header-background.html" . -}}
|
||||
<div class="inner">
|
||||
{{- partial "site-nav.html" . -}}
|
||||
<div class="site-header-content">
|
||||
<h1 class="site-title">
|
||||
{{ if $.Site.Params.logo }}
|
||||
<img class="site-logo" src="{{ $.Site.Params.logo }}" alt="{{ .Site.Title }}" />
|
||||
{{ else }}
|
||||
{{ $.Site.Title }}
|
||||
{{ end }}
|
||||
</h1>
|
||||
<h2 class="site-description">{{ $.Site.Params.description }}</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="site-main" class="site-main outer">
|
||||
<div class="inner posts">
|
||||
<div class="post-feed">
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{ range $index, $element := $pages }}
|
||||
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{{ if $.Site.Params.cover }}
|
||||
<style type="text/css">
|
||||
.responsive-header-img {
|
||||
background-image: url('{{ $.Site.Params.cover }}');
|
||||
}
|
||||
</style>
|
||||
<div class="outer site-header-background responsive-header-img">
|
||||
{{ else }}
|
||||
<div class="outer site-header-background no-image">
|
||||
{{ end }}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M3.513 18.998C4.749 15.504 8.082 13 12 13s7.251 2.504 8.487 5.998C18.47 21.442 15.417 23 12 23s-6.47-1.558-8.487-4.002zM12 12c2.21 0 4-2.79 4-5s-1.79-4-4-4-4 1.79-4 4 1.79 5 4 5z" fill="#FFF"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 307 B |
|
|
@ -1 +0,0 @@
|
|||
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0zm5.204 4.911h-3.546c-2.103 0-4.443.885-4.443 3.934.01 1.062 0 2.08 0 3.225h-2.433v3.872h2.509v11.147h4.61v-11.22h3.042l.275-3.81h-3.397s.007-1.695 0-2.187c0-1.205 1.253-1.136 1.329-1.136h2.054V4.911z" /></svg>
|
||||
|
Before Width: | Height: | Size: 350 B |
|
|
@ -1,11 +0,0 @@
|
|||
<svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
||||
y="0px" width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">
|
||||
<path opacity="0.2" fill="#000" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
|
||||
s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
|
||||
c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z" />
|
||||
<path fill="#000" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
|
||||
C22.32,8.481,24.301,9.057,26.013,10.047z">
|
||||
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 20 20" to="360 20 20"
|
||||
dur="0.5s" repeatCount="indefinite" />
|
||||
</path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 923 B |
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
|
||||
|
Before Width: | Height: | Size: 262 B |
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M30.063 7.313c-.813 1.125-1.75 2.125-2.875 2.938v.75c0 1.563-.188 3.125-.688 4.625a15.088 15.088 0 0 1-2.063 4.438c-.875 1.438-2 2.688-3.25 3.813a15.015 15.015 0 0 1-4.625 2.563c-1.813.688-3.75 1-5.75 1-3.25 0-6.188-.875-8.875-2.625.438.063.875.125 1.375.125 2.688 0 5.063-.875 7.188-2.5-1.25 0-2.375-.375-3.375-1.125s-1.688-1.688-2.063-2.875c.438.063.813.125 1.125.125.5 0 1-.063 1.5-.25-1.313-.25-2.438-.938-3.313-1.938a5.673 5.673 0 0 1-1.313-3.688v-.063c.813.438 1.688.688 2.625.688a5.228 5.228 0 0 1-1.875-2c-.5-.875-.688-1.813-.688-2.75 0-1.063.25-2.063.75-2.938 1.438 1.75 3.188 3.188 5.25 4.25s4.313 1.688 6.688 1.813a5.579 5.579 0 0 1 1.5-5.438c1.125-1.125 2.5-1.688 4.125-1.688s3.063.625 4.188 1.813a11.48 11.48 0 0 0 3.688-1.375c-.438 1.375-1.313 2.438-2.563 3.188 1.125-.125 2.188-.438 3.313-.875z"/></svg>
|
||||
|
Before Width: | Height: | Size: 888 B |
|
|
@ -1,13 +0,0 @@
|
|||
<ul class="author-list">
|
||||
<li class="author-list-item">
|
||||
<div class="author-card">
|
||||
<div class="author-profile-image">{{- partial "icons/avatar.html" -}}</div>
|
||||
<div class="author-info">
|
||||
<div class="author-info">
|
||||
<h2>{{ .Param "author" }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="author-avatar author-profile-image">{{- partial "icons/avatar.html" -}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
<article class="post-card post
|
||||
{{ if not (.context.Param "feature_image") }} no-image
|
||||
{{ else }}
|
||||
{{ if (eq (mod .index 6) 0) }} post-card-large {{ end }}
|
||||
{{ end }} ">
|
||||
|
||||
{{ if .context.Param "feature_image" }}
|
||||
<a class="post-card-image-link" href="{{ .context.Permalink }}">
|
||||
<img class="post-card-image"src="{{ .context.Param "feature_image" }}" alt="{{ .context.Title }}"/>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-card-content">
|
||||
|
||||
<a class="post-card-content-link" href="{{ .context.Permalink }}">
|
||||
|
||||
<header class="post-card-header">
|
||||
{{ with .context.Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<div class="post-card-primary-tag">{{ $primaryTag }}</div>
|
||||
{{ end }}
|
||||
|
||||
<h2 class="post-card-title">{{ .context.Title }}</h2>
|
||||
</header>
|
||||
|
||||
<section class="post-card-excerpt">
|
||||
<p>{{ .context.Summary }}</p>
|
||||
</section>
|
||||
|
||||
</a>
|
||||
|
||||
<footer class="post-card-meta">
|
||||
<ul class="author-list">
|
||||
<li class="author-list-item">
|
||||
<div class="author-name-tooltip">{{ .context.Param "author" }}</div>
|
||||
<a href="https://test.com" class="static-avatar author-profile-image">{{- partial "icons/avatar.html" -}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="post-card-byline-content">
|
||||
<span>{{ .context.Param "author" }}</span>
|
||||
<span class="post-card-byline-date"><time datetime="{{ .context.Date.Format "2006-31-01" }}">{{ .context.Date.Format "2 January 2006" }}</time>
|
||||
<span class="bull">•</span> {{ .context.ReadingTime }} min read</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
<aside class="read-next outer">
|
||||
<div class="inner">
|
||||
<div class="read-next-feed">
|
||||
|
||||
{{- partial "read-next.html" . -}}
|
||||
|
||||
{{ with .PrevInSection}}
|
||||
{{- partial "post-card.html" (dict "context" . "index" 1) -}}
|
||||
{{end}}
|
||||
|
||||
{{ with .NextInSection}}
|
||||
{{- partial "post-card.html" (dict "context" . "index" 1) -}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
{{ with .Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<article class="read-next-card">
|
||||
<header class="read-next-card-header">
|
||||
<h3><span>More in</span> <a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a></h3>
|
||||
</header>
|
||||
<div class="read-next-card-content">
|
||||
<ul>
|
||||
{{ range first 3 (where (index $.Site.Taxonomies.tags $primaryTag).Pages "Section" "post") }}
|
||||
<li>
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<div class="read-next-card-meta">
|
||||
<p><time datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "01 Jan 2006"}}</time>
|
||||
{{ if .Params.reading_time }} – {{ .Params.reading_time }} {{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<div class="outer site-nav-main">
|
||||
<div class="inner">
|
||||
{{- partial "site-nav.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<nav class="site-nav">
|
||||
<div class="site-nav-left">
|
||||
{{ if eq $.Site.Params.logo "thisshouldfail" }}
|
||||
<a class="site-nav-logo" href="{{ $.Site.BaseURL }}"><img src="{{ $.Site.Params.logo }}" alt="{{ $.Site.Title }}" /></a>
|
||||
{{ else }}
|
||||
<a class="site-nav-logo" href="{{ $.Site.BaseURL }}">{{ $.Site.Title }}</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="site-nav-content">
|
||||
<ul class="nav" role="menu">
|
||||
{{ range $.Site.Menus.main }}
|
||||
<li class="nav-home" role="menuitem"><a href="{{ .URL }}">{{- .Name -}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue