diff --git a/config.toml b/config.toml index 8d642f4..78bd223 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ baseURL = "https://rustybever.be" title = "The Rusty Bever" -theme = "etch" +theme = "rb" languageCode = "en-US" enableInlineShortcodes = true pygmentsCodeFences = true @@ -34,8 +34,8 @@ pygmentsUseClasses = true url = "/about/" weight = 40 -[permalinks] - posts = "/:filename/" +# [permalinks] +# blog = "/b/:filename/" [markup.goldmark.renderer] # Allows HTML in Markdown diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..388337f --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,5 @@ +--- +title: "Posts" +--- + +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa diff --git a/content/posts/alex/index.md b/content/blog/alex/index.md similarity index 100% rename from content/posts/alex/index.md rename to content/blog/alex/index.md diff --git a/content/posts/alex/the-village.jpg b/content/blog/alex/the-village.jpg similarity index 100% rename from content/posts/alex/the-village.jpg rename to content/blog/alex/the-village.jpg diff --git a/content/posts/audio-setup/index.md b/content/blog/audio-setup/index.md similarity index 100% rename from content/posts/audio-setup/index.md rename to content/blog/audio-setup/index.md diff --git a/content/posts/c-project-setup/index.md b/content/blog/c-project-setup/index.md similarity index 100% rename from content/posts/c-project-setup/index.md rename to content/blog/c-project-setup/index.md diff --git a/content/posts/endeavour-review/index.md b/content/blog/endeavour-review/index.md similarity index 100% rename from content/posts/endeavour-review/index.md rename to content/blog/endeavour-review/index.md diff --git a/content/posts/feeling-slightly-off/index.md b/content/blog/feeling-slightly-off/index.md similarity index 100% rename from content/posts/feeling-slightly-off/index.md rename to content/blog/feeling-slightly-off/index.md diff --git a/content/posts/lander/index.md b/content/blog/lander/index.md similarity index 100% rename from content/posts/lander/index.md rename to content/blog/lander/index.md diff --git a/content/posts/losing-weight/index.md b/content/blog/losing-weight/index.md similarity index 100% rename from content/posts/losing-weight/index.md rename to content/blog/losing-weight/index.md diff --git a/content/posts/music/index.md b/content/blog/music/index.md similarity index 100% rename from content/posts/music/index.md rename to content/blog/music/index.md diff --git a/content/posts/necessity/index.md b/content/blog/necessity/index.md similarity index 100% rename from content/posts/necessity/index.md rename to content/blog/necessity/index.md diff --git a/content/posts/switch-to-axum.md b/content/blog/switch-to-axum.md similarity index 100% rename from content/posts/switch-to-axum.md rename to content/blog/switch-to-axum.md diff --git a/content/posts/tour-of-flanders/bert-enjoying-himself.jpg b/content/blog/tour-of-flanders/bert-enjoying-himself.jpg similarity index 100% rename from content/posts/tour-of-flanders/bert-enjoying-himself.jpg rename to content/blog/tour-of-flanders/bert-enjoying-himself.jpg diff --git a/content/posts/tour-of-flanders/index.md b/content/blog/tour-of-flanders/index.md similarity index 100% rename from content/posts/tour-of-flanders/index.md rename to content/blog/tour-of-flanders/index.md diff --git a/content/posts/tour-of-flanders/later-in-the-evening.jpg b/content/blog/tour-of-flanders/later-in-the-evening.jpg similarity index 100% rename from content/posts/tour-of-flanders/later-in-the-evening.jpg rename to content/blog/tour-of-flanders/later-in-the-evening.jpg diff --git a/content/posts/tuxedo-book-xp14-review.md b/content/blog/tuxedo-book-xp14-review.md similarity index 100% rename from content/posts/tuxedo-book-xp14-review.md rename to content/blog/tuxedo-book-xp14-review.md diff --git a/content/posts/v-workflow/index.md b/content/blog/v-workflow/index.md similarity index 100% rename from content/posts/v-workflow/index.md rename to content/blog/v-workflow/index.md diff --git a/content/posts/vieter-0.2.0/index.md b/content/blog/vieter-0.2.0/index.md similarity index 100% rename from content/posts/vieter-0.2.0/index.md rename to content/blog/vieter-0.2.0/index.md diff --git a/content/posts/vieter-0.3.0/index.md b/content/blog/vieter-0.3.0/index.md similarity index 100% rename from content/posts/vieter-0.3.0/index.md rename to content/blog/vieter-0.3.0/index.md diff --git a/content/posts/vieter-0.4.0/index.md b/content/blog/vieter-0.4.0/index.md similarity index 100% rename from content/posts/vieter-0.4.0/index.md rename to content/blog/vieter-0.4.0/index.md diff --git a/content/posts/vieter-0.5.0/index.md b/content/blog/vieter-0.5.0/index.md similarity index 100% rename from content/posts/vieter-0.5.0/index.md rename to content/blog/vieter-0.5.0/index.md diff --git a/content/posts/vieter-0.6.0/index.md b/content/blog/vieter-0.6.0/index.md similarity index 100% rename from content/posts/vieter-0.6.0/index.md rename to content/blog/vieter-0.6.0/index.md diff --git a/content/posts/vlang/index.md b/content/blog/vlang/index.md similarity index 100% rename from content/posts/vlang/index.md rename to content/blog/vlang/index.md diff --git a/content/posts/welcome.md b/content/blog/welcome.md similarity index 100% rename from content/posts/welcome.md rename to content/blog/welcome.md diff --git a/content/posts/workflow/index.md b/content/blog/workflow/index.md similarity index 100% rename from content/posts/workflow/index.md rename to content/blog/workflow/index.md diff --git a/content/dev/_index.md b/content/dev/_index.md new file mode 100644 index 0000000..3971c7f --- /dev/null +++ b/content/dev/_index.md @@ -0,0 +1,5 @@ +--- +title: "Projects" +--- + +Hello! diff --git a/content/dev/rieter/_index.md b/content/dev/rieter/_index.md new file mode 100644 index 0000000..baf1c88 --- /dev/null +++ b/content/dev/rieter/_index.md @@ -0,0 +1,31 @@ +--- +title: "Rieter" +summary: "Easy-to-use Pacman repository server designed for the self-hosting enthusiast" +type: "project" +params: + links: + - name: Gitea + url: 'https://git.rustybever.be/Chewing_Bever/rieter' +--- + +My first goal for this project is to create a convenient all-round repository +server implementation that could be used for everything from self-hosting a +local repository to managing an entire distribution's package repository. It +should be easy to deploy, lightweight, and work with any distribution. It +should support any number of repositories and packages, and work with any +package architecture. + +The repositories can be populated by manually uploading packages to the server +(e.g. from a CI build), or by mirroring already existing repositories. The +mirroring feature in particular makes it trivial to set up a new mirror for a +distribution, as the server would take care of keeping the mirror up-to-date. +Another usecase for this would be creating a local mirror of your +distribution's repositories, which can greatly reduce your update times +depending on your internet connection. + +Most users however don't need a full copy of a distro's package repository, so +Rieter also provides a "smart mirror" mode. In this mode, a Rieter instance +only syncs packages that have been requested before, e.g. from a previous +system update. This way, your updates will still be a lot faster as the +required packages are cached, but packages you don't use don't get stored, +saving you a lot of storage space. diff --git a/content/dev/vieter/_index.md b/content/dev/vieter/_index.md new file mode 100644 index 0000000..457b6fb --- /dev/null +++ b/content/dev/vieter/_index.md @@ -0,0 +1,6 @@ +--- +title: "Vieter" +summary: "Arch Linux repository server & build system, written in V" +--- + +lmao what diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html new file mode 100644 index 0000000..2fa7913 --- /dev/null +++ b/layouts/partials/projects.html @@ -0,0 +1,6 @@ +

{{ i18n "projects.title" }}

+ diff --git a/layouts/projects/index.html b/layouts/projects/index.html new file mode 100644 index 0000000..7404cf5 --- /dev/null +++ b/layouts/projects/index.html @@ -0,0 +1,4 @@ +{{ define "main" }} +{{ .Content }} +{{- partial "projects.html" . -}} +{{ end }} diff --git a/layouts/projects/li.html b/layouts/projects/li.html new file mode 100644 index 0000000..ad9a14d --- /dev/null +++ b/layouts/projects/li.html @@ -0,0 +1,6 @@ +
  • + + {{ .Title }} + {{ .Summary }} + +
  • diff --git a/themes/rb/.gitignore b/themes/rb/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/themes/rb/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/themes/rb/LICENSE b/themes/rb/LICENSE new file mode 100644 index 0000000..37209a9 --- /dev/null +++ b/themes/rb/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 Lukas Joswiak + +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/rb/README.md b/themes/rb/README.md new file mode 100644 index 0000000..e46750b --- /dev/null +++ b/themes/rb/README.md @@ -0,0 +1,33 @@ +# Etch + +Etch is a simple, responsive theme for [Hugo](https://gohugo.io) with a focus on writing. A live demo is available at https://lukasjoswiak.github.io/etch/. + +screenshot + +## Features: + +* Homepage with list of posts. +* Support for pages. +* Responsive design for optimized mobile experience. +* Syntax highlighting with customizable theme. +* Dark theme which automatically adjusts based on users' setting ([example](https://github.com/LukasJoswiak/etch/wiki/Dark-mode)). +* No external dependencies, no JavaScript, no web fonts. +* Internationalization friendly: use default English translations or create your own + +## Installation + +To install `etch`, download the repository into the `themes` folder in the root of your site. + +``` +$ git submodule add https://github.com/LukasJoswiak/etch.git themes/etch +``` + +Then, use the theme to generate your site. + +``` +$ hugo server -t etch +``` + +Use the [sample configuration](https://github.com/LukasJoswiak/etch/wiki/Configuration#sample-configuration) as a starting point. See the [configuration](https://github.com/LukasJoswiak/etch/wiki/Configuration) page for more info. + +Read the [wiki](https://github.com/LukasJoswiak/etch/wiki) to learn about more options. diff --git a/themes/rb/archetypes/default.md b/themes/rb/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/rb/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/rb/assets/css/dark.css b/themes/rb/assets/css/dark.css new file mode 100644 index 0000000..8007b2f --- /dev/null +++ b/themes/rb/assets/css/dark.css @@ -0,0 +1,53 @@ +{{ if not (eq .Site.Params.dark "on") -}} +@media (prefers-color-scheme: dark) { +{{ end -}} +html { + scrollbar-color: #6c6c6c #2e2e2e; +} + +body { + color: #ebebeb; + background: #121212; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +header#banner a { + color: #e0e0e0; + text-decoration: none; +} + +header#banner nav ul li a { + color: #cccccc; +} + +main#content a { + color: #00b1ed; +} + +main#content p { + color: #f5f5f5; +} + +main#content hr { + background: #5c5c5c; +} + +main#content #toc h4 { + color: #d4d4d4; +} + +main#content ul#posts small { + color: #a7a7a7; +} + +main#content ul#posts li a:hover { + color: #21c7ff; +} + +main#content header#post-header div { + color: #a7a7a7; +} +{{- if not (eq .Site.Params.dark "on") -}} +} +{{- end -}} diff --git a/themes/rb/assets/css/main.css b/themes/rb/assets/css/main.css new file mode 100644 index 0000000..7f77ce4 --- /dev/null +++ b/themes/rb/assets/css/main.css @@ -0,0 +1,281 @@ +*, *:before, *:after { + box-sizing: border-box; +} + +html { + font-size: 62.5%; +} + +body { + font-size: 16px; + font-size: 1.6rem; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + color: #313a3d; + width: 100%; + margin: 0 auto; + padding: 0 16px; + line-height: 1.6; +} + +header#banner { + margin: 25px 0; +} + +header#banner a { + color: #313a3d; + text-decoration: none; +} + +header#banner a:hover { + text-decoration: underline; +} + +header#banner h2 { + display: inline; + font-size: 21px; + font-size: 2.1rem; + margin: 0 8px 0 0; +} + +header#banner nav { + display: inline-block; +} + +header#banner nav ul { + list-style-type: none; + font-size: 1.05em; + text-transform: lowercase; + margin: 0; + padding: 0; +} + +header#banner nav ul li { + display: inline; + margin: 0 3px; +} + +header#banner nav ul li a { + color: #454545; +} + +main#content a { + color: #007dfa; + text-decoration: none; +} + +main#content a:hover { + text-decoration: underline; +} + +main#content h1, +main#content h2, +main#content h3, +main#content h4, +main#content h5, +main#content h6 { + margin-bottom: 0; + line-height: 1.15; +} + +main#content h3 { + font-size: 19px; + font-size: 1.9rem; +} + +main#content h1 + p, +main#content h2 + p, +main#content h3 + p, +main#content h4 + p, +main#content h5 + p, +main#content h6 + p { + margin-top: 5px; +} + +main#content p { + color: #394548; + margin: 16px 0; +} + +main#content hr { + height: 1px; + border: 0; + background: #d8d8d8; +} + +main#content abbr { + cursor: help; +} + +/* index.html styles */ +main#content ul#posts { + list-style-type: none; + font-size: 16px; + font-size: 1.6rem; + margin-top: 0; + padding: 0; +} + +main#content ul#posts li { + margin: 5px 0; + padding: 0; +} + +main#content ul#posts small { + font-size: 0.8em; + color: #767676; + margin-left: 10px; +} + +main#content ul#posts li a { + text-decoration: none; +} + +main#content ul#posts li a:hover { + color: #369aff; +} + +main#content ul#posts li a:hover small { + color: inherit; +} + +/* single.html styles */ +main#content header#post-header h1 { + display: block; + font-size: 23px; + font-size: 2.3rem; + font-weight: 600; + line-height: 1.15; +} + +main#content header#post-header > div { + display: block; + font-size: 0.85em; + color: #767676; +} + +main#content #toc { + border: 1px solid #b1b1b1; + border-radius: 1px; + line-height: 26px; + margin: 16px 0; + padding: 9px 14px; +} + +main#content #toc h4 { + font-size: 1.06em; + color: #3d3d3d; + margin: 0; +} + +main#content #toc nav#TableOfContents { + margin-top: 4px; +} + +main#content #toc nav#TableOfContents > ul, main#content #toc nav#TableOfContents > ol { + margin-left: -40px; +} + +main#content #toc ul, main#content #toc ol { + font-size: 0.98em; + margin: 0; + padding: 0 0 0 40px; +} + +main#content #toc ul { + list-style-type: none; +} + +main#content #toc ol { + counter-reset: item; +} + +main#content #toc ol li { + display: block; +} + +main#content #toc ol li:before { + content: counters(item, ".") ". "; + counter-increment: item; +} + +main#content img { + max-width: 100%; + margin: 0 auto; +} + +main#content figure { + margin: 16px 0; +} + +main#content figure img { + display: block; + max-width: 100%; + margin: 0 auto; +} + +main#content figure figcaption { + font-size: 0.92em; + font-style: italic; + line-height: 22px; + text-align: center; + margin-top: 6px; + padding: 0 10px; +} + +main#content figure figcaption h4 { + font-style: normal; + display: inline; + margin: 0; +} + +main#content figure figcaption p { + display: inline; + margin: 0; + padding-left: 8px; +} + +main#content blockquote { + font-style: italic; + margin-top: 10px; + margin-bottom: 10px; + margin-left: 50px; + padding-left: 15px; + border-left: 3px solid #ccc; +} + +main#content code, +main#content pre { + font-family: 'Menlo', monospace; +} + +main#content code { + font-size: 0.96em; + padding: 0 5px; +} + +main#content pre { + display: block; + overflow-x: auto; + font-size: 14px; + font-size: 1.4rem; + white-space: pre; + margin: 20px 0; + padding: 1.5rem 1.5rem; + line-height: 1.4; +} + +main#content pre code { + padding: 0; +} + +main#content section.footnotes { + font-size: 0.9em; +} + +footer#footer { + font-size: 14px; + font-size: 1.4rem; + font-weight: 400; + color: #b3b3b3; + margin: 40px 0; +} diff --git a/themes/rb/assets/css/min770px.css b/themes/rb/assets/css/min770px.css new file mode 100644 index 0000000..076fdee --- /dev/null +++ b/themes/rb/assets/css/min770px.css @@ -0,0 +1,52 @@ +@media (min-width: 770px) { +body { + width: 600px; + line-height: 1.5; +} + +main#content hr { + width: 108%; + margin-left: -3.8%; +} + +/* index.html styles */ +header#banner h2 { + font-size: 25px; + font-size: 2.5rem; +} + +main#content h3 { + font-size: 20px; + font-size: 2rem; +} + +main#content ul#posts { + font-size: 18px; + font-size: 1.8rem; +} + +/* single.html styles */ +main#content header#post-header h1 { + font-size: 24px; + font-size: 2.4rem; +} + +main#content img { + max-width: 108%; + margin-left: -3.8%; +} + +main#content figure { + margin-left: -3.8%; +} + +main#content figure img { + max-width: 108%; +} + +main#content pre { + width: 108%; + margin-left: -3.8%; + padding: 1.5rem 2.2rem; +} +} diff --git a/themes/rb/assets/css/syntax.css b/themes/rb/assets/css/syntax.css new file mode 100644 index 0000000..350286e --- /dev/null +++ b/themes/rb/assets/css/syntax.css @@ -0,0 +1,59 @@ +/* Background */ .chroma { color: #f8f8f2; background-color: #272822 } +/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } +/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } +/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* Keyword */ .chroma .k { color: #66d9ef } +/* KeywordConstant */ .chroma .kc { color: #66d9ef } +/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } +/* KeywordNamespace */ .chroma .kn { color: #f92672 } +/* KeywordPseudo */ .chroma .kp { color: #66d9ef } +/* KeywordReserved */ .chroma .kr { color: #66d9ef } +/* KeywordType */ .chroma .kt { color: #66d9ef } +/* NameAttribute */ .chroma .na { color: #a6e22e } +/* NameClass */ .chroma .nc { color: #a6e22e } +/* NameConstant */ .chroma .no { color: #66d9ef } +/* NameDecorator */ .chroma .nd { color: #a6e22e } +/* NameException */ .chroma .ne { color: #a6e22e } +/* NameFunction */ .chroma .nf { color: #a6e22e } +/* NameOther */ .chroma .nx { color: #a6e22e } +/* NameTag */ .chroma .nt { color: #f92672 } +/* Literal */ .chroma .l { color: #ae81ff } +/* LiteralDate */ .chroma .ld { color: #e6db74 } +/* LiteralString */ .chroma .s { color: #e6db74 } +/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } +/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } +/* LiteralStringChar */ .chroma .sc { color: #e6db74 } +/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } +/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } +/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } +/* LiteralStringEscape */ .chroma .se { color: #ae81ff } +/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } +/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } +/* LiteralStringOther */ .chroma .sx { color: #e6db74 } +/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } +/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } +/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } +/* LiteralNumber */ .chroma .m { color: #ae81ff } +/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } +/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } +/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } +/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } +/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } +/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } +/* Operator */ .chroma .o { color: #f92672 } +/* OperatorWord */ .chroma .ow { color: #f92672 } +/* Comment */ .chroma .c { color: #75715e } +/* CommentHashbang */ .chroma .ch { color: #75715e } +/* CommentMultiline */ .chroma .cm { color: #75715e } +/* CommentSingle */ .chroma .c1 { color: #75715e } +/* CommentSpecial */ .chroma .cs { color: #75715e } +/* CommentPreproc */ .chroma .cp { color: #75715e } +/* CommentPreprocFile */ .chroma .cpf { color: #75715e } +/* GenericDeleted */ .chroma .gd { color: #f92672 } +/* GenericEmph */ .chroma .ge { font-style: italic } +/* GenericInserted */ .chroma .gi { color: #a6e22e } +/* GenericStrong */ .chroma .gs { font-weight: bold } +/* GenericSubheading */ .chroma .gu { color: #75715e } diff --git a/themes/rb/exampleSite/config.toml b/themes/rb/exampleSite/config.toml new file mode 100644 index 0000000..527434a --- /dev/null +++ b/themes/rb/exampleSite/config.toml @@ -0,0 +1,38 @@ +baseURL = "https://example.com" +title = "Website Name" +theme = "etch" +languageCode = "en-US" +enableInlineShortcodes = true +pygmentsCodeFences = true +pygmentsUseClasses = true + +[params] + description = "Your site description" + copyright = "Copyright Β© 2021 Your Name" + dark = "auto" + highlight = true + +[menu] + [[menu.main]] + identifier = "posts" + name = "posts" + title = "posts" + url = "/" + weight = 10 + + [[menu.main]] + identifier = "about" + name = "about" + title = "about" + url = "/about/" + weight = 20 + +[permalinks] + posts = "/:title/" + +[markup.goldmark.renderer] + # Allow HTML in Markdown + unsafe = true + + [markup.tableOfContents] + ordered = true diff --git a/themes/rb/exampleSite/content/_index.md b/themes/rb/exampleSite/content/_index.md new file mode 100644 index 0000000..2a74490 --- /dev/null +++ b/themes/rb/exampleSite/content/_index.md @@ -0,0 +1,4 @@ +--- +title: "Home" +--- +This is some info about me. diff --git a/themes/rb/exampleSite/content/about/index.md b/themes/rb/exampleSite/content/about/index.md new file mode 100644 index 0000000..eb5384b --- /dev/null +++ b/themes/rb/exampleSite/content/about/index.md @@ -0,0 +1,21 @@ ++++ +title = "About" ++++ + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/themes/rb/exampleSite/content/posts/emoji-support.md b/themes/rb/exampleSite/content/posts/emoji-support.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/themes/rb/exampleSite/content/posts/emoji-support.md @@ -0,0 +1,47 @@ ++++ +author = "Hugo Authors" +title = "Emoji Support" +date = "2019-03-05" +description = "Guide to emoji usage in Hugo" +tags = [ + "emoji", +] ++++ + +Emoji can be enabled in a Hugo project in a number of ways. + +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 >}} \ No newline at end of file diff --git a/themes/rb/exampleSite/content/posts/markdown-syntax.md b/themes/rb/exampleSite/content/posts/markdown-syntax.md new file mode 100644 index 0000000..d60c404 --- /dev/null +++ b/themes/rb/exampleSite/content/posts/markdown-syntax.md @@ -0,0 +1,147 @@ ++++ +author = "Hugo Authors" +title = "Markdown Syntax Guide" +date = "2019-03-11" +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags = [ + "markdown", + "css", + "html", + "themes", +] +categories = [ + "themes", + "syntax", +] +series = ["Themes Guide"] +aliases = ["migrate-from-jekyl"] ++++ + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + + +## 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 + +| Inline    | Markdown    | In    | Table | +| ---------- | --------- | ----------------- | ---------- | +| *italics* | **bold** | ~~strikethrough~~    | `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 + +* Item +1. First Sub-item +2. Second Sub-item + +## 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/rb/exampleSite/content/posts/placeholder-text.md b/themes/rb/exampleSite/content/posts/placeholder-text.md new file mode 100644 index 0000000..378b995 --- /dev/null +++ b/themes/rb/exampleSite/content/posts/placeholder-text.md @@ -0,0 +1,58 @@ ++++ +author = "Hugo Authors" +title = "Placeholder Text" +date = "2019-03-09" +description = "Lorem Ipsum Dolor Si Amet" +tags = [ + "markdown", + "text", +] ++++ + +Lorem est tota propiore conpellat pectoribus de +pectora summo. 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/rb/exampleSite/content/posts/rich-content.md b/themes/rb/exampleSite/content/posts/rich-content.md new file mode 100644 index 0000000..8cb8861 --- /dev/null +++ b/themes/rb/exampleSite/content/posts/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-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
    + +--- + +## Twitter Shortcode + +{{< tweet user="DesignReviewed" id="1085870671291310081" >}} + +
    + +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/themes/rb/i18n/en.toml b/themes/rb/i18n/en.toml new file mode 100644 index 0000000..e30f8ce --- /dev/null +++ b/themes/rb/i18n/en.toml @@ -0,0 +1,19 @@ +# Learn how to use Date format (date, created, updated) +# -> https://gohugo.io/functions/dateformat/ + +[posts] + +[posts.title] +other = "Posts" + +[posts.date] +other = "Jan 2, 2006" + + +[post] + +[post.created] +other = "January 2, 2006" + +[post.updated] +other = "Updated January 2, 2006" diff --git a/themes/rb/images/screenshot.png b/themes/rb/images/screenshot.png new file mode 100644 index 0000000..fed9553 Binary files /dev/null and b/themes/rb/images/screenshot.png differ diff --git a/themes/rb/images/screenshot_dark.png b/themes/rb/images/screenshot_dark.png new file mode 100644 index 0000000..11505f9 Binary files /dev/null and b/themes/rb/images/screenshot_dark.png differ diff --git a/themes/rb/images/screenshot_small.png b/themes/rb/images/screenshot_small.png new file mode 100644 index 0000000..d320a7c Binary files /dev/null and b/themes/rb/images/screenshot_small.png differ diff --git a/themes/rb/images/tn.png b/themes/rb/images/tn.png new file mode 100644 index 0000000..0556f24 Binary files /dev/null and b/themes/rb/images/tn.png differ diff --git a/themes/rb/images/tn_dark.png b/themes/rb/images/tn_dark.png new file mode 100644 index 0000000..b40629b Binary files /dev/null and b/themes/rb/images/tn_dark.png differ diff --git a/themes/rb/layouts/404.html b/themes/rb/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/rb/layouts/_default/baseof.html b/themes/rb/layouts/_default/baseof.html new file mode 100644 index 0000000..d663ad3 --- /dev/null +++ b/themes/rb/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
    + {{- block "main" . }}{{- end }} +
    + {{- partial "footer.html" . -}} + + diff --git a/themes/rb/layouts/_default/li.html b/themes/rb/layouts/_default/li.html new file mode 100644 index 0000000..f418cb9 --- /dev/null +++ b/themes/rb/layouts/_default/li.html @@ -0,0 +1,6 @@ +
  • + + {{ .Title }} + + +
  • diff --git a/themes/rb/layouts/_default/rss.xml b/themes/rb/layouts/_default/rss.xml new file mode 100644 index 0000000..4accedd --- /dev/null +++ b/themes/rb/layouts/_default/rss.xml @@ -0,0 +1,41 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range where .Site.Pages "Kind" "page" }} + {{ if or (eq .Section "posts") (eq .Section "post") }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + {{ end }} + + diff --git a/themes/rb/layouts/_default/taxonomy.html b/themes/rb/layouts/_default/taxonomy.html new file mode 100644 index 0000000..86677c2 --- /dev/null +++ b/themes/rb/layouts/_default/taxonomy.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

    {{ .Title }}

    + +{{ end }} diff --git a/themes/rb/layouts/blog/section.html b/themes/rb/layouts/blog/section.html new file mode 100644 index 0000000..22005ac --- /dev/null +++ b/themes/rb/layouts/blog/section.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

    {{ i18n "posts.title" }}

    + +{{ end }} diff --git a/themes/rb/layouts/blog/single.html b/themes/rb/layouts/blog/single.html new file mode 100644 index 0000000..281e064 --- /dev/null +++ b/themes/rb/layouts/blog/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
    +
    +

    {{ .Title }}

    +
    + {{- if isset .Params "date" -}} + {{ if eq .Lastmod .Date }} + + {{ else }} + + {{ end }} + {{- end -}} +
    +
    + {{- .Content -}} +
    +{{ end }} diff --git a/themes/rb/layouts/dev/section.html b/themes/rb/layouts/dev/section.html new file mode 100644 index 0000000..4c770cd --- /dev/null +++ b/themes/rb/layouts/dev/section.html @@ -0,0 +1,12 @@ +{{ define "main" }} +{{ .Content }} +

    Projects

    + +{{ end }} diff --git a/themes/rb/layouts/index.html b/themes/rb/layouts/index.html new file mode 100644 index 0000000..0f1a8b7 --- /dev/null +++ b/themes/rb/layouts/index.html @@ -0,0 +1,12 @@ +{{ define "main" }} +{{ .Content }} +

    Latest blog posts

    +{{ with .GetPage "blog" }} + +Older +{{ end }} +{{ end }} diff --git a/themes/rb/layouts/partials/footer.html b/themes/rb/layouts/partials/footer.html new file mode 100644 index 0000000..73420ef --- /dev/null +++ b/themes/rb/layouts/partials/footer.html @@ -0,0 +1,3 @@ + diff --git a/themes/rb/layouts/partials/head.html b/themes/rb/layouts/partials/head.html new file mode 100644 index 0000000..5fa3a6a --- /dev/null +++ b/themes/rb/layouts/partials/head.html @@ -0,0 +1,31 @@ + + + + {{ with .Site.Params.description -}} + + {{ end }} + {{ printf `` ("favicon.ico" | absURL) | safeHTML }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ $resources := slice -}} + + {{ $resources = $resources | append (resources.Get "css/main.css") -}} + + {{ $resources = $resources | append (resources.Get "css/min770px.css") -}} + + {{ $dark := .Site.Params.dark | default "auto" -}} + {{ if not (eq $dark "off") -}} + {{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} + {{ end -}} + + {{ if .Site.Params.highlight -}} + {{ $resources = $resources | append (resources.Get "css/syntax.css") -}} + {{ end -}} + + {{ $css := $resources | resources.Concat "css/style.css" | minify }} + {{ printf `` $css.RelPermalink | safeHTML }} + + {{ .Title }} + diff --git a/themes/rb/layouts/partials/header.html b/themes/rb/layouts/partials/header.html new file mode 100644 index 0000000..9a66449 --- /dev/null +++ b/themes/rb/layouts/partials/header.html @@ -0,0 +1,12 @@ + diff --git a/themes/rb/layouts/partials/posts.html b/themes/rb/layouts/partials/posts.html new file mode 100644 index 0000000..3d28ff7 --- /dev/null +++ b/themes/rb/layouts/partials/posts.html @@ -0,0 +1,6 @@ +

    {{ i18n "posts.title" }}

    + diff --git a/themes/rb/layouts/project/section.html b/themes/rb/layouts/project/section.html new file mode 100644 index 0000000..fa59dd6 --- /dev/null +++ b/themes/rb/layouts/project/section.html @@ -0,0 +1,14 @@ +{{ define "main" }} +

    {{ .Title }}

    + + +{{ .Content }} +{{ end }} diff --git a/themes/rb/layouts/shortcodes/toc.html b/themes/rb/layouts/shortcodes/toc.html new file mode 100644 index 0000000..22da6e7 --- /dev/null +++ b/themes/rb/layouts/shortcodes/toc.html @@ -0,0 +1,4 @@ + diff --git a/themes/rb/theme.toml b/themes/rb/theme.toml new file mode 100644 index 0000000..07f201a --- /dev/null +++ b/themes/rb/theme.toml @@ -0,0 +1,13 @@ +name = "Etch" +license = "MIT" +licenselink = "https://github.com/LukasJoswiak/etch/blob/master/LICENSE" +description = "Lightweight Hugo theme with a focus on content" +homepage = "https://github.com/LukasJoswiak/etch" +demosite = "https://lukasjoswiak.github.io/etch/" +tags = ["simple", "minimal", "clean", "fast", "blog", "responsive", "dark mode", "privacy"] +features = ["fast", "blog", "syntax highlighting", "dark mode"] +min_version = "0.41" + +[author] + name = "Lukas Joswiak" + homepage = "https://lukasjoswiak.com"