diff --git a/themes/mnemosyne/LICENSE b/themes/mnemosyne/LICENSE new file mode 100644 index 0000000..c59d9a6 --- /dev/null +++ b/themes/mnemosyne/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2021 Jez Cope + +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. diff --git a/themes/mnemosyne/README.md b/themes/mnemosyne/README.md new file mode 100644 index 0000000..ef2f155 --- /dev/null +++ b/themes/mnemosyne/README.md @@ -0,0 +1,33 @@ +# Mnemosyne: a minimal Hugo theme + +This is the theme that I use for [my blog, eRambler](https://erambler.co.uk). + +## Installation + +In your Hugo site `themes` directory, run: + +``` +git clone https://tildegit.org/petrichor/theme-mnemosyne-hugo.git +``` + +Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `mnemosyne`. + +``` +theme = "mnemosyne" +``` + +For more information read the official [quick start guide](https://gohugo.io/getting-started/quick-start/) of Hugo. + +## Contributing + +I don't really have time to test & accept contributions, but feel free to fork this theme and do your own thing with it. + +## License + +This theme is released under the [MIT license](https://tildegit.org/petrichor/theme-mnemosyne-hugo/src/branch/main/LICENSE). + +## Acknowledgements + +This theme is based on: [Blank][], a starter [Hugo](https://gohugo.io/) theme for developers. Use it to make your own theme. + +[Blank]: https://themes.gohugo.io/theme/blank/ diff --git a/themes/mnemosyne/archetypes/default.md b/themes/mnemosyne/archetypes/default.md new file mode 100644 index 0000000..ef75f76 --- /dev/null +++ b/themes/mnemosyne/archetypes/default.md @@ -0,0 +1,4 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +date = {{ .Date }} ++++ diff --git a/themes/mnemosyne/assets/js/webmention.js b/themes/mnemosyne/assets/js/webmention.js new file mode 100644 index 0000000..fc87fd8 --- /dev/null +++ b/themes/mnemosyne/assets/js/webmention.js @@ -0,0 +1,342 @@ +/* webmention.js + +Simple thing for embedding webmentions from webmention.io into a page, client-side. + +(c)2018-2020 fluffy (http://beesbuzz.biz) + +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. + +GitHub repo (for latest released versions, issue tracking, etc.): + + https://github.com/PlaidWeb/webmention.js + +Basic usage: + + + +{{ if .File }} + {{ $page_id := .File.BaseFileName }} + {{ if .Site.Params.comments.webmention }} + {{ $webmention_js := resources.Get "js/webmention.js" | minify }} + + {{ end }} + {{ with .Site.Params.comments.cactus }} + + {{ end }} +{{ end }} diff --git a/themes/mnemosyne/layouts/partials/series-items.html b/themes/mnemosyne/layouts/partials/series-items.html new file mode 100644 index 0000000..82b3a32 --- /dev/null +++ b/themes/mnemosyne/layouts/partials/series-items.html @@ -0,0 +1,27 @@ +{{ $page := . }} +{{ with .Params.series }} + {{ $series := (site.GetPage "/series").GetPage . }} +
+
+

+ Series +

+
+
+ {{ with $series.Params.on }} +

This post is part of a series on {{.}}.

+ {{ else }} +

This post is part of the series {{ $series.Title }}

+ {{ end }} + +
+
+{{ end }} diff --git a/themes/mnemosyne/layouts/partials/series.html b/themes/mnemosyne/layouts/partials/series.html new file mode 100644 index 0000000..bf2be9b --- /dev/null +++ b/themes/mnemosyne/layouts/partials/series.html @@ -0,0 +1,7 @@ +{{ with . }} + {{ $series := (site.GetPage "/series").GetPage . }} +
+ Series: + {{ $series.Title }} +
+{{ end }} diff --git a/themes/mnemosyne/layouts/partials/sidebar.html b/themes/mnemosyne/layouts/partials/sidebar.html new file mode 100644 index 0000000..92bbd80 --- /dev/null +++ b/themes/mnemosyne/layouts/partials/sidebar.html @@ -0,0 +1,14 @@ + diff --git a/themes/mnemosyne/layouts/partials/social.html b/themes/mnemosyne/layouts/partials/social.html new file mode 100644 index 0000000..a631cb4 --- /dev/null +++ b/themes/mnemosyne/layouts/partials/social.html @@ -0,0 +1,34 @@ +{{ with .Site.Params.Social }} +

+ me elsewhere :: + {{ $last := sub (len .) 1 }} + {{ range $i, $x := . }} + {{ $url := $x.info }} + {{ $text := $x.kind }} + {{ if eq $x.kind "github" }} + {{ $url = printf "https://github.com/%s" $x.info }} + {{ else if eq $x.kind "gitlab" }} + {{ $url = printf "https://gitlab.com/%s" $x.info }} + {{ else if eq $x.kind "linkedin" }} + {{ $url = printf "https://linkedin.com/in/%s" $x.info }} + {{ else if eq $x.kind "twitter" }} + {{ $url = printf "https://twitter.com/%s" $x.info }} + {{ else if eq $x.kind "mastodon" }} + {{ $url = printf "https://%s/@%s" (index $x.info 1) (index $x.info 0) }} + {{ else if eq $x.kind "orcid" }} + {{ $url = printf "https://orcid.org/%s" $x.info }} + {{ else if eq $x.kind "keybase" }} + {{ $url = printf "https://keybase.io/%s" $x.info }} + {{ else if eq $x.kind "keyoxide" }} + {{ $url = printf "https://keyoxide.org/%s" $x.info }} + {{ else if eq $x.kind "matrix" }} + {{ $url = printf "https://matrix.to/#/%s" $x.info }} + {{ else if eq $x.kind "pypi" }} + {{ $url = printf "https://pypi.org/user/%s" $x.info }} + {{ end }} + {{$text}} + {{ if ne $i $last }}|{{ end }} + {{ end }} +

+
+{{ end }} diff --git a/themes/mnemosyne/layouts/partials/status.html b/themes/mnemosyne/layouts/partials/status.html new file mode 100644 index 0000000..8d25836 --- /dev/null +++ b/themes/mnemosyne/layouts/partials/status.html @@ -0,0 +1 @@ +{{ if .Params.draft }}
Status: DRAFT ✏️
{{ end }} diff --git a/themes/mnemosyne/layouts/partials/tags.html b/themes/mnemosyne/layouts/partials/tags.html new file mode 100644 index 0000000..94a77fd --- /dev/null +++ b/themes/mnemosyne/layouts/partials/tags.html @@ -0,0 +1,8 @@ +
+ Tags: + {{ range . }} + [{{ . }}] + {{ else }} + None + {{ end }} +
diff --git a/themes/mnemosyne/layouts/partials/toc.html b/themes/mnemosyne/layouts/partials/toc.html new file mode 100644 index 0000000..b811de2 --- /dev/null +++ b/themes/mnemosyne/layouts/partials/toc.html @@ -0,0 +1,10 @@ +{{ if .Params.ShowTOC }} +
+
+

Contents

+
+
+ {{ .TableOfContents }} +
+
+{{ end }} diff --git a/themes/mnemosyne/layouts/post/frag/title.html b/themes/mnemosyne/layouts/post/frag/title.html new file mode 100644 index 0000000..dbae70d --- /dev/null +++ b/themes/mnemosyne/layouts/post/frag/title.html @@ -0,0 +1 @@ +{{ .Title }} diff --git a/themes/mnemosyne/layouts/series/li.html b/themes/mnemosyne/layouts/series/li.html new file mode 100644 index 0000000..c4873b1 --- /dev/null +++ b/themes/mnemosyne/layouts/series/li.html @@ -0,0 +1,4 @@ +
  • + {{ .Title }} ({{ .Data.series | len }} posts) + {{- with .Params.summary }}: {{.}}{{ end }} +
  • diff --git a/themes/mnemosyne/layouts/shortcodes/admonition.html b/themes/mnemosyne/layouts/shortcodes/admonition.html new file mode 100644 index 0000000..511ef65 --- /dev/null +++ b/themes/mnemosyne/layouts/shortcodes/admonition.html @@ -0,0 +1,10 @@ +
    +
    +

    + {{ .Get 0 | title }} +

    +
    +
    + {{ .Inner | markdownify }} +
    +
    diff --git a/themes/mnemosyne/layouts/tags/li.html b/themes/mnemosyne/layouts/tags/li.html new file mode 100644 index 0000000..5ede641 --- /dev/null +++ b/themes/mnemosyne/layouts/tags/li.html @@ -0,0 +1,5 @@ +
  • + + {{ .Title }} + +
  • diff --git a/themes/mnemosyne/package.json b/themes/mnemosyne/package.json new file mode 100644 index 0000000..fc18e67 --- /dev/null +++ b/themes/mnemosyne/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bulma": "^0.9.2" + } +} diff --git a/themes/mnemosyne/static/css/style.css b/themes/mnemosyne/static/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/themes/mnemosyne/static/font/iosevka-aile.css b/themes/mnemosyne/static/font/iosevka-aile.css new file mode 100644 index 0000000..92009fb --- /dev/null +++ b/themes/mnemosyne/static/font/iosevka-aile.css @@ -0,0 +1,36 @@ + +@font-face { + font-family: 'Iosevka Aile Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-aile-mnemosyne-regular.woff2') format('woff2'), url('ttf/iosevka-aile-mnemosyne-regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Aile Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-aile-mnemosyne-italic.woff2') format('woff2'), url('ttf/iosevka-aile-mnemosyne-italic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Aile Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-aile-mnemosyne-bold.woff2') format('woff2'), url('ttf/iosevka-aile-mnemosyne-bold.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Aile Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-aile-mnemosyne-bolditalic.woff2') format('woff2'), url('ttf/iosevka-aile-mnemosyne-bolditalic.ttf') format('truetype'); +} diff --git a/themes/mnemosyne/static/font/iosevka-etoile.css b/themes/mnemosyne/static/font/iosevka-etoile.css new file mode 100644 index 0000000..fdc62d2 --- /dev/null +++ b/themes/mnemosyne/static/font/iosevka-etoile.css @@ -0,0 +1,36 @@ + +@font-face { + font-family: 'Iosevka Etoile Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-etoile-mnemosyne-regular.woff2') format('woff2'), url('ttf/iosevka-etoile-mnemosyne-regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Etoile Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-etoile-mnemosyne-italic.woff2') format('woff2'), url('ttf/iosevka-etoile-mnemosyne-italic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Etoile Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-etoile-mnemosyne-bold.woff2') format('woff2'), url('ttf/iosevka-etoile-mnemosyne-bold.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Etoile Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-etoile-mnemosyne-bolditalic.woff2') format('woff2'), url('ttf/iosevka-etoile-mnemosyne-bolditalic.ttf') format('truetype'); +} diff --git a/themes/mnemosyne/static/font/iosevka.css b/themes/mnemosyne/static/font/iosevka.css new file mode 100644 index 0000000..2546386 --- /dev/null +++ b/themes/mnemosyne/static/font/iosevka.css @@ -0,0 +1,72 @@ + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-mnemosyne-regular.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 400; + font-stretch: expanded; + font-style: normal; + src: url('woff2/iosevka-mnemosyne-extended.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-extended.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 400; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-mnemosyne-italic.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-italic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 400; + font-stretch: expanded; + font-style: italic; + src: url('woff2/iosevka-mnemosyne-extendeditalic.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-extendeditalic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: normal; + src: url('woff2/iosevka-mnemosyne-bold.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-bold.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 700; + font-stretch: expanded; + font-style: normal; + src: url('woff2/iosevka-mnemosyne-extendedbold.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-extendedbold.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: italic; + src: url('woff2/iosevka-mnemosyne-bolditalic.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-bolditalic.ttf') format('truetype'); +} + +@font-face { + font-family: 'Iosevka Web'; + font-display: swap; + font-weight: 700; + font-stretch: expanded; + font-style: italic; + src: url('woff2/iosevka-mnemosyne-extendedbolditalic.woff2') format('woff2'), url('ttf/iosevka-mnemosyne-extendedbolditalic.ttf') format('truetype'); +} diff --git a/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bold.ttf b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bold.ttf new file mode 100644 index 0000000..93b132d Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bold.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bolditalic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bolditalic.ttf new file mode 100644 index 0000000..dfa4bcf Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-bolditalic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-italic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-italic.ttf new file mode 100644 index 0000000..b35ae59 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-italic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-regular.ttf b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-regular.ttf new file mode 100644 index 0000000..0061fef Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-aile-mnemosyne-regular.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bold.ttf b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bold.ttf new file mode 100644 index 0000000..be5969c Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bold.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bolditalic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bolditalic.ttf new file mode 100644 index 0000000..1e85e3e Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-bolditalic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-italic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-italic.ttf new file mode 100644 index 0000000..00ec8f4 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-italic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-regular.ttf b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-regular.ttf new file mode 100644 index 0000000..93affdf Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-etoile-mnemosyne-regular.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bold.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bold.ttf new file mode 100644 index 0000000..6ec8d60 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bold.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bolditalic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bolditalic.ttf new file mode 100644 index 0000000..c4a7d21 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-bolditalic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extended.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extended.ttf new file mode 100644 index 0000000..93282b8 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extended.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbold.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbold.ttf new file mode 100644 index 0000000..1c3b239 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbold.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbolditalic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbolditalic.ttf new file mode 100644 index 0000000..afed6dc Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendedbolditalic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendeditalic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendeditalic.ttf new file mode 100644 index 0000000..b346d0b Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-extendeditalic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-italic.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-italic.ttf new file mode 100644 index 0000000..506a0f9 Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-italic.ttf differ diff --git a/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-regular.ttf b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-regular.ttf new file mode 100644 index 0000000..94c2c0a Binary files /dev/null and b/themes/mnemosyne/static/font/ttf/iosevka-mnemosyne-regular.ttf differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bold.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bold.woff2 new file mode 100644 index 0000000..84dbab2 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bold.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bolditalic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bolditalic.woff2 new file mode 100644 index 0000000..3ca335f Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-bolditalic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-italic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-italic.woff2 new file mode 100644 index 0000000..c82b678 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-italic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-regular.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-regular.woff2 new file mode 100644 index 0000000..efa219f Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-aile-mnemosyne-regular.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bold.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bold.woff2 new file mode 100644 index 0000000..b8297d3 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bold.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bolditalic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bolditalic.woff2 new file mode 100644 index 0000000..bbaa985 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-bolditalic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-italic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-italic.woff2 new file mode 100644 index 0000000..ea3f423 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-italic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-regular.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-regular.woff2 new file mode 100644 index 0000000..6900e09 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-etoile-mnemosyne-regular.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bold.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bold.woff2 new file mode 100644 index 0000000..2d8a8f1 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bold.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bolditalic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bolditalic.woff2 new file mode 100644 index 0000000..9040fee Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-bolditalic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extended.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extended.woff2 new file mode 100644 index 0000000..a3ea1e0 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extended.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbold.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbold.woff2 new file mode 100644 index 0000000..a3a54d9 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbold.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbolditalic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbolditalic.woff2 new file mode 100644 index 0000000..1a62970 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendedbolditalic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendeditalic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendeditalic.woff2 new file mode 100644 index 0000000..f7e09f2 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-extendeditalic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-italic.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-italic.woff2 new file mode 100644 index 0000000..9374115 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-italic.woff2 differ diff --git a/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-regular.woff2 b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-regular.woff2 new file mode 100644 index 0000000..123c070 Binary files /dev/null and b/themes/mnemosyne/static/font/woff2/iosevka-mnemosyne-regular.woff2 differ diff --git a/themes/mnemosyne/static/js/navbar.js b/themes/mnemosyne/static/js/navbar.js new file mode 100644 index 0000000..4ad91c9 --- /dev/null +++ b/themes/mnemosyne/static/js/navbar.js @@ -0,0 +1,25 @@ +document.addEventListener('DOMContentLoaded', () => { + + // Get all "navbar-burger" elements + const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); + + // Check if there are any navbar burgers + if ($navbarBurgers.length > 0) { + + // Add a click event on each of them + $navbarBurgers.forEach( el => { + el.addEventListener('click', () => { + + // Get the target from the "data-target" attribute + const target = el.dataset.target; + const $target = document.getElementById(target); + + // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" + el.classList.toggle('is-active'); + $target.classList.toggle('is-active'); + + }); + }); + } + +}); diff --git a/themes/mnemosyne/theme.toml b/themes/mnemosyne/theme.toml new file mode 100644 index 0000000..9e56685 --- /dev/null +++ b/themes/mnemosyne/theme.toml @@ -0,0 +1,12 @@ +name = "Blank" +license = "MIT" +licenselink = "https://github.com/vimux/blank/blob/master/LICENSE" +description = "Starter Hugo theme for developers." +homepage = "https://github.com/vimux/blank/" +tags = ["blog", "plain", "blank", "starter", "development"] +features = ["blog"] +min_version = "0.20" + +[author] + name = "Vimux" + homepage = "https://github.com/vimux" diff --git a/themes/mnemosyne/yarn.lock b/themes/mnemosyne/yarn.lock new file mode 100644 index 0000000..4300454 --- /dev/null +++ b/themes/mnemosyne/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +bulma@^0.9.2: + version "0.9.2" + resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.2.tgz#340011e119c605f19b8ca886bfea595f1deaf23c" + integrity sha512-e14EF+3VSZ488yL/lJH0tR8mFWiEQVCMi/BQUMi2TGMBOk+zrDg4wryuwm/+dRSHJw0gMawp2tsW7X1JYUCE3A==