commit 86fc72db128380d1b8e690cfa0320be813bc2220 Author: Ethan Marshall Date: Thu Aug 1 06:21:40 2024 +0100 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a8645f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.hugo_build.lock diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..2fe1a2c --- /dev/null +++ b/content/_index.md @@ -0,0 +1,7 @@ +# Ethan Marshall's Website + +Hi! I am Ethan Marshall (also known as ``ejv2``) and you have reached my corner of the internet. + +{{< figure src="/img/me.jpg" caption="Me on holiday in the Canaries - circa 2015" >}} + +I spend most of my time writing software and building circuits, although more the latter nowadays. I quite like working with embedded micro-controllers (ESP32, Atmel, 3286) and I have some experience in PCB design. diff --git a/content/contact/birth-of-steam.jpg b/content/contact/birth-of-steam.jpg new file mode 100644 index 0000000..e7be3b2 Binary files /dev/null and b/content/contact/birth-of-steam.jpg differ diff --git a/content/contact/ethan.gpg b/content/contact/ethan.gpg new file mode 100644 index 0000000..1d4212c Binary files /dev/null and b/content/contact/ethan.gpg differ diff --git a/content/contact/frens.gif b/content/contact/frens.gif new file mode 100644 index 0000000..f64bb4c Binary files /dev/null and b/content/contact/frens.gif differ diff --git a/content/contact/index.md b/content/contact/index.md new file mode 100644 index 0000000..cce8dfb --- /dev/null +++ b/content/contact/index.md @@ -0,0 +1,32 @@ ++++ +title = 'Contact Me' +draft = false ++++ + +![frens!](frens.gif) + +On the internet, I usually go as ``ejv2`` (as you could probably guess), but also ``ejmv2`` and ``ethan_v2``. + +If you are wondering, these are just my initials. + +Please feel free to email me at any time. To get my address, paste the following snippet in to your terminal. It should print my full email address. This filters most spammers and Windows users :) + +```bash +echo "ethan*ejv2-com-au" | tr '*-' '@.' | sed 's/com.au/cc/' +``` + +My GPG key fingerprint is is ``32C6 7135 677E E71F 8BF1 F681 DF88 6452 F0AD D93A``. Test verifying [this message](https://gist.githubusercontent.com/ejv2/b1e860e96233c42a874d82028bb6a584/raw/e1cf6237f50dd61dea1f4f79968e393a59f58bd3/public_key_message_2024.txt). + +If you are lazy download [here](https://ejv2.cc/contact/ethan.gpg), or run: + +```bash +curl "https://ejv2.cc/contact/ethan.gpg" | gpg --import +``` + +I don't use Reddit, Twitter or any other bad platforms (which is basically all of them). + +Although I do have some old social media accounts, they will pretty much all be inactive. The only service I regularly use is Steam, so feel free to add me on there or send me a message. + +![birth of steam](birth-of-steam.jpg) + +In any case, I appreciate you getting in touch! diff --git a/content/credits.md b/content/credits.md new file mode 100644 index 0000000..3a5e5fd --- /dev/null +++ b/content/credits.md @@ -0,0 +1,8 @@ ++++ +title = 'Site Credits' +draft = false ++++ + +This site is powered by [hugo](https://gohugo.io) with a modified version of the [risotto](https://github.com/joeroe/risotto) theme. + +Thanks to [Luke Smith](https://lukesmith.xyz) for some ideas, as well as all the contributors to . diff --git a/content/post/_index.md b/content/post/_index.md new file mode 100644 index 0000000..be2a3b1 --- /dev/null +++ b/content/post/_index.md @@ -0,0 +1,8 @@ ++++ +aliases = ["posts", "articles", "blog", "showcase", "docs"] +title = "Blog" +author = "Ethan Marshall" +tags = ["index"] ++++ + +This is a collection of my personal blog posts. diff --git a/content/post/hello-world/index.md b/content/post/hello-world/index.md new file mode 100644 index 0000000..8e98bd3 --- /dev/null +++ b/content/post/hello-world/index.md @@ -0,0 +1,23 @@ ++++ +title = 'Hello World' +date = 2024-08-01T04:21:56+01:00 +author = 'Ethan Marshall' +draft = true ++++ + +Hello, world! This is my first testing post to see if this system will work. Nothing to see here! + + +**But,** whilst I'm here, I might as well do some describing of what this site is and where I will be taking it. Exciting stuff... + +This site came about as a result of a complete re-design from the ground up of my website. My previous website was hosted under a different domain which now redirects here. It was powered entirely by WordPress with a metric tonne of plugins on the most feeble server known to man. This basically resulted in a very slow site with quite limited customization. + +I decided to start again from scratch to give myself a bit more wiggle room. This is the result. + +As this site evolves, it is likely that many things will change and break so get ready for that, I guess. I would suppose that not enough people read this anyway for any link rot or other poor administration to have sever effects. + +In any case, hopefully this is the first of many good posts to come and I will keep them coming. + +This is Ethan (ejv2) - signing off. + +![signing off](signing-off.gif) diff --git a/content/post/hello-world/signing-off.gif b/content/post/hello-world/signing-off.gif new file mode 100644 index 0000000..4a50a70 Binary files /dev/null and b/content/post/hello-world/signing-off.gif differ diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..429e881 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,53 @@ +baseURL = 'https://ejv2.cc/' +languageCode = 'en-gb' +title = "ejv2" +theme = 'risotto' +copyright = 'Copyright (C) 2024 - Ethan Marshall' + +sectionPagesMenu = "main" + +[params] +noindex = false + +[params.theme] +palette = "gruvbox-dark" + +[params.about] +title = "Ethan Marshall" +description = "A generic computer programmer. I like C, Go and math." + +[[params.socialLinks]] +icon = "fa-brands fa-github" +title = "GitHub" +url = "https://github.com/ejv2" + +[[params.socialLinks]] +icon = "fa-brands fa-steam" +title = "Steam" +url = "https://steamcommunity.com/id/ejmv2" + +[[params.socialLinks]] +icon = "fa-solid fa-envelope" +title = "Email" +url = "/contact" + +[[params.socialLinks]] +icon = "fa-solid fa-rss" +title = "RSS" +url = "/blog/index.xml" + +[menu] + [[menu.main]] + identifier = "contact" + name = "Contact" + url = "/contact/" + weight = 10 + +[markup] + + # Table of contents + # Add toc = true to content front matter to enable + [markup.tableOfContents] + startLevel = 2 + endLevel = 3 + ordered = true diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..d450e46 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/img/me.jpg b/static/img/me.jpg new file mode 100644 index 0000000..178a2bc Binary files /dev/null and b/static/img/me.jpg differ diff --git a/static/img/setup.jpg b/static/img/setup.jpg new file mode 100644 index 0000000..582bddc Binary files /dev/null and b/static/img/setup.jpg differ diff --git a/themes/dead-simple/.gitignore b/themes/dead-simple/.gitignore new file mode 100644 index 0000000..0e5b974 --- /dev/null +++ b/themes/dead-simple/.gitignore @@ -0,0 +1,19 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +/exampleSite/public +/exampleSite/resources +/exampleSite/.hugo_build.lock diff --git a/themes/dead-simple/LICENSE b/themes/dead-simple/LICENSE new file mode 100644 index 0000000..7d26f68 --- /dev/null +++ b/themes/dead-simple/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Gleb Buzin + +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/dead-simple/README.md b/themes/dead-simple/README.md new file mode 100644 index 0000000..9718612 --- /dev/null +++ b/themes/dead-simple/README.md @@ -0,0 +1,29 @@ +# Hugo Dead Simple + +Simple hugo theme designed to be dead easy on the reader. + +General idea is to stay off of enshittifying trend: no icons, less whitespace, less colors, links are blue, etc... + + + +## Features + +- Auto light and dark themes +- Fast without bullshit - minified, minimal vanilla css, images are lazy-loaded, system fonts, no CDNs, functional without js if Katex is not used +- Site-wide search +- Keyboard-friendly: `h` to home, `t` to tags, `i` to search, `Tab` to navigate posts and search +- Dynamic wiki-style table of contents +- Katex math (inline and block) +- Info boxes +- Attachments +- Info boxes +- Columns / Tabs +- Copy buttons on code blocks +- Mobile-friendly + +[Example site, overview of features and configuration.](https://hugo-dead-simple.netlify.app/post/hugo-dead-simple/) \ +[Example site repo.](https://github.com/barklan/hugo-dead-simple-example) + +## TODO + +- https://gohugo.io/content-management/mathematics/ (recent hugo) diff --git a/themes/dead-simple/assets/css/code.css b/themes/dead-simple/assets/css/code.css new file mode 100644 index 0000000..4a119e7 --- /dev/null +++ b/themes/dead-simple/assets/css/code.css @@ -0,0 +1,125 @@ +@keyframes code-fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +.highlight div, +pre { + background-color: var(--code-background); + padding: 0.7em; + overflow-x: auto; + margin: 0px; + border: 1px solid var(--code-border); + border-radius: 3px 0 3px 3px; + line-height: 1.3; +} + +.highlight { + margin: 0.8em 0; +} + +.highlight div pre { + border: 0px; + padding: 0px 5px; + margin: 0px; + box-shadow: 0px 0px 0px; +} + +code { + font-family: 'Source Code Pro', monospace; + color: var(--code); + + /* For Iosevka */ + /* font-stretch: expanded; */ + font-stretch: normal; + + background: var(--code-background); + border-radius: 5%; + padding: 1px 4px; + border: 1px solid var(--code-border); + font-size: 0.920em; +} + +pre code { + font-size: 0.900em; + font-stretch: normal; + + border: none; + background: none; + padding: 0; + margin: 0px; + tab-size: 4; +} + +@media screen and (max-width: 760px) { + pre code { + font-size: 80%; + } +} + +.fs95 { + font-size: 90%; +} + +.fs90 { + font-size: 90%; +} + +.fs85 { + font-size: 85%; +} + +.fs80 { + font-size: 80%; +} + +.fs75 { + font-size: 75%; +} + +.fs70 { + font-size: 75%; +} + +.fs50 { + font-size: 50%; +} + +/* Line numbers in code blocks. */ +.ln { + user-select: none; + margin-right: 14px; + color: rgb(150, 150, 150); +} + +.hl { + background-color: var(--code-hl); + outline-style: solid; + outline-color: var(--code-hl); + outline-width: 0.5px; +} + +/* Copy code button */ +.copy-code-button { + display: none; +} + +@media screen and (min-width: 760px) { + .copy-code-button { + animation-duration: 1s; + animation-name: code-fade-in; + margin-top: -22px; + float: right; + display: block; + background-color: var(--code-background); + border-color: var(--code-border); + border-style: solid; + border-width: 1px 1px 0 1px; + border-radius: 2px 2px 0 0; + color: var(--text-dim); + } +} diff --git a/themes/dead-simple/assets/css/images.css b/themes/dead-simple/assets/css/images.css new file mode 100644 index 0000000..17b828f --- /dev/null +++ b/themes/dead-simple/assets/css/images.css @@ -0,0 +1,85 @@ +@keyframes images { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +img { + max-height: 70vh; + margin: 0.8em 0; + animation-duration: 1s; + animation-name: images; +} + +.imgp { + margin: auto; + text-align: center; +} + +figure { + margin: auto; + text-align: center; +} + +.imgp img, +figure img +{ + border-radius: 4px; +} + +figcaption { + color: var(--text-dim); + font-size: 0.96rem; + text-align: center; +} + +figcaption h4 { + margin-top: 0px; + font-weight: normal; +} + +img, +iframe, +video { + max-width: 100%; +} + +/* Image gallery. */ +.image-gallery, .image-gallery-img { + list-style-type: none; + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 10px; + padding-left: 0; +} + +.image-gallery { + margin: 0 0 1.2rem 0; +} + +.image-gallery-img { + margin: 0 0 2.6rem 0; +} + +.image-gallery > li, .image-gallery-img > li { + flex-basis: 440px; +} + +.image-gallery li img, +.image-gallery-img li img +{ + object-fit: cover; + width: 100%; + height: 100%; + + border-radius: 4px; + vertical-align: middle; +} + +.three-image-gallery > li { + flex-basis: 290px; +} diff --git a/themes/dead-simple/assets/css/main.css b/themes/dead-simple/assets/css/main.css new file mode 100644 index 0000000..61891e9 --- /dev/null +++ b/themes/dead-simple/assets/css/main.css @@ -0,0 +1,216 @@ +:root { + --complimentary: #815205; + --text: black; + --code: black; + --text-dim: #444; + --link: #3366cc; + --link-visited: #795cb2; + --code-background: #f3f5f7; + --code-border: #eaecf0; + --code-border: transparent; + --code-hl: #e6e6e6; + --border-general: #cccfd4; + --table-th: #e1e5ea; + --table-tr: #edeff2; + --toc-background: #f9f9f9; + --toc-border: #aaa; +} + +@media (prefers-color-scheme: dark) { + :root { + --complimentary: #815205; + --text: #d8d8d8; + --code: #cbcbcb; + --text-dim: #a7a7a7; + /* --link: #8cb4ff; */ + --link: #88a9e9; + --link-visited: #a390ca; + --code-background: #272727; + --code-border: transparent; + --code-hl: #5a5a5a; + --border-general: #495057; + --table-th: #414141; + --table-tr: #343434; + --toc-background: #343434; + --toc-border: #495057; + } +} + +#gitinfo-date { + color: var(--text-dim); + filter: opacity(40%); + font-style: italic; + font-size: 0.9em; + white-space: nowrap; +} + +@media screen and (min-width: 760px) { + #gitinfo-date { + margin-left: 30px; + } +} + +/* TODO: add iframe margins */ + +/* HTML & BODY */ +html { + color: var(--text); + /* set in header*/ + /* background-color: var(--background); */ + scroll-behavior: smooth; +} + +body { + margin: auto; + padding: 0em 1em 2em 1em; + font-family: + "Inter", + -apple-system, + BlinkMacSystemFont, + "Roboto", + Helvetica, + sans-serif; + line-height: 1.54; + text-align: justify; +} + +@media screen and (min-width: 760px) { + body { + margin: auto; + max-width: 68vw; + } +} + +@media screen and (min-width: 1150px) { + body { + margin: auto; + max-width: 62vw; + } +} + +main { + hyphens: none; +} + +/* BASIC HTML ELEMENTS */ +p { + margin: 1em 0; +} + +h1 { + font-weight: normal; + margin-bottom: 0px; + font-size: 2em; + margin-top: 0; +} + +h2 { + border-bottom: 1px solid; + border-color: var(--text-dim); + margin-bottom: 0.5em; + margin-top: 1.2em; + font-weight: normal; + font-size: 1.65em; +} + +h3 { + font-size: 1.25em; + font-weight: 600; + margin-bottom: 0.7em; + padding-bottom: 0; +} + +h4 { + font-size: 1.1em; + margin-bottom: 0; + padding-bottom: 0; + font-style: oblique; + font-weight: normal; +} + +a { + text-decoration: none; + color: var(--link); +} + +a:hover { + text-decoration: underline; +} + +a:visited { + color: var(--link-visited); +} + +hr { + border-style: dashed; + color: var(--text-dim); +} + +blockquote { + border-left: 0.3rem solid var(--complimentary); + font-style: oblique; + margin: 1.6rem 0; + padding: 0 1.4rem 0 1rem; + line-height: 1.6; +} + +blockquote p { + margin: 0; +} + +details { + padding: 0 0 0 14px; + border-left: 2px dashed var(--border-general); +} + +mark { + padding: 0 2px 0 2px; +} + +ul { + padding-left: 2rem; +} + +/* NOTE: fix for Inter font. */ +strong { + font-weight: 600; +} + +/* NOTE: fix for Inter font. */ +th { + font-weight: 500; +} + +/* MISC */ +.section-title { + border: 0; +} + +.post-list { + color: var(--complimentary); + padding-left: 1em; +} + +@media screen and (min-width: 760px) { + .post-list { + max-width: 60vw; + } +} + +.bold-post-in-list { + font-weight: 600; +} + +@media screen and (max-width: 760px) { + .katex { + font-size: 1.05em !important; + } +} + +.footnotes { + margin-top: 60px; +} + +.terms { + padding-left: 16px; +} diff --git a/themes/dead-simple/assets/css/menu.css b/themes/dead-simple/assets/css/menu.css new file mode 100644 index 0000000..3581f74 --- /dev/null +++ b/themes/dead-simple/assets/css/menu.css @@ -0,0 +1,25 @@ +.menu { + padding: 0px 4px 0px 0px; + z-index: 9999; + text-align: left; + margin-bottom: 10px; +} + +.menu li { + display: inline-block; +} + +.menu a { + margin-right: 1.1em; + text-decoration: none; + border-radius: 5px; +} + +.menu a:visited { + color: var(--link); +} + +.menu a:hover { + text-decoration: underline; +} + diff --git a/themes/dead-simple/assets/css/misc.css b/themes/dead-simple/assets/css/misc.css new file mode 100644 index 0000000..a392622 --- /dev/null +++ b/themes/dead-simple/assets/css/misc.css @@ -0,0 +1,73 @@ +/* ATTACHMENTS */ +.attachments-files { + display: block; + font-size: 1rem; + margin: 0; +} + +.attachment-size { + display: inline-block; + color: var(--text-dim); +} + +.attachments ul { + margin-top: 4px; +} + +.attachments label { + font-weight: 300; + margin: 0; +} + +/* COLUMNS */ +.md-columns { + display: flex; + flex-wrap: wrap; + margin-left: -1rem; + margin-right: -1rem; +} + +.md-columns > div { + flex: 1 1; + margin: 1rem 0; + min-width: 100px; + max-width: 100%; + padding: 0 1rem; +} + +.md-columns .markdown-inner { + margin-top: 0; + margin-bottom: 0; +} + +/* TABS */ +.md-tabs { + margin-top: 1rem; + margin-bottom: 1rem; + border: 1px solid var(--border-general); + border-radius: 3px; + overflow: hidden; + display: flex; + flex-wrap: wrap; +} +.md-tabs label { + display: inline-block; + padding: 0.6rem 0.2rem 0.3rem 0.2rem; + border-bottom: 1px transparent; + cursor: pointer; +} +.md-tabs .md-tabs-content { + order: 999; + width: 100%; + border-top: 1px solid var(--border-general); + padding: 0.5rem 1rem 1rem 1rem; + display: none; +} + +.md-tabs input[type="radio"] { + margin-left: 1.1rem; +} + +.md-tabs input[type="radio"]:checked + label + .md-tabs-content { + display: block; +} diff --git a/themes/dead-simple/assets/css/post_meta.css b/themes/dead-simple/assets/css/post_meta.css new file mode 100644 index 0000000..632b4a0 --- /dev/null +++ b/themes/dead-simple/assets/css/post_meta.css @@ -0,0 +1,50 @@ +/* POST META */ +#single-header { + /* border-bottom: 2px solid var(--complimentary); */ + padding: 0px 8px 4px 0; + margin-bottom: 20px; + margin-top: 10px; +} + +.date { + color: var(--text-dim); + padding-top: 0.1em; + font-size: 90%; +} + +#single-meta { + margin-top: 0; + margin-bottom: 0px; + padding-top: 0px; + font-size: 0.9em; +} + +#single-meta a:visited { + color: var(--link); +} + +#subtitle { + font-family: "Linux Libertine", "Georgia", "Times", serif; + margin-top: -8px; + margin-bottom: 0.3em; + font-size: 1.4em; + color: var(--text-dim); +} + +.datesub { + font-weight: normal; + color: var(--text-dim); +} + +#tags { + font-weight: normal; + color: var(--text-dim); +} + +#tags a { + filter: brightness(80%); +} + +#tags a:visited { + filter: brightness(80%); +} diff --git a/themes/dead-simple/assets/css/search.css b/themes/dead-simple/assets/css/search.css new file mode 100644 index 0000000..e74666e --- /dev/null +++ b/themes/dead-simple/assets/css/search.css @@ -0,0 +1,28 @@ +/* SEARCH */ +#search-input { + padding: 6px; + width: 72%; +} + +@media screen and (min-width: 900px) { + #search-input { + width: 42%; + } +} + +@media screen and (min-width: 1150px) { + #search-input { + width: 33%; + } +} + +input { + background-color: var(--background); + color: var(--text); + border-color: var(--border-general); + border-radius: 4px; +} + +#results { + padding-left: 16px; +} diff --git a/themes/dead-simple/assets/css/tables.css b/themes/dead-simple/assets/css/tables.css new file mode 100644 index 0000000..67aa3ff --- /dev/null +++ b/themes/dead-simple/assets/css/tables.css @@ -0,0 +1,33 @@ +/* TABLES */ +table { + border-collapse: collapse; + display: block; + overflow: auto; +} + +@media screen and (min-width: 760px) { + table { + display: table !important; + } +} + +table thead th { + border: 1px solid var(--border-general); +} + +th, +td { + padding: 4px 8px; + border: 1px solid rgb(200, 200, 200); + border: 1px solid var(--border-general); +} + +th { + background-color: var(--table-th); +} + +tr { + background-color: var(--table-tr); +} + + diff --git a/themes/dead-simple/assets/css/toc.css b/themes/dead-simple/assets/css/toc.css new file mode 100644 index 0000000..bac6a3c --- /dev/null +++ b/themes/dead-simple/assets/css/toc.css @@ -0,0 +1,98 @@ +/* TOC */ +.toc a { + color: var(--text-dim); +} + +.toc a:visited { + color: var(--text-dim); +} + +@media screen and (min-width: 1150px) { + #tableOfContentContainer { + position: fixed; + left: 20px; + top: 46px; + max-width: 15vw; + width: 15vw; + } + + #TableOfContents { + opacity: 0.6; + transition-duration: 1s; + } + + #TableOfContents:hover { + opacity: 1; + } +} + +.toc { + animation-duration: 1s; + background: var(--toc-background) none repeat scroll 0 0; + border: 1px solid var(--toc-border); + display: table; + font-size: 95%; + margin-bottom: 1em; + padding: 0.4em 1.5em 0.4em 0.2em; + width: auto; + margin-top: auto; +} + +@media screen and (min-width: 1150px) { + .toc { + padding: 0; + background-color: transparent; + font-size: 80%; + line-height: 1.3; + border-right: 0px; + border-top: 0px; + border-bottom: 0px; + border-left: 0px; + } + + #TableOfContents { + max-height: 85vh; + overflow-y: auto; + } + + #TableOfContents li { + max-width: 13vw; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } +} + +/* !important was here for some reason. */ +.toc li, +.toc ul, +.toc ul li { + list-style: outside none none; +} + +.toc ul li a { + transition-duration: 50ms; +} + +.active-toc { + font-weight: bold; + transition-duration: 50ms; +} + +/* h2 in toc has 20px padding and h1 should be the title and shouldn't be present in toc */ +@media screen and (min-width: 1150px) { + #TableOfContents { + margin-left: -32px; + } +} + +#TableOfContents ul { + padding-left: 20px; +} + +.toc h3 { + margin-left: 20px; + margin-top: 0.5em; + margin-bottom: 0.5em; + font-weight: normal; +} diff --git a/themes/dead-simple/go.mod b/themes/dead-simple/go.mod new file mode 100644 index 0000000..2767c19 --- /dev/null +++ b/themes/dead-simple/go.mod @@ -0,0 +1,3 @@ +module github.com/barklan/hugo-dead-simple + +go 1.18 diff --git a/themes/dead-simple/images/screenshot.png b/themes/dead-simple/images/screenshot.png new file mode 100644 index 0000000..843db6f Binary files /dev/null and b/themes/dead-simple/images/screenshot.png differ diff --git a/themes/dead-simple/images/tn.png b/themes/dead-simple/images/tn.png new file mode 100644 index 0000000..112f418 Binary files /dev/null and b/themes/dead-simple/images/tn.png differ diff --git a/themes/dead-simple/layouts/404.html b/themes/dead-simple/layouts/404.html new file mode 100644 index 0000000..c2e4e40 --- /dev/null +++ b/themes/dead-simple/layouts/404.html @@ -0,0 +1,5 @@ +{{ partial "header.html" . }} + +404 NOT FOUND + +{{ partial "footer.html" . }} diff --git a/themes/dead-simple/layouts/_default/_markup/render-image.html b/themes/dead-simple/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..9925e1b --- /dev/null +++ b/themes/dead-simple/layouts/_default/_markup/render-image.html @@ -0,0 +1,3 @@ +

+ {{ .Text }} +

diff --git a/themes/dead-simple/layouts/_default/_markup/render-link.html b/themes/dead-simple/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..c7cc5a3 --- /dev/null +++ b/themes/dead-simple/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }} diff --git a/themes/dead-simple/layouts/_default/index.json b/themes/dead-simple/layouts/_default/index.json new file mode 100644 index 0000000..957b20b --- /dev/null +++ b/themes/dead-simple/layouts/_default/index.json @@ -0,0 +1,15 @@ +{{/* layouts/_default/index.json */}} +{{- $index := slice -}} +{{- range where .Site.RegularPages.ByDate.Reverse "Type" "not in" (slice "page" "json") -}} + {{ if .Params.dateCreated }} + {{ $.Scratch.Set "date" (.Params.dateCreated) }} + {{ else }} + {{- if isset site.Params "date_format" -}} + {{- $.Scratch.Set "date" (.Date.Format site.Params.date_format) -}} + {{- else -}} + {{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}} + {{- end -}} + {{ end }} + {{- $index = $index | append (dict "title" ( .Title | plainify ) "permalink" .Permalink "contents" .Plain "section" (i18n (.Section | title)) "tags" (apply .Params.tags "i18n" "." ) "categories" (apply .Params.categories "i18n" "." ) "summary" (.Params.summary | markdownify | htmlUnescape | plainify) "date" ($.Scratch.Get "date") ) -}} +{{- end -}} +{{- $index | jsonify -}} diff --git a/themes/dead-simple/layouts/_default/list.html b/themes/dead-simple/layouts/_default/list.html new file mode 100644 index 0000000..63a3784 --- /dev/null +++ b/themes/dead-simple/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ partial "header.html" . }} + +
{{ .Content }}
+ +{{ if .IsHome }} + + {{ partial "search-form.html" . }} + + + {{ range .Sections }} +

{{ .CurrentSection.Title }}

+ {{ .CurrentSection.Content }} + {{ partial "post_list.html" . }} + {{ end }} +{{ else }} +

{{ .CurrentSection.Title }}

+ {{ partial "post_list.html" . }} +{{ end }} + +{{ partial "footer.html" . }} diff --git a/themes/dead-simple/layouts/_default/single.html b/themes/dead-simple/layouts/_default/single.html new file mode 100644 index 0000000..37425ba --- /dev/null +++ b/themes/dead-simple/layouts/_default/single.html @@ -0,0 +1,43 @@ +{{ partial "header.html" . }} + + +{{ if not .Params.notitle }} +
+

+ {{ .Title | markdownify }} +

+
+ {{ if .Params.subtitle }} +

{{ .Params.subtitle }}

+ {{ end }} + {{ if .Params.date }} + {{ .Date.Format "Jan 2, 2006" }}{{ if .GitInfo }}    m. {{ + .Lastmod.Format "Jan 2, 2006" }}{{ end }} + {{ end }} {{ partial "tags.html" .}} +
+
+{{ else }} +
+{{ end }} + +{{ if .Params.toc }} + +{{ end }} + + +
{{ .Content }}
+ +{{ if .Params.Next }} +
+
+ {{ with .PrevInSection }} + Next: {{ .Title }} + {{ end }} +{{ end }} + +{{ if .Params.math }} + {{ partial "math.html" . }} +{{ end }} +{{ partial "footer.html" . }} diff --git a/themes/dead-simple/layouts/_default/taxonomy.html b/themes/dead-simple/layouts/_default/taxonomy.html new file mode 100644 index 0000000..7b61fda --- /dev/null +++ b/themes/dead-simple/layouts/_default/taxonomy.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +

{{ .Title }}

+ + + +{{ partial "footer.html" . }} diff --git a/themes/dead-simple/layouts/_default/terms.html b/themes/dead-simple/layouts/_default/terms.html new file mode 100644 index 0000000..08024da --- /dev/null +++ b/themes/dead-simple/layouts/_default/terms.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + +

{{ .Title }}

+ + + +{{ partial "footer.html" . }} diff --git a/themes/dead-simple/layouts/partials/footer.html b/themes/dead-simple/layouts/partials/footer.html new file mode 100644 index 0000000..9c157ee --- /dev/null +++ b/themes/dead-simple/layouts/partials/footer.html @@ -0,0 +1,9 @@ +
+ +
+{{ partial "footer_scripts.html" . }} +{{ partial "search-index.html" . }} +
+ + + diff --git a/themes/dead-simple/layouts/partials/footer_scripts.html b/themes/dead-simple/layouts/partials/footer_scripts.html new file mode 100644 index 0000000..6e367d3 --- /dev/null +++ b/themes/dead-simple/layouts/partials/footer_scripts.html @@ -0,0 +1,127 @@ + + + + + + + diff --git a/themes/dead-simple/layouts/partials/header.html b/themes/dead-simple/layouts/partials/header.html new file mode 100644 index 0000000..07daa9b --- /dev/null +++ b/themes/dead-simple/layouts/partials/header.html @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ if .IsHome }} + {{ .Site.Title }} + {{ else }} + {{ .Title }} | {{ .Site.Title }} + {{ end }} + + + + + {{ $CSS := slice + (resources.Get "css/main.css") + (resources.Get "css/menu.css") + (resources.Get "css/toc.css") + (resources.Get "css/images.css") + (resources.Get "css/post_meta.css") + (resources.Get "css/search.css") + (resources.Get "css/code.css") + (resources.Get "css/tables.css") + (resources.Get "css/misc.css") + | resources.Concat "style.css" | minify | fingerprint }} + + + + + {{ if not .Params.nomenu }} + + {{ end }} diff --git a/themes/dead-simple/layouts/partials/math.html b/themes/dead-simple/layouts/partials/math.html new file mode 100644 index 0000000..ce3fae7 --- /dev/null +++ b/themes/dead-simple/layouts/partials/math.html @@ -0,0 +1,3 @@ + + + diff --git a/themes/dead-simple/layouts/partials/post_list.html b/themes/dead-simple/layouts/partials/post_list.html new file mode 100644 index 0000000..295a957 --- /dev/null +++ b/themes/dead-simple/layouts/partials/post_list.html @@ -0,0 +1,8 @@ + + diff --git a/themes/dead-simple/layouts/partials/post_row.html b/themes/dead-simple/layouts/partials/post_row.html new file mode 100644 index 0000000..4c7a36f --- /dev/null +++ b/themes/dead-simple/layouts/partials/post_row.html @@ -0,0 +1,23 @@ +
  • +{{ if not .CurrentSection.Params.nodate }} +
    + {{ .Date.Format "Jan 2, 2006" }} + {{ if .Params.bold }} + {{ .Page.Title | markdownify }} + {{ else }} + {{ .Page.Title | markdownify }} + {{ end }} +
    +{{ else }} + {{ if .Params.bold }} + {{ .Page.Title | markdownify }} + {{ else }} + {{ .Page.Title | markdownify }} + {{ end }} +{{ end }} +
  • + diff --git a/themes/dead-simple/layouts/partials/search-form.html b/themes/dead-simple/layouts/partials/search-form.html new file mode 100644 index 0000000..5c54737 --- /dev/null +++ b/themes/dead-simple/layouts/partials/search-form.html @@ -0,0 +1,8 @@ + + diff --git a/themes/dead-simple/layouts/partials/search-index.html b/themes/dead-simple/layouts/partials/search-index.html new file mode 100644 index 0000000..4fc165b --- /dev/null +++ b/themes/dead-simple/layouts/partials/search-index.html @@ -0,0 +1,14 @@ + + + diff --git a/themes/dead-simple/layouts/partials/tags.html b/themes/dead-simple/layouts/partials/tags.html new file mode 100644 index 0000000..5309370 --- /dev/null +++ b/themes/dead-simple/layouts/partials/tags.html @@ -0,0 +1,11 @@ +{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }} + +    + {{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s" + $taxonomy $tag) -}} + + #{{ $tag | urlize }} +   + {{- end -}} {{- end -}} + +{{ end }} diff --git a/themes/dead-simple/layouts/shortcodes/attachments.html b/themes/dead-simple/layouts/shortcodes/attachments.html new file mode 100644 index 0000000..0dd500a --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/attachments.html @@ -0,0 +1,24 @@ +
    + +
    + {{- $folderName := default "files" (.Get "folder") -}} + {{- $hasPattern := false -}} + {{- if .Get "pattern" -}}{{- $hasPattern = true -}}{{- end -}} + {{- $folder := path.Join "content" (path.Join .Page.File.Dir $folderName) -}} +
      + {{- range readDir $folder -}} + {{- $include := not $hasPattern -}} + {{- if $hasPattern -}}{{- $include = findRE ($.Get "pattern") .Name -}}{{- end -}} + {{- if $include -}} +
    • + {{- .Name | markdownify -}} + πŸ”— +   +
      ({{- if le .Size 1024 -}}{{- .Size -}} b{{- else -}}{{- div .Size 1024 -}}kb{{- end -}})
      +
    • + {{- end -}} + {{- end -}} +
    +
    +
    + diff --git a/themes/dead-simple/layouts/shortcodes/beauty.html b/themes/dead-simple/layouts/shortcodes/beauty.html new file mode 100644 index 0000000..092ea58 --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/beauty.html @@ -0,0 +1,42 @@ + + + + + + + diff --git a/themes/dead-simple/layouts/shortcodes/box.html b/themes/dead-simple/layouts/shortcodes/box.html new file mode 100644 index 0000000..a2282e5 --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/box.html @@ -0,0 +1,120 @@ +{{/* Source:https://gitlab.com/Roneo/hugo-shortcode-roneo-collection */}} + +{{/* Available box types: warning, info, important, tip */}} +{{- $boxType := .Get 0 | default "info" -}} + +{{/* Workaround markdownify inconsistency for single/multiple paragraphs */}} +{{- $raw := (markdownify .Inner | chomp) -}} +{{- $block := findRE "(?is)^<(?:address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h(?:1|2|3|4|5|6)|header|hgroup|hr|li|main|nav|noscript|ol|output|p|pre|section|table|tfoot|ul|video)\\b" $raw 1 -}} + +{{/* Count how many times we've called this shortcode and load the css if it's the first time */}} +{{- if not ($.Page.Scratch.Get "box_count") -}} + + + + {{/* SVG icons */}} + + + + + + + + + + + + + + + +{{- end -}} + +{{- $.Page.Scratch.Add "box_count" 1 -}} + +
    + + + + {{- if or $block (not $raw) }} + {{ $raw }} + {{ else }} +

    {{ $raw }}

    + {{ end -}} +
    diff --git a/themes/dead-simple/layouts/shortcodes/columns.html b/themes/dead-simple/layouts/shortcodes/columns.html new file mode 100644 index 0000000..536e87e --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/columns.html @@ -0,0 +1,7 @@ +
    +{{ range split .Inner "<--->" }} +{{ printf "
    " | htmlUnescape | safeHTML }} +{{ . | safeHTML }} +{{ printf "
    " | htmlUnescape | safeHTML }} +{{ end }} +
    diff --git a/themes/dead-simple/layouts/shortcodes/tab.html b/themes/dead-simple/layouts/shortcodes/tab.html new file mode 100644 index 0000000..aecc34c --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/tab.html @@ -0,0 +1,18 @@ +{{ if .Parent }} + {{ $name := .Get 0 }} + + {{- if not (.Parent.Scratch.Get "tabs-id") -}} + {{ $id := index (seq 1000 | shuffle) 0 }} + {{ .Parent.Scratch.Add "tabs-id" $id }} + {{- end -}} + + {{ $group := printf "tabs-%d" (.Parent.Scratch.Get "tabs-id") }} + + {{ if not (.Parent.Scratch.Get $group) }} + {{ .Parent.Scratch.Set $group slice }} + {{ end }} + + {{ .Parent.Scratch.Add $group (dict "Name" $name "Content" .Inner) }} +{{ else }} + {{ errorf "%q: 'tab' shortcode must be inside 'tabs' shortcode" .Page.Path }} +{{ end}} diff --git a/themes/dead-simple/layouts/shortcodes/tabs.html b/themes/dead-simple/layouts/shortcodes/tabs.html new file mode 100644 index 0000000..80cd05a --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/tabs.html @@ -0,0 +1,18 @@ +{{ if .Inner }}{{ end }} + +{{ $id := .Scratch.Get "tabs-id" }} +{{ $group := printf "tabs-%d" $id }} + +
    +{{- range $index, $tab := .Scratch.Get $group -}} + {{ $individualTabId := printf "%s-%d" $group $index }} + + +
    + {{- .Content | markdownify | safeHTML -}} +
    +{{- end -}} +
    +{{ .Scratch.Delete "tabs-id" }} diff --git a/themes/dead-simple/layouts/shortcodes/threeimg.html b/themes/dead-simple/layouts/shortcodes/threeimg.html new file mode 100644 index 0000000..32529c6 --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/threeimg.html @@ -0,0 +1,13 @@ + diff --git a/themes/dead-simple/layouts/shortcodes/twoimg.html b/themes/dead-simple/layouts/shortcodes/twoimg.html new file mode 100644 index 0000000..2d863aa --- /dev/null +++ b/themes/dead-simple/layouts/shortcodes/twoimg.html @@ -0,0 +1,10 @@ + diff --git a/themes/dead-simple/static/js/lunr.js b/themes/dead-simple/static/js/lunr.js new file mode 100644 index 0000000..286b389 --- /dev/null +++ b/themes/dead-simple/static/js/lunr.js @@ -0,0 +1 @@ +!function(){var e,t,r,i,n,s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,b,P,T,O,I,R,F=function(e){var t=new F.Builder;return t.pipeline.add(F.trimmer,F.stopWordFilter,F.stemmer),t.searchPipeline.add(F.stemmer),e.call(t,t),t.build()};F.version="2.3.9",F.utils={},F.utils.warn=(e=this,function(t){e.console&&console.warn&&console.warn(t)}),F.utils.asString=function(e){return null==e?"":e.toString()},F.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i0){var u=F.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(new F.Token(r.slice(o,s),u))}o=s+1}}return n},F.tokenizer.separator=/[\s\-]+/,F.Pipeline=function(){this._stack=[]},F.Pipeline.registeredFunctions=Object.create(null),F.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&F.utils.warn("Overwriting existing registered function: "+t),e.label=t,F.Pipeline.registeredFunctions[e.label]=e},F.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||F.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},F.Pipeline.load=function(e){var t=new F.Pipeline;return e.forEach((function(e){var r=F.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},F.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){F.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},F.Pipeline.prototype.after=function(e,t){F.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},F.Pipeline.prototype.before=function(e,t){F.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},F.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},F.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r1&&(se&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e||s>e?2*n:sa?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},F.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},F.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t0){var s,o=n.str.charAt(0);o in n.node.edges?s=n.node.edges[o]:(s=new F.TokenSet,n.node.edges[o]=s),1==n.str.length&&(s.final=!0),i.push({node:s,editsRemaining:n.editsRemaining,str:n.str.slice(1)})}if(0!=n.editsRemaining){if("*"in n.node.edges)var a=n.node.edges["*"];else{a=new F.TokenSet;n.node.edges["*"]=a}if(0==n.str.length&&(a.final=!0),i.push({node:a,editsRemaining:n.editsRemaining-1,str:n.str}),n.str.length>1&&i.push({node:n.node,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)}),1==n.str.length&&(n.node.final=!0),n.str.length>=1){if("*"in n.node.edges)var u=n.node.edges["*"];else{u=new F.TokenSet;n.node.edges["*"]=u}1==n.str.length&&(u.final=!0),i.push({node:u,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)})}if(n.str.length>1){var l,c=n.str.charAt(0),h=n.str.charAt(1);h in n.node.edges?l=n.node.edges[h]:(l=new F.TokenSet,n.node.edges[h]=l),1==n.str.length&&(l.final=!0),i.push({node:l,editsRemaining:n.editsRemaining-1,str:c+n.str.slice(2)})}}}return r},F.TokenSet.fromString=function(e){for(var t=new F.TokenSet,r=t,i=0,n=e.length;i=e;t--){var r=this.uncheckedNodes[t],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}},F.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},F.Index.prototype.search=function(e){return this.query((function(t){new F.QueryParser(e,t).parse()}))},F.Index.prototype.query=function(e){for(var t=new F.Query(this.fields),r=Object.create(null),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a1?1:e},F.Builder.prototype.k1=function(e){this._k1=e},F.Builder.prototype.add=function(e,t){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var n=0;n=this.length)return F.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},F.QueryLexer.prototype.width=function(){return this.pos-this.start},F.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},F.QueryLexer.prototype.backup=function(){this.pos-=1},F.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=F.QueryLexer.EOS&&this.backup()},F.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(F.QueryLexer.TERM)),e.ignore(),e.more())return F.QueryLexer.lexText},F.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(F.QueryLexer.EDIT_DISTANCE),F.QueryLexer.lexText},F.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(F.QueryLexer.BOOST),F.QueryLexer.lexText},F.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(F.QueryLexer.TERM)},F.QueryLexer.termSeparator=F.tokenizer.separator,F.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==F.QueryLexer.EOS)return F.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return F.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(F.QueryLexer.TERM),F.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(F.QueryLexer.TERM),F.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(F.QueryLexer.PRESENCE),F.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(F.QueryLexer.PRESENCE),F.QueryLexer.lexText;if(t.match(F.QueryLexer.termSeparator))return F.QueryLexer.lexTerm}else e.escapeCharacter()}},F.QueryParser=function(e,t){this.lexer=new F.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},F.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=F.QueryParser.parseClause;e;)e=e(this);return this.query},F.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},F.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},F.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},F.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case F.QueryLexer.PRESENCE:return F.QueryParser.parsePresence;case F.QueryLexer.FIELD:return F.QueryParser.parseField;case F.QueryLexer.TERM:return F.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new F.QueryParseError(r,t.start,t.end)}},F.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=F.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=F.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new F.QueryParseError(r,t.start,t.end)}var i=e.peekLexeme();if(null==i){r="expecting term or field, found nothing";throw new F.QueryParseError(r,t.start,t.end)}switch(i.type){case F.QueryLexer.FIELD:return F.QueryParser.parseField;case F.QueryLexer.TERM:return F.QueryParser.parseTerm;default:r="expecting term or field, found '"+i.type+"'";throw new F.QueryParseError(r,i.start,i.end)}}},F.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+r;throw new F.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var n=e.peekLexeme();if(null==n){i="expecting term, found nothing";throw new F.QueryParseError(i,t.start,t.end)}if(n.type===F.QueryLexer.TERM)return F.QueryParser.parseTerm;i="expecting term, found '"+n.type+"'";throw new F.QueryParseError(i,n.start,n.end)}},F.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new F.QueryParseError(i,r.start,r.end)}else e.nextClause()}},F.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new F.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new F.QueryParseError(i,n.start,n.end)}else e.nextClause()}},F.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="boost must be numeric";throw new F.QueryParseError(i,t.start,t.end)}e.currentClause.boost=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new F.QueryParseError(i,n.start,n.end)}else e.nextClause()}},I=this,R=function(){return F},"function"==typeof define&&define.amd?define(R):"object"==typeof exports?module.exports=R():I.lunr=R()}(); diff --git a/themes/dead-simple/static/js/search.js b/themes/dead-simple/static/js/search.js new file mode 100644 index 0000000..b802865 --- /dev/null +++ b/themes/dead-simple/static/js/search.js @@ -0,0 +1,51 @@ +function displayResults (results, store) { + const searchResults = document.getElementById('results') + if (results.length) { + let resultList = '' + // Iterate and build result list elements + for (const n in results) { + const item = store[results[n].ref] + resultList += '
  • ' + item.title + '

    ' + resultList += '

    ' + item.content.substring(0, 150) + '...

  • ' + } + searchResults.innerHTML = resultList + } else { + searchResults.innerHTML = 'No results found.' + } +} + +// Get the query parameter(s) +const params = new URLSearchParams(window.location.search) +const query = params.get('query') + +// Perform a search if there is a query +if (query) { + // Retain the search input in the form when displaying results + document.getElementById('search-input').setAttribute('value', query) + + const idx = lunr(function () { + this.ref('id') + this.field('title', { + boost: 15 + }) + this.field('tags') + this.field('content', { + boost: 10 + }) + + for (const key in window.store) { + this.add({ + id: key, + title: window.store[key].title, + tags: window.store[key].category, + content: window.store[key].content + }) + } + }) + + // Perform the search + const results = idx.search(query) + // Update the list with results + displayResults(results, window.store) +} + diff --git a/themes/dead-simple/theme.toml b/themes/dead-simple/theme.toml new file mode 100644 index 0000000..8b5dab3 --- /dev/null +++ b/themes/dead-simple/theme.toml @@ -0,0 +1,28 @@ +name = "dead-simple" +license = "MIT" +licenselink = "https://github.com/barklan/hugo-dead-simple/blob/main/LICENSE" +description = "Dead simple Hugo theme." +homepage = "https://github.com/barklan/hugo-dead-simple" +tags = [ + "blog", + "company", + "documentation", + "docs", + "minimal", + "responsive", + "light", + "simple", + "clean" +] +features = [ + "responsive", + "single-column", + "blog", + "table-of-contents", + "favicon" +] +min_version = "0.83.0" + +[author] + name = "Gleb Buzin" + homepage = "https://github.com/barklan" diff --git a/themes/risotto/.github/workflows/hugo-build-exampleSite.yml b/themes/risotto/.github/workflows/hugo-build-exampleSite.yml new file mode 100644 index 0000000..3b25641 --- /dev/null +++ b/themes/risotto/.github/workflows/hugo-build-exampleSite.yml @@ -0,0 +1,36 @@ +name: hugo build + +on: + push: + branches: + - main + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + path: risotto + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.85.0' + # extended: true + + - name: Build + working-directory: ./risotto/exampleSite + run: hugo --minify --themesDir="../.." -t risotto + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./risotto/exampleSite/public + cname: risotto.joeroe.io diff --git a/themes/risotto/.gitignore b/themes/risotto/.gitignore new file mode 100644 index 0000000..2a8645f --- /dev/null +++ b/themes/risotto/.gitignore @@ -0,0 +1 @@ +.hugo_build.lock diff --git a/themes/risotto/LICENSE b/themes/risotto/LICENSE new file mode 100644 index 0000000..5c93805 --- /dev/null +++ b/themes/risotto/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2021 Joe Roe + +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/risotto/NEWS.md b/themes/risotto/NEWS.md new file mode 100644 index 0000000..80ad208 --- /dev/null +++ b/themes/risotto/NEWS.md @@ -0,0 +1,43 @@ +# risotto (development version) + +* **Breaking change:** The config parameter `logo` now expects a character, e.g. an emoji or Unicode symbol. + * For the old behaviour, use `logo_image` +* Fixed invalid HTML in header nav +* Added RSS feed references to head element (#73, after ) + +# risotto 0.4.0 + +* Added descriptions to sidebar of list pages, where defined in the frontmatter of `_index.md` (#55) +* Made sidebar sticky, avoiding overflow for long tables of contents (#51) +* Added convenience classes for colours, e.g. `.base00` and `.bg-base00`. +* Fixed overflow of code blocks with line numbers (#41) +* Fixed invalid HTML in page header (#64) +* Updated FontAwesome to 6.5.1 (#63) + * Please note that future versions will probably not include FontAwesome by default +* Updated Academicons to 1.9.4 (#63) + * Please note that future versions will probably not include Academicons by default + +# risotto 0.3.0 + +* Added support for favicons (#57) + +# risotto 0.2.0 + +* **Breaking change** – new framework for colour palettes: + * Palettes are defined using CSS variables following the [base16](https://github.com/chriskempson/base16) system + * Added 14 new palettes: `apprentice`, `base16-dark`, `base16-light`, `dracula`, `material`, `papercolor-dark`, `papercolor-light`, `solarized-dark`, `solarized-light`, `tender`, `tokyo-night-dark`, `tokyo-night-light`, `windows-95` and `windows-95-light`. + * The default palette is `base16-dark` + * The `mode` parameter is no longer needed + * If you were using one of the old named palettes (`gruvbox-dark` or `gruvbox-light`), the change will be seamless. + * If you were using a custom palette, you will need to redefine it using the new framework. See README for further details. +* Added a table of contents (thanks @dashv, #47) +* Added multilanguage support with a language switcher (thanks @bedefaced) +* Made the site header and nav wrap more efficiently on narrow screens (thanks @m-dev672, #32) +* Added a changelog + +# risotto 0.1.0 + +First named release, including: + +* `gruvbox-dark` and `gruvbox-light` colour palettes +* FontAwesome6 and Academicons icon sets diff --git a/themes/risotto/README.md b/themes/risotto/README.md new file mode 100644 index 0000000..39fd613 --- /dev/null +++ b/themes/risotto/README.md @@ -0,0 +1,108 @@ +# 🍚 risotto + +risotto is a minimalist, responsive [hugo](https://gohugo.io) theme inspired by terminal ricing aesthetics. + +[![Hugo Themes](https://img.shields.io/badge/Hugo_Themes-risotto-blue?logo=hugo)](https://themes.gohugo.io/themes/risotto/) +[![Version](https://img.shields.io/badge/semver-v0.4.0-blue)](https://semver.org) +![hugo build status](https://github.com/joeroe/risotto/actions/workflows/hugo-build-exampleSite.yml/badge.svg) +[![W3C Validation](https://img.shields.io/w3c-validation/html?targetUrl=https%3A%2F%2Frisotto.joeroe.io)](https://validator.nu/?doc=https%3A%2F%2Frisotto.joeroe.io) +![Code size](https://img.shields.io/github/languages/code-size/joeroe/risotto) + +![Screenshot of the risotto theme](https://raw.githubusercontent.com/joeroe/risotto/master/images/screenshot.png) + +## Features + +* Plain, semantic HTML with no Javascript +* Plain CSS – no frameworks, no preprocessors, just simple and easy-to-customise stylesheets +* Uses [CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout) for native responsive behaviour without arbitrary breakpoints +* Comes with [16 built-in colour schemes](#colour-schemes) based on popular terminal themes plus the ability to use custom themes using the [base16 system](https://github.com/monicfenga/base16-styles) + +## Install + +The easiest way to install the theme is to [download the latest release](https://github.com/joeroe/risotto/releases) and extract it to your project's `themes/` directory. +You can also clone this repository into your site's `themes` directory and checkout the latest release: + +```shell +git clone https://github.com/joeroe/risotto themes/risotto && cd themes/risotto +git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1) +``` + +Note that this will not work if your site is itself a git repository. +In that case, you can add the theme as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules), but this is not recommended due to the difficulty of tracking a specific release. + +## Update + +If you installed the theme using `git clone`, pull the repository to get the latest version: + +```shell +cd themes/risotto +git pull +``` + +Otherwise, simply [download the latest release](https://github.com/joeroe/risotto/releases) and extract it to your project's `themes/` directory, replacing the old version. + +## Configure + +To use the theme, add `theme = 'risotto'` to your site's `hugo.toml`, or `theme: risotto` to your `hugo.yaml`. + +See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `hugo.toml` or `hugo.yaml` to configure the theme. + +### Colour schemes + +risotto uses the [base16 framework](https://github.com/chriskempson/base16) to define colour schemes that can be used with the `theme.palette` parameter. +A selection of 16 palettes (10 dark, 6 light) are bundled with the theme: `apprentice`, `base16-dark`, `base16-light`, `dracula`, `gruvbox-dark`, `gruvbox-light`, `material`, `papercolor-dark`, `papercolor-light`, `solarized-dark`, `solarized-light`, `tender`, `tokyo-night-dark`, `tokyo-night-light`, `windows-95` and `windows-95-light`. +The default is `base16-dark`. + + + +The easiest way to use other base16 styles is to place .css file from https://github.com/monicfenga/base16-styles/tree/master/css-variables and place it in your `static/css/palettes` directory. + +Or to define a wholly custom theme, you will need to define the following CSS variables for the following base16 colours (see [base16-dark.css](blob/main/static/css/palettes/base16-dark.css) for an example): + +| Base | Default colour | Used for | Examples | +| ---- | ------------------------------------------ | ------------------- | ------------------------------------ | +| 00 | Dark | Background | Page background | +| 01 | β”‚ | Alt. background | Content background | +| 02 | β”‚ | In-text backgrounds | `
    `, ``, ``, `` |
    +| 03   | β”‚              | Muted text          | `:before` & `:marker` symbols        |
    +| 04   | β”‚              | Alt. foreground     | Aside text                           |
    +| 05   | β”‚              | Foreground          | Content text                         |
    +| 06   | β”‚              |                     |                                      |
    +| 07   | Light          |                     |                                      |
    +| 08   | Red            |                     |                                      |
    +| 09   | Orange         |                     |                                      |
    +| 0A   | Yellow         | Highlights          | Selected text, ``              |
    +| 0B   | Green          | Primary accent      | Logo                                 |
    +| 0C   | Cyan           | Active links        | `a:active`, `a:hover`                |
    +| 0D   | Blue           | Links               | `a:link`, `a:visited`                |
    +| 0E   | Magenta        |                     |                                      |
    +| 0F   | Brown          |                     |                                      |
    +
    +For light mode palettes, the sequence of 00–07 should be reversed (light to dark, not dark to light).
    +Note that not all colours are currently used in the theme.
    +
    +You you use these colours directly in content using the convenience classes `.baseXX` and `.bg-baseXX`.
    +For example:
    +
    +```html
    +Yellow text
    +Text highlighted in green
    +```
    +
    +## Favicon
    +
    +risotto will automatically use favicons placed in the `static/` directory.
    +The following files will be detected and included in your site's `` section:
    +
    +* `favicon.ico`
    +* `favicon-16x16.png`
    +* `favicon-32x32.png`
    +* `apple-touch-icon.png`
    +* `site.webmanifest`
    +
    +You can generate these from an image or emoji using [favicon.io](https://favicon.io/) or a similar service.
    +They must be placed directly under your site's `static/` directory, i.e. not in in a subdirectory or `themes/risotto/static/`.
    +
    +## Acknowledgements
    +
    +The 'cooked rice' emoji used as a favicon for the example site was created by the [Twemoji project](https://twemoji.twitter.com/) and is licensed under [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/).
    diff --git a/themes/risotto/archetypes/default.md b/themes/risotto/archetypes/default.md
    new file mode 100644
    index 0000000..ac36e06
    --- /dev/null
    +++ b/themes/risotto/archetypes/default.md
    @@ -0,0 +1,2 @@
    ++++
    ++++
    diff --git a/themes/risotto/config.toml b/themes/risotto/config.toml
    new file mode 100644
    index 0000000..7c79705
    --- /dev/null
    +++ b/themes/risotto/config.toml
    @@ -0,0 +1,3 @@
    +[module]
    +  [module.hugoVersion]
    +    min = "0.41.0"
    diff --git a/themes/risotto/exampleSite/LICENSE b/themes/risotto/exampleSite/LICENSE
    new file mode 100644
    index 0000000..4527efb
    --- /dev/null
    +++ b/themes/risotto/exampleSite/LICENSE
    @@ -0,0 +1,21 @@
    +The MIT License (MIT)
    +
    +Copyright (c) 2014 Steve Francia
    +
    +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.
    \ No newline at end of file
    diff --git a/themes/risotto/exampleSite/config.toml b/themes/risotto/exampleSite/config.toml
    new file mode 100644
    index 0000000..72c001d
    --- /dev/null
    +++ b/themes/risotto/exampleSite/config.toml
    @@ -0,0 +1,103 @@
    +baseURL = "https://risotto.joeroe.io"
    +theme = "risotto"
    +title = "risotto demo"
    +author = "Joe Roe"
    +copyright = "Β© [Joe Roe](https://joeroe.io) & [risotto contributors](https://github.com/joeroe/risotto/graphs/contributors)."
    +paginate = 3
    +languageCode = "en"
    +DefaultContentLanguage = "en"
    +enableInlineShortcodes = true
    +# prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API.
    +# See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456
    +ignoreErrors = ["error-remote-getjson"]
    +
    +# Automatically add content sections to main menu
    +sectionPagesMenu = "main"
    +
    +[params]
    +noindex = false
    +
    +[params.theme]
    +palette = "base16-dark"
    +
    +# Sidebar: about/bio
    +[params.about]
    +title = "risotto"
    +description = "A [hugo](https://gohugo.io) theme inspired by terminal ricing."
    +# unicode/emoji logo:
    +logo = "🍚"
    +# or use an image:
    +#logo_image = "images/rice.svg"
    +
    +# Sidebar: social links
    +# Available icon sets:
    +# * FontAwesome 6  ('fa-brands', 'fa-normal', or 'fa-solid' for brands)
    +# * Academicons  ('ai ai-')
    +
    +[[params.socialLinks]]
    +icon = "fa-brands fa-github"
    +title = "GitHub"
    +url = "https://github.com/joeroe/risotto"
    +
    +[[params.socialLinks]]
    +icon = "fa-solid fa-envelope"
    +title = "Email"
    +url = "mailto:example@example.com"
    +
    +[[params.socialLinks]]
    +icon = "ai ai-orcid"
    +title = "ORCID"
    +url = "https://orcid.org/0000-0001-2345-6789"
    +
    +[menu]
    +
    +  [[menu.main]]
    +    identifier = "about"
    +    name = "About"
    +    url = "/about/"
    +    weight = 10
    +
    +[taxonomies]
    +category = "categories"
    +tag = "tags"
    +series = "series"
    +
    +# For hugo >= 0.60.0, enable inline HTML
    +[markup.goldmark.renderer]
    +unsafe = true
    +
    +[markup]
    +
    +  # Table of contents
    +  # Add toc = true to content front matter to enable
    +  [markup.tableOfContents]
    +    startLevel = 2
    +    endLevel   = 3
    +    ordered    = true
    +
    +[privacy]
    +
    +  [privacy.vimeo]
    +    disabled = false
    +    simple = true
    +
    +  [privacy.twitter]
    +    disabled = false
    +    enableDNT = true
    +    simple = true
    +
    +  [privacy.instagram]
    +    disabled = false
    +    simple = true
    +
    +  [privacy.youtube]
    +    disabled = false
    +    privacyEnhanced = true
    +
    +[services]
    +
    +  [services.instagram]
    +    disableInlineCSS = true
    +
    +  [services.twitter]
    +    disableInlineCSS = true
    diff --git a/themes/risotto/exampleSite/configTaxo.toml b/themes/risotto/exampleSite/configTaxo.toml
    new file mode 100644
    index 0000000..9220fcf
    --- /dev/null
    +++ b/themes/risotto/exampleSite/configTaxo.toml
    @@ -0,0 +1,27 @@
    +timeout = 30000
    +enableInlineShortcodes = true
    +
    +[taxonomies]
    +category = "categories"
    +tag = "tags"
    +series = "series"
    +
    +[privacy]
    +
    +  [privacy.vimeo]
    +    disabled = false
    +    simple = true
    +
    +  [privacy.twitter]
    +    disabled = false
    +    enableDNT = true
    +    simple = true
    +    disableInlineCSS = true
    +
    +  [privacy.instagram]
    +    disabled = false
    +    simple = true
    +
    +  [privacy.youtube]
    +    disabled = false
    +    privacyEnhanced = true
    diff --git a/themes/risotto/exampleSite/content/_index.md b/themes/risotto/exampleSite/content/_index.md
    new file mode 120000
    index 0000000..fe84005
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/_index.md
    @@ -0,0 +1 @@
    +../../README.md
    \ No newline at end of file
    diff --git a/themes/risotto/exampleSite/content/_index.md.old b/themes/risotto/exampleSite/content/_index.md.old
    new file mode 100644
    index 0000000..ed6494b
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/_index.md.old
    @@ -0,0 +1,3 @@
    ++++
    +author = "Hugo Authors"
    ++++
    diff --git a/themes/risotto/exampleSite/content/about.md b/themes/risotto/exampleSite/content/about.md
    new file mode 100644
    index 0000000..b31bf1d
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/about.md
    @@ -0,0 +1,25 @@
    ++++
    +title = "About"
    +description = "Hugo, the world's fastest framework for building websites"
    +date = "2019-02-28"
    +aliases = ["about-us", "about-hugo", "contact"]
    +author = "Hugo Authors"
    ++++
    +
    +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 extremely 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).
    diff --git a/themes/risotto/exampleSite/content/archives.md b/themes/risotto/exampleSite/content/archives.md
    new file mode 100644
    index 0000000..db16eed
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/archives.md
    @@ -0,0 +1,5 @@
    +---
    +date: 2019-05-28
    +type: section
    +layout: "archives"
    +---
    diff --git a/themes/risotto/exampleSite/content/homepage/about.md b/themes/risotto/exampleSite/content/homepage/about.md
    new file mode 100644
    index 0000000..b5d6981
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/homepage/about.md
    @@ -0,0 +1,7 @@
    +---
    +title: 'Our Difference'
    +button: 'About us'
    +weight: 2
    +---
    +
    +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo.
    diff --git a/themes/risotto/exampleSite/content/homepage/index.md b/themes/risotto/exampleSite/content/homepage/index.md
    new file mode 100644
    index 0000000..ca03031
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/homepage/index.md
    @@ -0,0 +1,3 @@
    +---
    +headless: true
    +---
    diff --git a/themes/risotto/exampleSite/content/homepage/work.md b/themes/risotto/exampleSite/content/homepage/work.md
    new file mode 100644
    index 0000000..f99bc99
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/homepage/work.md
    @@ -0,0 +1,7 @@
    +---
    +title: 'We Help Business Grow'
    +button: 'Our Work'
    +weight: 1
    +---
    +
    +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.
    diff --git a/themes/risotto/exampleSite/content/post/_index.md b/themes/risotto/exampleSite/content/post/_index.md
    new file mode 100644
    index 0000000..e7eb988
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/post/_index.md
    @@ -0,0 +1,7 @@
    ++++
    +aliases = ["posts", "articles", "blog", "showcase", "docs"]
    +title = "Posts"
    +author = "Hugo Authors"
    +description = "Example posts demonstrating hugo's markup features"
    +tags = ["index"]
    ++++
    diff --git a/themes/risotto/exampleSite/content/post/emoji-support.md b/themes/risotto/exampleSite/content/post/emoji-support.md
    new file mode 100644
    index 0000000..dc3589a
    --- /dev/null
    +++ b/themes/risotto/exampleSite/content/post/emoji-support.md
    @@ -0,0 +1,46 @@
    ++++
    +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. 
    +
    +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 site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
    +
    +

    πŸ™ˆ :see_no_evil: πŸ™‰ :hear_no_evil: πŸ™Š :speak_no_evil:

    +
    + +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 >}} + +{{< /css.inline >}} diff --git a/themes/risotto/exampleSite/content/post/markdown-syntax.md b/themes/risotto/exampleSite/content/post/markdown-syntax.md new file mode 100644 index 0000000..dcbab1b --- /dev/null +++ b/themes/risotto/exampleSite/content/post/markdown-syntax.md @@ -0,0 +1,149 @@ ++++ +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", +] +categories = [ + "themes", + "syntax", +] +series = ["Themes Guide"] +aliases = ["migrate-from-jekyl"] +toc = true ++++ + +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. + + +## Headings + +The following HTML `

    `β€”`

    ` elements represent six levels of section headings. `

    ` is the highest section level while `

    ` 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.
    +> β€” Rob Pike[^1] + +[^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 + +| Italics | Bold | Code | +| -------- | -------- | ------ | +| *italics* | **bold** | `code` | + +## Code Blocks + +#### Code block with backticks + +```html + + + + + Example HTML5 Document + + +

    Test

    + + +``` + +#### Code block indented with four spaces + + + + + + Example HTML5 Document + + +

    Test

    + + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + + Example HTML5 Document + + +

    Test

    + + +{{< /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 + +* Fruit + * Apple + * Orange + * Banana +* Dairy + * Milk + * Cheese + +## Other Elements β€” abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. diff --git a/themes/risotto/exampleSite/content/post/math-typesetting.md b/themes/risotto/exampleSite/content/post/math-typesetting.md new file mode 100644 index 0000000..48fdc79 --- /dev/null +++ b/themes/risotto/exampleSite/content/post/math-typesetting.md @@ -0,0 +1,49 @@ +--- +author: Hugo Authors +title: Math Typesetting +date: 2019-03-08 +description: A brief guide to setup KaTeX +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. + + +In this example we will be using [KaTeX](https://katex.org/) + +- Create a partial under `/layouts/partials/math.html` +- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. +- Include the partial in your templates like so: + +```bash +{{ if or .Params.math .Site.Params.math }} +{{ partial "math.html" . }} +{{ end }} +``` + +- To enable KaTex globally set the parameter `math` to `true` in a project's configuration +- To enable KaTex on a per page basis include the parameter `math: true` in content files + +**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) + +{{< math.inline >}} +{{ if or .Page.Params.math .Site.Params.math }} + + + + +{{ end }} +{{}} + +### Examples + +{{< math.inline >}} +

    +Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) +

    +{{}} + +Block math: +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ diff --git a/themes/risotto/exampleSite/content/post/placeholder-text.md b/themes/risotto/exampleSite/content/post/placeholder-text.md new file mode 100644 index 0000000..9ed5f69 --- /dev/null +++ b/themes/risotto/exampleSite/content/post/placeholder-text.md @@ -0,0 +1,45 @@ ++++ +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. 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 + + + +[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 >}} + +{{< /css.inline >}} diff --git a/themes/risotto/exampleSite/content/post/rich-content.md b/themes/risotto/exampleSite/content/post/rich-content.md new file mode 100644 index 0000000..92b4b03 --- /dev/null +++ b/themes/risotto/exampleSite/content/post/rich-content.md @@ -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-hugos-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. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
    + +--- + +## Twitter Simple Shortcode + +{{< twitter_simple 1085870671291310081 >}} + +
    + +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/themes/risotto/exampleSite/layouts/.gitkeep b/themes/risotto/exampleSite/layouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/themes/risotto/exampleSite/static/README b/themes/risotto/exampleSite/static/README new file mode 100644 index 0000000..9c565ef --- /dev/null +++ b/themes/risotto/exampleSite/static/README @@ -0,0 +1,6 @@ +The favicons in this directory were generated using the following graphics from Twitter Twemoji: + +- Graphics Title: 1f35a.svg +- Graphics Author: Copyright 2020 Twitter, Inc and other contributors (https://github.com/twitter/twemoji) +- Graphics Source: https://github.com/twitter/twemoji/blob/master/assets/svg/1f35a.svg +- Graphics License: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/) diff --git a/themes/risotto/exampleSite/static/android-chrome-192x192.png b/themes/risotto/exampleSite/static/android-chrome-192x192.png new file mode 100644 index 0000000..dc22f05 Binary files /dev/null and b/themes/risotto/exampleSite/static/android-chrome-192x192.png differ diff --git a/themes/risotto/exampleSite/static/android-chrome-512x512.png b/themes/risotto/exampleSite/static/android-chrome-512x512.png new file mode 100644 index 0000000..fa80ccd Binary files /dev/null and b/themes/risotto/exampleSite/static/android-chrome-512x512.png differ diff --git a/themes/risotto/exampleSite/static/apple-touch-icon.png b/themes/risotto/exampleSite/static/apple-touch-icon.png new file mode 100644 index 0000000..c5668a3 Binary files /dev/null and b/themes/risotto/exampleSite/static/apple-touch-icon.png differ diff --git a/themes/risotto/exampleSite/static/favicon-16x16.png b/themes/risotto/exampleSite/static/favicon-16x16.png new file mode 100644 index 0000000..2ec54d8 Binary files /dev/null and b/themes/risotto/exampleSite/static/favicon-16x16.png differ diff --git a/themes/risotto/exampleSite/static/favicon-32x32.png b/themes/risotto/exampleSite/static/favicon-32x32.png new file mode 100644 index 0000000..047ad4a Binary files /dev/null and b/themes/risotto/exampleSite/static/favicon-32x32.png differ diff --git a/themes/risotto/exampleSite/static/favicon.ico b/themes/risotto/exampleSite/static/favicon.ico new file mode 100644 index 0000000..7ccf4bb Binary files /dev/null and b/themes/risotto/exampleSite/static/favicon.ico differ diff --git a/themes/risotto/exampleSite/static/site.webmanifest b/themes/risotto/exampleSite/static/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/themes/risotto/exampleSite/static/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/themes/risotto/images/screenshot.png b/themes/risotto/images/screenshot.png new file mode 100644 index 0000000..557d55b Binary files /dev/null and b/themes/risotto/images/screenshot.png differ diff --git a/themes/risotto/images/tn.png b/themes/risotto/images/tn.png new file mode 100644 index 0000000..4a21a86 Binary files /dev/null and b/themes/risotto/images/tn.png differ diff --git a/themes/risotto/layouts/404.html b/themes/risotto/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/risotto/layouts/_default/baseof.html b/themes/risotto/layouts/_default/baseof.html new file mode 100644 index 0000000..9ef13f5 --- /dev/null +++ b/themes/risotto/layouts/_default/baseof.html @@ -0,0 +1,36 @@ + + + + + {{- partial "head.html" . -}} + + + +
    + + + +
    + {{- block "main" . }}{{- end }} +
    + +
    +
    + {{- partial "about.html" . -}} +
    +
    +
    + {{- block "aside" . }}{{- end }} +
    +
    + +
    + {{- partial "footer.html" . -}} +
    + +
    + + + diff --git a/themes/risotto/layouts/_default/li.html b/themes/risotto/layouts/_default/li.html new file mode 100644 index 0000000..c85e091 --- /dev/null +++ b/themes/risotto/layouts/_default/li.html @@ -0,0 +1 @@ +
  • {{ .Title | markdownify }}
  • diff --git a/themes/risotto/layouts/_default/list.html b/themes/risotto/layouts/_default/list.html new file mode 100644 index 0000000..6966c31 --- /dev/null +++ b/themes/risotto/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} +

    {{ .Title | markdownify }}

    + + {{ .Content }} + +
      + {{ range .Pages }} + {{ .Render "li" }} + {{ end }} +
    + +{{ end }} + +{{define "aside" }} + {{ if .Params.description }}

    {{ .Params.description }}

    {{ end }} +{{ end }} diff --git a/themes/risotto/layouts/_default/single.html b/themes/risotto/layouts/_default/single.html new file mode 100644 index 0000000..23274ed --- /dev/null +++ b/themes/risotto/layouts/_default/single.html @@ -0,0 +1,25 @@ +{{ define "main" }} +
    +

    {{ .Title | markdownify }}

    +
    +
    + {{ .Content }} +
    +
    +{{ end }} + +{{define "aside" }} + {{ if .Params.description }}

    {{ .Params.description }}

    {{ end }} + {{ if or (.Params.author) (.Params.date) }} +

    + {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} + {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} +

    + {{ end }} + + {{ if and (.Params.toc) (.TableOfContents) }} +
    + On this page: + {{ .TableOfContents }} + {{ end }} +{{ end }} diff --git a/themes/risotto/layouts/index.html b/themes/risotto/layouts/index.html new file mode 100644 index 0000000..c346e42 --- /dev/null +++ b/themes/risotto/layouts/index.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} + diff --git a/themes/risotto/layouts/partials/about.html b/themes/risotto/layouts/partials/about.html new file mode 100644 index 0000000..aa1dce3 --- /dev/null +++ b/themes/risotto/layouts/partials/about.html @@ -0,0 +1,16 @@ +{{ with .Site.Params.about }} +
    + {{ with .logo }} {{ end }} + {{ with .logo_image }}{{ end }} +

    {{ .title }}

    +{{ with .description }}

    {{ . | markdownify }}

    {{ end }} +
    +{{ end }} + + diff --git a/themes/risotto/layouts/partials/footer.html b/themes/risotto/layouts/partials/footer.html new file mode 100644 index 0000000..50781bc --- /dev/null +++ b/themes/risotto/layouts/partials/footer.html @@ -0,0 +1,5 @@ +{{- partial "lang.html" . -}} +
    + + +
    diff --git a/themes/risotto/layouts/partials/head.html b/themes/risotto/layouts/partials/head.html new file mode 100644 index 0000000..443c702 --- /dev/null +++ b/themes/risotto/layouts/partials/head.html @@ -0,0 +1,29 @@ +{{ with .Title }}{{ . }} – {{end}}{{ .Site.Title }} +{{ with .Site.Params.about }}{{ end }} + + + +{{ if .Site.Params.noindex }} {{ end }} + + + + + + + + + + + + + +{{ if os.FileExists "static/favicon.ico" }}{{ end }} +{{ if os.FileExists "static/favicon-32x32.png" }}{{ end }} +{{ if os.FileExists "static/favicon-16x16.png" }}{{ end }} +{{ if os.FileExists "static/apple-touch-icon.png" }}{{ end }} +{{ if os.FileExists "static/site.webmanifest" }}{{ end }} + + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} diff --git a/themes/risotto/layouts/partials/header.html b/themes/risotto/layouts/partials/header.html new file mode 100644 index 0000000..a8893d4 --- /dev/null +++ b/themes/risotto/layouts/partials/header.html @@ -0,0 +1,10 @@ + + diff --git a/themes/risotto/layouts/partials/lang.html b/themes/risotto/layouts/partials/lang.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/risotto/layouts/post/list.html b/themes/risotto/layouts/post/list.html new file mode 100644 index 0000000..658b1eb --- /dev/null +++ b/themes/risotto/layouts/post/list.html @@ -0,0 +1,26 @@ +{{ define "main" }} +
    +

    {{ .Title | markdownify }}

    + {{ .Content }} +
    + + {{ range .Pages }} + + {{ end }} +{{ end }} + +{{define "aside" }} + {{ if .Params.description }}

    {{ .Params.description }}

    {{ end }} +{{ end }} diff --git a/themes/risotto/static/css/about.css b/themes/risotto/static/css/about.css new file mode 100644 index 0000000..6c12ba4 --- /dev/null +++ b/themes/risotto/static/css/about.css @@ -0,0 +1,26 @@ +/* About/bio section */ +.about__logo { + height: 1.5rem; +} + +.about__title { + display: inline; + vertical-align: top; +} + +.about__title::before { + content: none; +} + +/* Social media links */ +.aside__social-links { + padding: 0; +} + +.aside__social-links li { + display: inline-block; +} + +.aside__social-links li::marker { + content: none; +} diff --git a/themes/risotto/static/css/colours.css b/themes/risotto/static/css/colours.css new file mode 100644 index 0000000..4326985 --- /dev/null +++ b/themes/risotto/static/css/colours.css @@ -0,0 +1,17 @@ +:root { + /* Background */ + --bg: var(--base00); + --off-bg: var(--base01); + --inner-bg: var(--base02); + + /* Text */ + --fg: var(--base05); + --off-fg: var(--base04); + --muted: var(--base03); + --link: var(--base0D); + --hover: var(--base0C); + --highlight: var(--base0A); + + /* Logo */ + --logo: var(--base0B); +} diff --git a/themes/risotto/static/css/custom.css b/themes/risotto/static/css/custom.css new file mode 100644 index 0000000..adc4123 --- /dev/null +++ b/themes/risotto/static/css/custom.css @@ -0,0 +1,7 @@ +/* Override this file to customise the theme's CSS for your site */ + +img, figure { + text-align: center; + margin: auto; + display: block; +} diff --git a/themes/risotto/static/css/footer.css b/themes/risotto/static/css/footer.css new file mode 100644 index 0000000..8a56884 --- /dev/null +++ b/themes/risotto/static/css/footer.css @@ -0,0 +1,8 @@ +.page__footer { + color: var(--off-fg); +} + +.page__footer p { + margin: 0; + text-align: center; +} diff --git a/themes/risotto/static/css/header.css b/themes/risotto/static/css/header.css new file mode 100644 index 0000000..ec2097a --- /dev/null +++ b/themes/risotto/static/css/header.css @@ -0,0 +1,19 @@ +/* Main menu */ +.main-nav ul { + display: flex; + flex-flow: row wrap; + justify-content: flex-start; + align-items: center; + margin: 0; + padding: 0; + gap: 0.5rem 2rem; +} + +.main-nav li { + text-transform: lowercase; +} + +.main-nav li::marker { + content: "./"; +} + diff --git a/themes/risotto/static/css/layout.css b/themes/risotto/static/css/layout.css new file mode 100644 index 0000000..06f69e7 --- /dev/null +++ b/themes/risotto/static/css/layout.css @@ -0,0 +1,62 @@ +/* 1rem = 16px by default */ + +.page { + max-width: 64rem; + margin: 1rem auto; + display: grid; + grid-template-areas: + "header" + "body" + "aside" + "footer"; + grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */ + grid-row-gap: 2rem; +} + +@media (min-width: 45rem) { + .page { + grid-template-areas: + "header header" + "body aside" + "footer footer"; + grid-template-columns: minmax(0, 1fr) 15rem; + grid-column-gap: 2rem; + } +} + +/* Header */ +.page__header { + grid-area: header; + display: flex; +} + +.page__logo { + flex-shrink: 0; +} + +.page__nav { + flex-grow: 1; +} + +/* Body + aside */ +.page__body { + grid-area: body; + background-color: var(--off-bg); + box-shadow: 0 0 0 1rem var(--off-bg); + overflow-wrap: break-word; +} + +.page__aside { + grid-area: aside; + color: var(--off-fg); + position: sticky; + top: 1rem; + right: 1rem; + overflow-y: auto; + max-height: 95vh; +} + +/* Footer */ +.page__footer { + grid-area: footer; +} diff --git a/themes/risotto/static/css/logo.css b/themes/risotto/static/css/logo.css new file mode 100644 index 0000000..368fff4 --- /dev/null +++ b/themes/risotto/static/css/logo.css @@ -0,0 +1,37 @@ +.page__logo { + padding: 0; + margin: 0; + font-weight: inherit; + color: var(--bg); +} + +.page__logo:before { + content: none; +} + +.page__logo-inner { + display: block; + background: var(--logo); + opacity: 0.90; + padding: 0.25rem; +} + +a.page__logo-inner:link, a.page__logo-inner:visited { + color: inherit; + text-decoration: inherit; +} + +a.page__logo-inner:hover, +a.page__logo-inner:active { + opacity: 1; +} + +.page__logo-inner:before { + content: "["; + color: var(--bg); +} + +.page__logo-inner:after { + content: "] $"; + color: var(--bg); +} diff --git a/themes/risotto/static/css/palettes/apprentice.css b/themes/risotto/static/css/palettes/apprentice.css new file mode 100644 index 0000000..303d1c7 --- /dev/null +++ b/themes/risotto/static/css/palettes/apprentice.css @@ -0,0 +1,20 @@ +/* Apprentice by romainl */ + +:root { + --base00: #262626; + --base01: #AF5F5F; + --base02: #5F875F; + --base03: #87875F; + --base04: #5F87AF; + --base05: #5F5F87; + --base06: #5F8787; + --base07: #6C6C6C; + --base08: #444444; + --base09: #FF8700; + --base0A: #87AF87; + --base0B: #FFFFAF; + --base0C: #87AFD7; + --base0D: #8787AF; + --base0E: #5FAFAF; + --base0F: #BCBCBC; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/base16-dark.css b/themes/risotto/static/css/palettes/base16-dark.css new file mode 100644 index 0000000..cb1ec1d --- /dev/null +++ b/themes/risotto/static/css/palettes/base16-dark.css @@ -0,0 +1,22 @@ +/* base16 default dark + * https://github.com/chriskempson/base16-default-schemes + */ + +:root { + --base00: #181818; + --base01: #282828; + --base02: #383838; + --base03: #585858; + --base04: #b8b8b8; + --base05: #d8d8d8; + --base06: #e8e8e8; + --base07: #f8f8f8; + --base08: #ab4642; + --base09: #dc9656; + --base0A: #f7ca88; + --base0B: #a1b56c; + --base0C: #86c1b9; + --base0D: #7cafc2; + --base0E: #ba8baf; + --base0F: #a16946; +} diff --git a/themes/risotto/static/css/palettes/base16-light.css b/themes/risotto/static/css/palettes/base16-light.css new file mode 100644 index 0000000..bcbbb5a --- /dev/null +++ b/themes/risotto/static/css/palettes/base16-light.css @@ -0,0 +1,22 @@ +/* base16 default light + * https://github.com/chriskempson/base16-default-schemes + */ + +:root { + --base00: #f8f8f8; + --base01: #e8e8e8; + --base02: #d8d8d8; + --base03: #b8b8b8; + --base04: #585858; + --base05: #383838; + --base06: #282828; + --base07: #181818; + --base08: #ab4642; + --base09: #dc9656; + --base0A: #f7ca88; + --base0B: #a1b56c; + --base0C: #86c1b9; + --base0D: #7cafc2; + --base0E: #ba8baf; + --base0F: #a16946; +} diff --git a/themes/risotto/static/css/palettes/dracula.css b/themes/risotto/static/css/palettes/dracula.css new file mode 100644 index 0000000..66f1abc --- /dev/null +++ b/themes/risotto/static/css/palettes/dracula.css @@ -0,0 +1,20 @@ +/* Dracula by Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula) */ + +:root { + --base00: #282936; + --base01: #3a3c4e; + --base02: #4d4f68; + --base03: #626483; + --base04: #62d6e8; + --base05: #e9e9f4; + --base06: #f1f2f8; + --base07: #f7f7fb; + --base08: #ea51b2; + --base09: #b45bcf; + --base0A: #00f769; + --base0B: #ebff87; + --base0C: #a1efe4; + --base0D: #62d6e8; + --base0E: #b45bcf; + --base0F: #00f769; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/gruvbox-dark.css b/themes/risotto/static/css/palettes/gruvbox-dark.css new file mode 100644 index 0000000..1d60bd9 --- /dev/null +++ b/themes/risotto/static/css/palettes/gruvbox-dark.css @@ -0,0 +1,23 @@ +/* gruvbox dark + * https://github.com/morhetz/gruvbox + * base16: https://github.com/dawikur/base16-gruvbox-scheme + */ + +:root { + --base00: #282828; + --base01: #3c3836; + --base02: #504945; + --base03: #665c54; + --base04: #bdae93; + --base05: #d5c4a1; + --base06: #ebdbb2; + --base07: #fbf1c7; + --base08: #fb4934; + --base09: #fe8019; + --base0A: #fabd2f; + --base0B: #b8bb26; + --base0C: #8ec07c; + --base0D: #83a598; + --base0E: #d3869b; + --base0F: #d65d0e; +} diff --git a/themes/risotto/static/css/palettes/gruvbox-light.css b/themes/risotto/static/css/palettes/gruvbox-light.css new file mode 100644 index 0000000..f786cf0 --- /dev/null +++ b/themes/risotto/static/css/palettes/gruvbox-light.css @@ -0,0 +1,23 @@ +/* gruvbox light + * https://github.com/morhetz/gruvbox + * base16: https://github.com/dawikur/base16-gruvbox-scheme + */ + +:root { + --base00: #fbf1c7; + --base01: #ebdbb2; + --base02: #d5c4a1; + --base03: #bdae93; + --base04: #665c54; + --base05: #504945; + --base06: #3c3836; + --base07: #282828; + --base08: #9d0006; + --base09: #af3a03; + --base0A: #b57614; + --base0B: #79740e; + --base0C: #427b58; + --base0D: #076678; + --base0E: #8f3f71; + --base0F: #d65d0e; +} diff --git a/themes/risotto/static/css/palettes/material.css b/themes/risotto/static/css/palettes/material.css new file mode 100644 index 0000000..60bfafb --- /dev/null +++ b/themes/risotto/static/css/palettes/material.css @@ -0,0 +1,20 @@ +/* Material by Nate Peterson */ + +:root { + --base00: #263238; + --base01: #2E3C43; + --base02: #314549; + --base03: #546E7A; + --base04: #B2CCD6; + --base05: #EEFFFF; + --base06: #EEFFFF; + --base07: #FFFFFF; + --base08: #F07178; + --base09: #F78C6C; + --base0A: #FFCB6B; + --base0B: #C3E88D; + --base0C: #89DDFF; + --base0D: #82AAFF; + --base0E: #C792EA; + --base0F: #FF5370; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/papercolor-dark.css b/themes/risotto/static/css/palettes/papercolor-dark.css new file mode 100644 index 0000000..d289932 --- /dev/null +++ b/themes/risotto/static/css/palettes/papercolor-dark.css @@ -0,0 +1,20 @@ +/* PaperColor Dark by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) */ + +:root { + --base00: #1c1c1c; + --base01: #af005f; + --base02: #5faf00; + --base03: #d7af5f; + --base04: #5fafd7; + --base05: #808080; + --base06: #d7875f; + --base07: #d0d0d0; + --base08: #585858; + --base09: #5faf5f; + --base0A: #afd700; + --base0B: #af87d7; + --base0C: #ffaf00; + --base0D: #ff5faf; + --base0E: #00afaf; + --base0F: #5f8787; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/papercolor-light.css b/themes/risotto/static/css/palettes/papercolor-light.css new file mode 100644 index 0000000..7eeb7f5 --- /dev/null +++ b/themes/risotto/static/css/palettes/papercolor-light.css @@ -0,0 +1,20 @@ +/* PaperColor Light by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) */ + +:root { + --base00: #eeeeee; + --base01: #af0000; + --base02: #008700; + --base03: #5f8700; + --base04: #0087af; + --base05: #444444; + --base06: #005f87; + --base07: #878787; + --base08: #bcbcbc; + --base09: #d70000; + --base0A: #d70087; + --base0B: #8700af; + --base0C: #d75f00; + --base0D: #d75f00; + --base0E: #005faf; + --base0F: #005f87; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/solarized-dark.css b/themes/risotto/static/css/palettes/solarized-dark.css new file mode 100644 index 0000000..a646595 --- /dev/null +++ b/themes/risotto/static/css/palettes/solarized-dark.css @@ -0,0 +1,20 @@ +/* Solarized Dark by Ethan Schoonover (modified by aramisgithub) */ + +:root { + --base00: #002b36; + --base01: #073642; + --base02: #586e75; + --base03: #657b83; + --base04: #839496; + --base05: #93a1a1; + --base06: #eee8d5; + --base07: #fdf6e3; + --base08: #dc322f; + --base09: #cb4b16; + --base0A: #b58900; + --base0B: #859900; + --base0C: #2aa198; + --base0D: #268bd2; + --base0E: #6c71c4; + --base0F: #d33682; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/solarized-light.css b/themes/risotto/static/css/palettes/solarized-light.css new file mode 100644 index 0000000..dfb92c1 --- /dev/null +++ b/themes/risotto/static/css/palettes/solarized-light.css @@ -0,0 +1,20 @@ +/* Solarized Light by Ethan Schoonover (modified by aramisgithub) */ + +:root { + --base00: #fdf6e3; + --base01: #eee8d5; + --base02: #93a1a1; + --base03: #839496; + --base04: #657b83; + --base05: #586e75; + --base06: #073642; + --base07: #002b36; + --base08: #dc322f; + --base09: #cb4b16; + --base0A: #b58900; + --base0B: #859900; + --base0C: #2aa198; + --base0D: #268bd2; + --base0E: #6c71c4; + --base0F: #d33682; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/tender.css b/themes/risotto/static/css/palettes/tender.css new file mode 100644 index 0000000..77fbe87 --- /dev/null +++ b/themes/risotto/static/css/palettes/tender.css @@ -0,0 +1,20 @@ +/* tender by Jacobo Tabernero (https://github/com/jacoborus/tender.vim) */ + +:root { + --base00: #282828; + --base01: #383838; + --base02: #484848; + --base03: #4c4c4c; + --base04: #b8b8b8; + --base05: #eeeeee; + --base06: #e8e8e8; + --base07: #feffff; + --base08: #f43753; + --base09: #dc9656; + --base0A: #ffc24b; + --base0B: #c9d05c; + --base0C: #73cef4; + --base0D: #b3deef; + --base0E: #d3b987; + --base0F: #a16946; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/tokyo-night-dark.css b/themes/risotto/static/css/palettes/tokyo-night-dark.css new file mode 100644 index 0000000..760d2fe --- /dev/null +++ b/themes/risotto/static/css/palettes/tokyo-night-dark.css @@ -0,0 +1,20 @@ +/* Tokyo Night Dark by MichaΓ«l Ball */ + +:root { + --base00: #1A1B26; + --base01: #16161E; + --base02: #2F3549; + --base03: #444B6A; + --base04: #787C99; + --base05: #A9B1D6; + --base06: #CBCCD1; + --base07: #D5D6DB; + --base08: #C0CAF5; + --base09: #A9B1D6; + --base0A: #0DB9D7; + --base0B: #9ECE6A; + --base0C: #B4F9F8; + --base0D: #2AC3DE; + --base0E: #BB9AF7; + --base0F: #F7768E; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/tokyo-night-light.css b/themes/risotto/static/css/palettes/tokyo-night-light.css new file mode 100644 index 0000000..66e73c8 --- /dev/null +++ b/themes/risotto/static/css/palettes/tokyo-night-light.css @@ -0,0 +1,20 @@ +/* Tokyo Night Light by MichaΓ«l Ball */ + +:root { + --base00: #D5D6DB; + --base01: #CBCCD1; + --base02: #DFE0E5; + --base03: #9699A3; + --base04: #4C505E; + --base05: #343B59; + --base06: #1A1B26; + --base07: #1A1B26; + --base08: #343B58; + --base09: #965027; + --base0A: #166775; + --base0B: #485E30; + --base0C: #3E6968; + --base0D: #34548A; + --base0E: #5A4A78; + --base0F: #8C4351; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/windows-95-light.css b/themes/risotto/static/css/palettes/windows-95-light.css new file mode 100644 index 0000000..70cfeeb --- /dev/null +++ b/themes/risotto/static/css/palettes/windows-95-light.css @@ -0,0 +1,20 @@ +/* Windows 95 Light by Fergus Collins (https://github.com/C-Fergus) */ + +:root { + --base00: #fcfcfc; + --base01: #e0e0e0; + --base02: #c4c4c4; + --base03: #a8a8a8; + --base04: #7e7e7e; + --base05: #545454; + --base06: #2a2a2a; + --base07: #000000; + --base08: #a80000; + --base09: #fcfc54; + --base0A: #a85400; + --base0B: #00a800; + --base0C: #00a8a8; + --base0D: #0000a8; + --base0E: #a800a8; + --base0F: #54fc54; +} \ No newline at end of file diff --git a/themes/risotto/static/css/palettes/windows-95.css b/themes/risotto/static/css/palettes/windows-95.css new file mode 100644 index 0000000..5b44cf8 --- /dev/null +++ b/themes/risotto/static/css/palettes/windows-95.css @@ -0,0 +1,20 @@ +/* Windows 95 by Fergus Collins (https://github.com/C-Fergus) */ + +:root { + --base00: #000000; + --base01: #1C1C1C; + --base02: #383838; + --base03: #545454; + --base04: #7e7e7e; + --base05: #a8a8a8; + --base06: #d2d2d2; + --base07: #fcfcfc; + --base08: #fc5454; + --base09: #a85400; + --base0A: #fcfc54; + --base0B: #54fc54; + --base0C: #54fcfc; + --base0D: #5454fc; + --base0E: #fc54fc; + --base0F: #00a800; +} \ No newline at end of file diff --git a/themes/risotto/static/css/risotto.css b/themes/risotto/static/css/risotto.css new file mode 100644 index 0000000..dcb5a96 --- /dev/null +++ b/themes/risotto/static/css/risotto.css @@ -0,0 +1,12 @@ +@import 'colours.css'; +@import 'typography.css'; +@import 'layout.css'; +@import 'header.css'; +@import 'logo.css'; +@import 'about.css'; +@import 'footer.css'; + +body { + background-color: var(--bg); + color: var(--fg); +} diff --git a/themes/risotto/static/css/typography.css b/themes/risotto/static/css/typography.css new file mode 100644 index 0000000..d7f9e17 --- /dev/null +++ b/themes/risotto/static/css/typography.css @@ -0,0 +1,259 @@ +/* Fonts */ +:root { + --font-monospace: "Fira Mono", monospace; +} + +body { + font-family: var(--font-monospace); + font-size: 16px; + line-height: 1.5rem; +} + +/* Headings */ +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: 1rem; + margin: 1.5rem 0 0 0; + font-weight: 600; +} + +h1+h2, +h1+h3, +h1+h4, +h1+h5, +h1+h6, +h2+h3, +h2+h4, +h2+h5, +h2+h6, +h3+h4, +h3+h5, +h3+h6, +h4+h5, +h4+h6, +h5+h6 { + margin: 0; +} + +h1:before { content: "# "; } +h2:before { content: "## "; } +h3:before { content: "### "; } +h4:before { content: "#### "; } +h5:before { content: "##### "; } +h6:before { content: "###### "; } + +h1:before, +h2:before, +h3:before, +h4:before, +h5:before, +h6:before { + color: var(--muted); +} + +h1:first-child { + margin-top: 0; +} + +/* Paragraphs */ +p { + margin: 0 0 1.5rem 0; +} + +/* Links */ + +a:link, a:visited { + color: var(--link); +} + +a:hover, a:active, a.active { + color: var(--hover); +} + +/* Lists */ +ul { + margin: 0 0 1.5rem 0; + padding-left: 1.25rem; +} + +ol { + margin: 0 0 1.5rem 0; + padding-left: 1.75rem; +} + +ul ul, +ul ol, +ol ul, +ol ol { + margin: 0; +} + +ul li::marker { + content: 'βˆ—\00A0'; + color: var(--muted); +} + +ol li::marker { + color: var(--muted); +} + +li.nomarker { + display: block; +} + +dt { + margin: 0; + font-weight: bold; +} + +dd { + margin: 0 0 0 1.5rem; + font-style: italic; +} + +dd + dt { + margin-top: 1.5rem; +} + +dl { + margin: 0 0 1.5rem 0; +} + +/* Blockquotes */ +blockquote { + position: relative; + margin: 0 0 1.5rem 1.5rem; +} + +blockquote::before { + position: absolute; + left: -1.5rem; + content: ">"; + color: var(--muted); +} + +.twitter-tweet::before { + content: "\f099"; + font-family: "Font Awesome 5 Brands"; + font-weight: 400; +} + +/* Code */ +pre, +code, +kbd, +samp { + background: var(--inner-bg) !important; + font-family: var(--font-monospace); + color: var(--off-fg); +} + +pre { + overflow-x: auto; + padding: 1.5rem; + margin: 0 0 1.5rem 0; +} + +/* Fix overflow when config markup.highlight.lineNos is true */ +/* See https://github.com/joeroe/risotto/issues/41 */ +.highlight div { + overflow-x: auto; +} + +/* Emphasis */ +b, +strong { + font-weight: 600; +} + +/* Highlighting */ +::selection, +mark { + background-color: var(--highlight); + color: var(--bg); +} + +/* Other typographic elements */ +hr { + border: 0; + margin-bottom: 1.5rem; +} + +hr:after { + content: '---'; + color: var(--muted); +} + + +/* Prevent super/sub from affecting line height */ +sup, sub { + vertical-align: baseline; + position: relative; + top: -0.25rem; + font-size: unset; +} +sub { + top: 0.25rem; +} + +/* Tables */ +table { + border-spacing: 0; + margin: 0 0 1.5rem 0; + overflow-wrap: anywhere; +} +th, td { + padding: 0 .75rem; + vertical-align: top; +} +th:first-child, td:first-child { + padding-left: 0; +} +th { + text-align: inherit; +} + +/* Figures */ +img { + max-width: 100%; + height: auto; +} + +/* Colour classes */ +.base00 { color: var(--base00); } +.base01 { color: var(--base01); } +.base02 { color: var(--base02); } +.base03 { color: var(--base03); } +.base04 { color: var(--base04); } +.base05 { color: var(--base05); } +.base06 { color: var(--base06); } +.base07 { color: var(--base07); } +.base08 { color: var(--base08); } +.base09 { color: var(--base09); } +.base0A { color: var(--base0A); } +.base0B { color: var(--base0B); } +.base0C { color: var(--base0C); } +.base0D { color: var(--base0D); } +.base0E { color: var(--base0E); } +.base0F { color: var(--base0F); } + +.bg-base00 { background-color: var(--base00); } +.bg-base01 { background-color: var(--base01); } +.bg-base02 { background-color: var(--base02); } +.bg-base03 { background-color: var(--base03); } +.bg-base04 { background-color: var(--base04); } +.bg-base05 { background-color: var(--base05); } +.bg-base06 { background-color: var(--base06); } +.bg-base07 { background-color: var(--base07); } +.bg-base08 { background-color: var(--base08); } +.bg-base09 { background-color: var(--base09); } +.bg-base0A { background-color: var(--base0A); } +.bg-base0B { background-color: var(--base0B); } +.bg-base0C { background-color: var(--base0C); } +.bg-base0D { background-color: var(--base0D); } +.bg-base0E { background-color: var(--base0E); } +.bg-base0F { background-color: var(--base0F); } diff --git a/themes/risotto/static/images/rice.svg b/themes/risotto/static/images/rice.svg new file mode 100644 index 0000000..53e480c --- /dev/null +++ b/themes/risotto/static/images/rice.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/risotto/theme.toml b/themes/risotto/theme.toml new file mode 100644 index 0000000..ad5f777 --- /dev/null +++ b/themes/risotto/theme.toml @@ -0,0 +1,15 @@ +name = "risotto" +license = "MIT" +licenselink = "https://github.com/joeroe/risotto/blob/master/LICENSE" +description = "A minimalist, responsive theme inspired by terminal ricing aesthetics." + +homepage = "https://github.com/joeroe/risotto" +demosite = "https://risotto.joeroe.io" + +tags = ["responsive", "minimal", "dark mode"] +features = [] + +[author] + name = "Joe Roe" + homepage = "https://joeroe.io" +