This commit is contained in:
Speyll 2022-11-21 22:15:50 +01:00
parent b6b4a9ce6e
commit ba684522ce
37 changed files with 679 additions and 0 deletions

0
.hugo_build.lock Normal file
View file

20
LICENSE Normal file
View file

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2022 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4
archetypes/default.md Normal file
View file

@ -0,0 +1,4 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
---

24
config.toml Normal file
View file

@ -0,0 +1,24 @@
[module]
[module.hugoVersion]
extended = true
min = "0.55.0"
max = "0.105.0"
[author]
name = "Speyll"
homepage = "https://speyll.gitlab.io/site/"
[[menu.main]]
name = "/about"
url = "/about"
weight = 1
[[menu.main]]
name = "/blog"
url = "/blog"
weight = 2
[[menu.main]]
name = "/tags"
url = "/tags"
weight = 3

View file

@ -0,0 +1,21 @@
+++
title = "About"
+++
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
Hugo makes use of a variety of open source projects including:
* https://github.com/yuin/goldmark
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Learn more and contribute on [GitHub](https://github.com/gohugoio).

View file

@ -0,0 +1,47 @@
+++
author = "Hugo Authors"
title = "Emoji Support"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
"emoji",
]
+++
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your sites [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}

View file

@ -0,0 +1,147 @@
+++
author = "Hugo Authors"
title = "Markdown Syntax Guide"
date = "2019-03-11"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = [
"markdown",
"css",
"html",
"themes",
]
categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
+++
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.</p>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age
--------|------
Bob | 27
Alice | 23
#### Inline Markdown within tables
| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
| ---------- | --------- | ----------------- | ---------- |
| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
## Code Blocks
#### Code block with backticks
```
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block indented with four spaces
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
* List item
* Another item
* And another item
#### Nested list
* Item
1. First Sub-item
2. Second Sub-item
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.

View file

@ -0,0 +1,58 @@
+++
author = "Hugo Authors"
title = "Placeholder Text"
date = "2019-03-09"
description = "Lorem Ipsum Dolor Si Amet"
tags = [
"markdown",
"text",
]
+++
Lorem est tota propiore conpellat pectoribus de
pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice
subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc
caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis
lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
1. Exierant elisi ambit vivere dedere
2. Duce pollice
3. Eris modo
4. Spargitque ferrea quos palude
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus
silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria
tractus malis.
1. Comas hunc haec pietate fetum procerum dixit
2. Post torum vates letum Tiresia
3. Flumen querellas
4. Arcanaque montibus omnes
5. Quidem et
# Vagus elidunt
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
## Mane refeci capiebant unda mulcebat
Victa caducifer, malo vulnere contra
dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere
furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli
Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare
Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert
ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae
vulnus haerentia iuste et exercebat, sui et.
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem
Propoetides **parte**.
{{< css.inline >}}
<style>
.canon { background: white; width: 100%; height: auto;}
</style>
{{< /css.inline >}}

View file

@ -0,0 +1,34 @@
+++
author = "Hugo Authors"
title = "Rich Content"
date = "2019-03-10"
description = "A brief description of Hugo Shortcodes"
tags = [
"shortcodes",
"privacy",
]
+++
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
<!--more-->
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Twitter Shortcode
{{< tweet user="DesignReviewed" id="1085870671291310081" >}}
<br>
---
## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}}

BIN
images/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/screenshot2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
images/screenshot3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
images/tn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View 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>

View 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>

View 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
View 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>

View 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 }}

View 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 }}

View 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
View 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>

View 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>

View file

@ -0,0 +1,19 @@
<footer>
<hr>
<div class=footContainer>
<div class="footLeft">
<p>Content &copy 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 &amp; <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>

View 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>

View file

@ -0,0 +1,3 @@
<header>
{{ partial "nav.html" . }}
</header>

View 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 }}

View 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>

View 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 }}

View 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>

View 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>

View file

@ -0,0 +1,7 @@
<div class='{{ .Get "class" }}'>
{{ range split .Inner "<--->" }}
<div class="markContainer">
{{ . | $.Page.RenderString }}
</div>
{{ end }}
</div>

View 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>

View 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>

View file

@ -0,0 +1,4 @@
<div>
<h2>Table Of Contents</h2>
{{ .Page.TableOfContents }}
</div>

1
static/css/style.css Normal file
View file

@ -0,0 +1 @@
footer,td,th{text-align:left}#statuscafe,.lastPost,body{padding:1rem}#statuscafe-username,ul{margin-bottom:.5rem}:root,:root.light{--bgColor:#EEEEEE;--fgColor:#41474E;--metaColor:#D26878;--headColor:#;--linkColor:#5690AF;--hovColor:#22453F;--bgSelect:#FFFAE1;--bgUrl:url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat;--red:#D26878;--dimRed:#623039;--orange:#e08f67;--dimOrange:#926048;--yellow:#FFFAE1;--dimYellow:#D5C5A1;--green:#56AFA0;--dimGreen:#22453F;--blue:#5690AF;--dimBlue:#223844;--purple:#9271D6;--dimPurple:#47356C;--grey:#CBCDCD;--dimGrey:#646868}:root.dark{--bgColor:#222529;--fgColor:#D6D6D6;--metaColor:#78B6AD;--headColor:#;--linkColor:#DBD5BC;--hovColor:#E2AEA2;--bgSelect:#464949;--bgUrl:url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat;--red:#CD909B;--dimRed:#684249;--orange:#E2AEA2;--dimOrange:#704941;--yellow:#DBD5BC;--dimYellow:#6F6847;--green:#78B6AD;--dimGreen:#3E615C;--blue:#87C9E5;--dimBlue:#38494F;--purple:#CEA7DE;--dimPurple:#5E406A;--grey:#CBCDCD;--dimGrey:#464949}::-moz-selection{color:var(--bgColor);background:var(--metaColor)}::selection{color:var(--bgColor);background:var(--metaColor)}html{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:62.5%}body{font-family:sans-serif;font-size:1.6rem;line-height:1.35;max-width:64rem;margin:auto;background:var(--bgColor);color:var(--fgColor)}h1,h2,h3,h4,h5,h6{font-size:1.8rem;margin:1rem 0;color:var(--headColor)}h1::before,h2::before,h3::before,h4::before,h5::before,h6::before{color:var(--metaColor);content:'# '}a{color:var(--linkColor)}.metaData,.themeButton,hr,textarea{color:var(--metaColor)}a:focus,a:hover{background-color:var(--linkColor);color:var(--bgColor)}ul{list-style:none;margin-top:.5rem;line-height:1.45}ul li::marker{content:'» ';color:var(--metaColor)}ul li:hover::marker{content:'# ';font-weight:700;color:var(--linkColor)}blockquote{border-left:5px solid var(--metaColor);margin:1rem;padding:0 0 0 1rem}textarea{border:2px dotted;outline:0;resize:none;overflow:auto;background-color:var(--bgColor)}hr{border:1px dashed}footer{font-size:1.4rem;clear:both;color:var(--footColor)}img{max-width:100%;height:auto;padding:.2rem;border:dashed 2px var(--metaColor);border-radius:15px}table{table-layout:fixed;width:100%;border-collapse:collapse;border:none;margin-left:auto;margin-right:auto;margin-bottom:1rem;line-height:1.1}thead th:first-child{width:20%}th{font-weight:400}td,th{padding:.5rem;border:dashed 1px var(--metaColor)}.navBar{margin:.5rem;display:flex;flex-direction:row;gap:.3rem;flex-wrap:wrap;justify-content:flex-end;align-items:center;align-content:flex-end}.themeButton{cursor:pointer;border:none;font-size:1.8rem;background-color:transparent}.dark .themeButton.dark,.themeButton.light{display:none}.dark .themeButton.light{display:block}.introContainer{margin-top:1rem;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center}.avatar{margin:0 1rem 0 0}.lastPost{border:2px dashed var(--metaColor);border-radius:10px;margin-bottom:2rem}.lastPost:focus,.lastPost:hover{transform:scale(1.05);-webkit-transition:.1s ease-in;-moz-transition:.1s ease-in;-o-transition:.1s ease-in;background:var(--bgSelect)}.postData{margin-top:.5rem;text-align:right}.moreContainer{display:grid;grid-gap:0.5rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));justify-content:start;justify-items:start;align-items:start}.tagsData{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;align-content:flex-end}.footContainer,.footRight{display:flex;align-content:center}.footContainer{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-start}.footRight{flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.noStyle{padding:0;margin:0;border:none;border-radius:0}.textCenter{text-align:center}.floatRight{float:right}.floatLeft{float:left}.moe{position:fixed;z-index:-1;bottom:0;right:2.5rem}#statuscafe-content{margin-left:1rem}@media(max-width:65.625em),screen and (orientation:portrait){.moe{display:none}}@media(max-width:37.5em){.readData{display:none}}@media(max-width:21.75em){.avatar{display:none}}

0
static/js/index.js Normal file
View file

30
theme.toml Normal file
View file

@ -0,0 +1,30 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "anemone"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = "Simple minimal elegant theme."
homepage = "https://github.com/speyll/anemone"
tags = ["minimal", "responsive", "blog", "dark", "light", "dark-mode"]
features = []
min_version = "0.41.0"
[author]
name = "Speyll"
homepage = "https://speyll.gitlab.io/site/"
[[menu.main]]
name = "/about"
url = "/about"
weight = 1
[[menu.main]]
name = "/blog"
url = "/blog"
weight = 2
[[menu.main]]
name = "/tags"
url = "/tags"
weight = 3