new
This commit is contained in:
1
layouts/_default/_markup/render-link.html
Normal file
1
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a>
|
||||
11
layouts/_default/baseof.html
Normal file
11
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
20
layouts/_default/list.html
Normal file
20
layouts/_default/list.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
{{ if isset .Data "Term" }}
|
||||
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
|
||||
{{ else }}
|
||||
<h1>Random pondering</h1>
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
{{- range .Data.Pages -}}
|
||||
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
|
||||
<li>
|
||||
<time class="readData metaData">{{ dateFormat "02, 01 2006" .Date }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
<span class="readData">» {{ .ReadingTime }} min read.</span>
|
||||
{{ if .Draft }} <span class="metaData">» draft</span> {{ end }}
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
39
layouts/_default/rss.xml
Normal file
39
layouts/_default/rss.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<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 $pages }}
|
||||
<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 }}
|
||||
</channel>
|
||||
</rss>
|
||||
32
layouts/_default/single.html
Normal file
32
layouts/_default/single.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.showdate }}
|
||||
<p>Published on: <time class="metaData">{{ dateFormat "02, Jan 2006" .Date }}</time></p>
|
||||
{{ end }}
|
||||
{{ if .Draft }} <span class="metaData">» draft</span> {{ end }}</p>
|
||||
|
||||
{{ if isset .Params "tldr" }}
|
||||
<div class="tldr">
|
||||
<strong class="metaData">tl;dr:</strong>
|
||||
{{ .Params.tldr }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<article>
|
||||
{{ .Content }}
|
||||
|
||||
<div>
|
||||
{{ if ne .Type "page" }}
|
||||
{{ if gt .Params.tags 0 }}
|
||||
|
||||
<ul class="tagsData">
|
||||
{{ range .Params.tags }}
|
||||
<li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
20
layouts/_default/term.html
Normal file
20
layouts/_default/term.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
{{ if isset .Data "Term" }}
|
||||
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
|
||||
{{ else }}
|
||||
<h1>Random pondering</h1>
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
{{- range .Data.Pages -}}
|
||||
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
|
||||
<li>
|
||||
<time class="readData metaData">{{ dateFormat "02, 01 2006" .Date }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
<span class="readData">» {{ .ReadingTime }} min read.</span>
|
||||
{{ if .Draft }} <span class="metaData">» draft</span> {{ end }}
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
19
layouts/_default/terms.html
Normal file
19
layouts/_default/terms.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<h1>All tags</h1>
|
||||
|
||||
{{ $biggest := 1 }}
|
||||
{{ $smallest := 1 }}
|
||||
{{ $max := 3 }}
|
||||
{{ $min := 1 }}
|
||||
{{ $size := $min }}
|
||||
|
||||
{{ $data := .Data }}
|
||||
<ul class="tags moreContainer">
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
|
||||
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
|
||||
<li><a href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
35
layouts/index.html
Normal file
35
layouts/index.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="main">
|
||||
<div class="introContainer">
|
||||
<!-- Size 64x64 -->
|
||||
<img class="avatar" src="https://i.ibb.co/Qd3hFW2/ezgif-com-gif-maker.jpg" alt="pic">
|
||||
|
||||
<div class="resume">
|
||||
<p><a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Example">Lorem ipsum</a><br>
|
||||
Lorem ipsum dolor sit amet.<br>
|
||||
consectetur adipiscing Cras dignissim tortor ornare</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2>Latest blog posts</h2>
|
||||
{{ partial "lastPost.html" . }}
|
||||
{{ partial "blogList.html" . }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2>Online presence</h2>
|
||||
<ul>
|
||||
<li>Email: <a href="mailto:jgll6dij6@mozmail.com">jgll6dij6@mozmail.com</a></li>
|
||||
<li>Code repositories: <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll">speyll@github.com</a></li>
|
||||
<li><span class="metaData">@Speyll</span> anywhere else.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
12
layouts/partials/blogList.html
Normal file
12
layouts/partials/blogList.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<ul>
|
||||
{{- range .Site.RegularPages.ByPublishDate.Reverse | first 5 -}}
|
||||
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
|
||||
<li>
|
||||
<time class="readData metaData">{{ dateFormat "02, 01 2006" .Date }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
<span class="readData">» {{ .ReadingTime }} min read.</span>
|
||||
{{ if .Draft }} <span class="metaData">» draft</span> {{ end }}
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
19
layouts/partials/footer.html
Normal file
19
layouts/partials/footer.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<footer>
|
||||
<hr>
|
||||
<div class=footContainer>
|
||||
|
||||
<div class="footLeft">
|
||||
<p>Content © 2019-{{ dateFormat "2006" now }}<br>
|
||||
Licensed under <a target="_blank" rel="noopener noreferrer" href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1">CC BY-NC-SA 4.0</a><br>
|
||||
Built with <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io">Hugo</a> using <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/anemone">anemone</a> theme & <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/veqev">veqev</a> colors.<br></p>
|
||||
</div>
|
||||
|
||||
<div class="footRight">
|
||||
<a class="metaData" target="_blank" rel="noopener noreferrer" href='{{ "index.xml" | absURL }}' title="Subscribe via RSS for updates.">RSS</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Size 180x300 -->
|
||||
<script defer language="javascript" type="text/javascript" src='{{ "js/index.js" | absURL }}'></script>
|
||||
</footer>
|
||||
13
layouts/partials/head.html
Normal file
13
layouts/partials/head.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="viewport" content='width=device-width, initial-scale=1.0'>
|
||||
<meta name="description" content='{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}'>
|
||||
<meta name="author" content='{{ .Site.Params.author | default "Speyll" }}'>
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
<link rel="stylesheet" href='{{ "css/style.css" | absURL }}'>
|
||||
<link rel="icon" href='{{ "favicon.ico" | absURL }}'>
|
||||
</head>
|
||||
3
layouts/partials/header.html
Normal file
3
layouts/partials/header.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<header>
|
||||
{{ partial "nav.html" . }}
|
||||
</header>
|
||||
18
layouts/partials/lastPost.html
Normal file
18
layouts/partials/lastPost.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ range .Site.RegularPages.ByPublishDate.Reverse | first 1 }}
|
||||
<div class="lastPost">
|
||||
<blockquote>
|
||||
<p><strong class="metaData">{{ .Title }}</strong><br>
|
||||
Published on: <time class="metaData">{{ dateFormat "02, Jan 2006" .Date }}</time></p>
|
||||
|
||||
{{ .Summary }}
|
||||
|
||||
{{ if .Truncated }}
|
||||
<div class="postData">
|
||||
<p><span class="metaData">{{ .WordCount }}</span> words,
|
||||
<span class="metaData">{{ .ReadingTime}}</span> minute read.<br>
|
||||
<a href="{{ .RelPermalink }}">Read more ⇲</a></p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</blockquote>
|
||||
</div>
|
||||
{{ end }}
|
||||
7
layouts/partials/nav.html
Normal file
7
layouts/partials/nav.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<nav class="navBar">
|
||||
<a href="{{ .Site.BaseURL }}">/home</a>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ partial "themeSwitch.html" . }}
|
||||
</nav>
|
||||
15
layouts/partials/paginator.html
Normal file
15
layouts/partials/paginator.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
<span class="pagePrev">
|
||||
{{ if $pag.HasPrev }}
|
||||
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
|
||||
{{ end }}
|
||||
</span>
|
||||
<span class="pageNext">
|
||||
{{ if $pag.HasNext }}
|
||||
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
|
||||
{{ end }}
|
||||
</span>
|
||||
</ul>
|
||||
{{ end }}
|
||||
10
layouts/partials/themeSwitch.html
Normal file
10
layouts/partials/themeSwitch.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="themeSwitch">
|
||||
<button class="themeButton light" onclick="setTheme('light')" title="Light mode">◐</button>
|
||||
<button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">◑</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const setTheme=(theme)=>{document.documentElement.className=theme;localStorage.setItem('theme',theme)}
|
||||
const getTheme=()=>{const theme=localStorage.getItem('theme');theme&&setTheme(theme)}
|
||||
getTheme()
|
||||
</script>
|
||||
6
layouts/shortcodes/audio.html
Normal file
6
layouts/shortcodes/audio.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
|
||||
<audio loop controls preload="{{ .Get "preload" | default "metadata" }}">
|
||||
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="audio/mpeg">{{ end }}
|
||||
{{ with .Get "caption" }}<figcaption>{{ . }}</figcaption>{{ end }}
|
||||
</audio>
|
||||
</figure>
|
||||
7
layouts/shortcodes/container.html
Normal file
7
layouts/shortcodes/container.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<div class='{{ .Get "class" }}'>
|
||||
{{ range split .Inner "<--->" }}
|
||||
<div class="markContainer">
|
||||
{{ . | $.Page.RenderString }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
1
layouts/shortcodes/imood.html
Normal file
1
layouts/shortcodes/imood.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>Currently feeling...<a target="_blank" rel="noopener noreferrer" href="https://www.imood.com/users/Speyll"><img src="https://moods.imood.com/display/uname-Speyll/fg-5690af/bg-EEEEEE/trans-1/imood.gif" alt="down" border="0"></a></p>
|
||||
1
layouts/shortcodes/statusCafe.html
Normal file
1
layouts/shortcodes/statusCafe.html
Normal file
@@ -0,0 +1 @@
|
||||
<div id="statuscafe"><div id="statuscafe-username"></div><div id="statuscafe-content"></div></div><script src="https://status.cafe/current-status.js?name=speyll" defer></script>
|
||||
4
layouts/shortcodes/toc.html
Normal file
4
layouts/shortcodes/toc.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<h2>Table Of Contents</h2>
|
||||
{{ .Page.TableOfContents }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user