diff --git a/README.md b/README.md index 49727ab..8a3e57c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Website -This is the source code for my personal website. It is built using [Hugo](https://gohugo.io/) and a custom theme. +This is the source code for my personal website. It is built using [Hugo](https://gohugo.io/) and a slightly customized [theme](https://github.com/hugo-sid/hugo-blog-awesome). ## Development diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index 00e77bd..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - diff --git a/assets/icons/site.webmanifest b/assets/icons/site.webmanifest deleted file mode 100644 index 45dc8a2..0000000 --- a/assets/icons/site.webmanifest +++ /dev/null @@ -1 +0,0 @@ -{"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/assets/sass/_layout.scss b/assets/sass/_layout.scss new file mode 100644 index 0000000..ae33c3c --- /dev/null +++ b/assets/sass/_layout.scss @@ -0,0 +1,267 @@ +// Author +.author { + margin-top: 6.3rem; + margin-bottom: 7.2rem; + text-align: center; + + @include media-query($on-mobile) { + margin-bottom: 3em; + } + + .author-avatar { + width: 70px; + height: 70px; + border-radius: 100%; + user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + opacity: 1; + object-fit: cover; + } + + .author-name { + font-size: 1.7em; + margin-bottom: 2px; + } + + .author-bio { + margin: 0 auto; + opacity: 0.9; + max-width: 393px; + line-height: 1.688; + } +} + +// Content +.posts-item-note { + padding-bottom: .3rem; + font-weight: 500; + color: $black; +} + +// List of posts +.post-item { + display: flex; + padding-top: 5px; + padding-bottom: 6px; + justify-content: space-between; + flex-direction: row; + align-items: center; + + &:not(:first-child) { + border-top: 1px solid $light; + } + + .post-item-date { + min-width: 96px; + color: $black; + + @include media-query($on-mobile) { + font-size: 16px; + } + } + + .post-item-title { + margin: 0; + border: 0; + padding: 0; + font-size: $base-font-size; + font-weight: normal; + letter-spacing: 0.1px; + + @include media-query($on-mobile) { + max-width: 15rem; + } + + a { + color: $text-base-color; + transition: all 150ms ease-in 0s; + + &:hover, + &focus { + color: $black; + } + } + } +} + +// Footer +.footer { + margin-top: 8em; + margin-bottom: 2em; + text-align: center; + + @include media-query($on-mobile) { + margin-top: 3em; + } + + span.footer_item { + opacity: 0.8; + font-weight: $bold-weight; + font-size: $small-font-size; + } + + a.footer_item { + opacity: 0.8; + text-decoration: none; + + &:not(:last-child) { + margin-right: 10px; + + &:hover { + opacity: 1; + } + } + } + + &_copyright { + font-size: $small-font-size - 1; + display: block; + color: $gray; + opacity: 0.8; + margin-top: .7rem; + padding: .3rem .95rem; + } + + &_social-icons { + a { + text-decoration: none; + margin-right: .31rem; + + } + + svg { + color: #888a90; + height: 24px; + width: 24px; + + &:hover { + color: rgb(221, 221, 221); + } + } + + } +} + +.not-found { + text-align: center; + display: flex; + justify-content: center; + flex-direction: column; + height: 75vh; + + .title { + font-size: 5em; + font-weight: $bold-weight; + line-height: 1.1; + color: $black; + text-shadow: 1px 0px 0px $text-link-blue; + } + + .phrase { + color: $text-base-color; + } + + .solution { + color: $text-link-blue; + letter-spacing: 0.5px; + } + + .solution:hover { + color: $text-link-blue-active; + } +} + + +.search-article { + position: relative; + margin-bottom: 50px; + + label[for="search-input"] { + position: relative; + top: 10px; + left: 11px; + } + + input[type="search"] { + top: 0; + left: 0; + border: 0; + width: 100%; + height: 40px; + outline: none; + position: absolute; + border-radius: 5px; + padding: 10px 10px 10px 35px; + color: $text-base-color; + -webkit-appearance: none; + font-size: $base-font-size; + background-color: rgba(128, 128, 128, 0.1); + border: 1px solid rgba(128, 128, 128, 0.1); + + &::-webkit-input-placeholder { + color: #808080; + } + + &::-webkit-search-decoration, + &::-webkit-search-results-decoration { + display: none; + } + } +} + +#search-results { + text-align: center; + + li { + text-align: left; + } +} + +.archive-tags { + height: auto; + + .tag-item { + padding: 1px 3px; + border-radius: 2px; + border: 1px solid rgba(128, 128, 128, 0.1); + background-color: rgba(128, 128, 128, 0.1); + } +} + + +/* Add styles for sub, sup, kbd, mark */ + +sub, +sup { + font-size: 79%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +kbd { + font-size: 85%; + border-radius: 3px; + color: $inline-code-text; + background: $inline-code-bg; + display: inline-block; + font-family: Consolas, monaco, monospace; + line-height: 1; + padding: 2px 4px; + white-space: nowrap; +} + +mark { + background: #ff0; + color: #000; + border-radius: 3px; +} \ No newline at end of file diff --git a/themes/rsturla/assets/sass/_navbar.scss b/assets/sass/_navbar.scss similarity index 100% rename from themes/rsturla/assets/sass/_navbar.scss rename to assets/sass/_navbar.scss diff --git a/data/.gitkeep b/data/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..af502c8 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/rsturla/website + +go 1.23.3 + +require github.com/hugo-sid/hugo-blog-awesome v1.18.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..a04fbac --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/hugo-sid/hugo-blog-awesome v1.18.0 h1:9+eWINeZCeQ/LL6P0cxRDAxvbfnsJlydkgCSNs+DGlY= +github.com/hugo-sid/hugo-blog-awesome v1.18.0/go.mod h1:3XVERF66wgQpTsruOajS5Swr+uvyTzov1acafNaqm1E= diff --git a/hugo.toml b/hugo.toml index 4655ce1..4fab4c1 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,14 +2,18 @@ baseURL = 'https://robert.sturla.tech/' title = 'Robert Sturla' languageCode = 'en-gb' defaultContentLanguage = "en-gb" -theme = "rsturla" enableRobotsTXT = true googleAnalytics = 'G-2TB8CV0J6V' +[module] + [[module.imports]] + path = "github.com/hugo-sid/hugo-blog-awesome" + + [params.author] name = "Robert Sturla" avatar = "img/work-gopher.png" - description = "A Platform Engineer passionate about Cloud and Cyber Security." + description = "A Security Engineer with a passion for Cloud, DevOps, and Automation" ###################### @@ -56,3 +60,40 @@ url = "https://www.linkedin.com/in/robert-sturla/" goToTop = true mainSections = ['blog'] description = "Robert Sturla's personal website and blog" + +[minify] + disableCSS = false + disableHTML = false + disableJS = false + disableJSON = false + disableSVG = false + disableXML = false + minifyOutput = false + [minify.tdewolff] + [minify.tdewolff.css] + inline = false + keepCSS2 = true + precision = 0 + [minify.tdewolff.html] + keepComments = false + keepConditionalComments = false + keepDefaultAttrVals = true + keepDocumentTags = true + keepEndTags = true + keepQuotes = false + keepSpecialComments = true + keepWhitespace = false + templateDelims = ['', ''] + [minify.tdewolff.js] + keepVarNames = false + precision = 0 + version = 2022 + [minify.tdewolff.json] + keepNumbers = false + precision = 0 + [minify.tdewolff.svg] + inline = false + keepComments = false + precision = 0 + [minify.tdewolff.xml] + keepWhitespace = false diff --git a/themes/rsturla/layouts/partials/bio.html b/layouts/partials/bio.html similarity index 68% rename from themes/rsturla/layouts/partials/bio.html rename to layouts/partials/bio.html index b54e39a..121d960 100644 --- a/themes/rsturla/layouts/partials/bio.html +++ b/layouts/partials/bio.html @@ -1,14 +1,18 @@ {{ $avatar_img := .Site.Params.author.avatar }} {{ $avatar_img_alt := .Site.Params.author.name }} {{ $image := resources.Get $avatar_img }} -
{{ with $image }} + {{ if eq .MediaType.SubType "svg" }} + + + + {{ else }} {{ $image := $image.Fill "100x100 webp" }} {{ $avatar_img_alt }} {{ end }} - + {{ end }}

{{ .Site.Params.author.name }}

{{ .Site.Params.author.description }}

-
+ \ No newline at end of file diff --git a/themes/rsturla/layouts/partials/header.html b/layouts/partials/header.html similarity index 58% rename from themes/rsturla/layouts/partials/header.html rename to layouts/partials/header.html index a13c9b6..ac169c2 100644 --- a/themes/rsturla/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -39,6 +39,35 @@ + + {{ if .IsTranslated }} +
  • + +
  • + + {{ end }} {{ partial "svgs/sun.svg" (dict "height" 21 "width" 21 "class" "mode-sunny" "title" "LIGHT") . }} @@ -46,4 +75,4 @@ - + \ No newline at end of file diff --git a/layouts/partials/meta/standard.html b/layouts/partials/meta/standard.html new file mode 100644 index 0000000..e6be2c5 --- /dev/null +++ b/layouts/partials/meta/standard.html @@ -0,0 +1,58 @@ + + + + +{{/* If site and page titles are equal, display once */}} +{{- $page_title := "" -}} +{{- if eq .Title .Site.Title -}} +{{- $page_title = .Site.Title -}} +{{- else }} +{{- $page_title = printf "%s - %s" .Title .Site.Title -}} +{{- end }} + +{{ $page_title }} + + + + + + +{{/* Define empty variable description */}} +{{- $description := "" -}} + +{{/* If description is defined in front matter, use it */}} +{{- if .Params.description -}} +{{- $description = trim .Params.description "\n" -}} +{{/* If description is not defined in front matter, use site description */}} +{{- else if .Site.Params.description -}} +{{- $description = trim .Site.Params.description "\n" -}} +{{- end -}} + + + + + + + + +{{ range .AllTranslations }} + +{{ end }} + +{{/* Define empty variable image */}} +{{- $image := "" -}} + +{{/* If image is defined in front matter, use it */}} +{{- if .Params.image -}} +{{- $image = .Params.image -}} +{{/* If image is not defined in front matter, use site ogimage */}} +{{- else if .Site.Params.ogimage -}} +{{- $image = .Site.Params.ogimage -}} +{{- end -}} + +{{- if $image -}} + + + + +{{- end -}} \ No newline at end of file diff --git a/static/.gitkeep b/static/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/themes/rsturla/archetypes/default.md b/themes/rsturla/archetypes/default.md deleted file mode 100644 index c286317..0000000 --- a/themes/rsturla/archetypes/default.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: -date: {{ .Date }} -draft: true -description: ---- - diff --git a/themes/rsturla/assets/code-highlight.css b/themes/rsturla/assets/code-highlight.css deleted file mode 100644 index 701e3c5..0000000 Binary files a/themes/rsturla/assets/code-highlight.css and /dev/null differ diff --git a/themes/rsturla/assets/icons/site.webmanifest b/themes/rsturla/assets/icons/site.webmanifest deleted file mode 100644 index 7f8c755..0000000 --- a/themes/rsturla/assets/icons/site.webmanifest +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "{{ .name }}", - "short_name": "{{ .short_name }}", - "start_url": "{{ .start_url }}", - "theme_color": "{{ .theme_color }}", - "background_color": "{{ .background_color }}", - "display": "{{ .display }}", - "icons": [ - { - "src": "{{ (resources.Get "/icons/android-chrome-192x192.png").RelPermalink }}", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "{{ (resources.Get "/icons/android-chrome-512x512.png").RelPermalink }}", - "sizes": "512x512", - "type": "image/png" - } - ] -} diff --git a/themes/rsturla/assets/js/goToTop.js b/themes/rsturla/assets/js/goToTop.js deleted file mode 100644 index 8182ae2..0000000 --- a/themes/rsturla/assets/js/goToTop.js +++ /dev/null @@ -1,16 +0,0 @@ -window.addEventListener('load', () => { - const gttButton = document.getElementById("totop"); - if (!gttButton) return; - window.onscroll = () => { - if ( - document.body.scrollTop > 300 || - document.documentElement.scrollTop > 300 - ) { - gttButton.style.visibility = "visible"; - gttButton.style.opacity = "1"; - } else { - gttButton.style.visibility = "hidden"; - gttButton.style.opacity = "0"; - } - }; -}); diff --git a/themes/rsturla/assets/js/main.js b/themes/rsturla/assets/js/main.js deleted file mode 100644 index ad9a93a..0000000 --- a/themes/rsturla/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -'use strict'; diff --git a/themes/rsturla/assets/js/theme.js b/themes/rsturla/assets/js/theme.js deleted file mode 100644 index 630f0d0..0000000 --- a/themes/rsturla/assets/js/theme.js +++ /dev/null @@ -1,77 +0,0 @@ -(() => { - "use strict"; - const LS_THEME_KEY = "theme"; - const THEMES = { - LIGHT: "light", - DARK: "dark", - AUTO: "auto", - }; - - const body = document.body; - const config = body.getAttribute("data-theme"); - - const getThemeState = () => { - const lsState = localStorage.getItem(LS_THEME_KEY); - if (lsState) return lsState; - - let state; - switch (config) { - case THEMES.DARK: - state = THEMES.DARK; - break; - case THEMES.LIGHT: - state = THEMES.LIGHT; - break; - case THEMES.AUTO: - default: - state = window.matchMedia("(prefers-color-scheme: dark)") - .matches - ? THEMES.DARK - : THEMES.LIGHT; - break; - } - return state; - }; - - const initTheme = (state) => { - if (state === THEMES.DARK) { - document.documentElement.classList.add(THEMES.DARK); - document.documentElement.classList.remove(THEMES.LIGHT); - } else if (state === THEMES.LIGHT) { - document.documentElement.classList.remove(THEMES.DARK); - document.documentElement.classList.add(THEMES.LIGHT); - } - }; - - // init theme ASAP, then do the rest. - initTheme(getThemeState()); - requestAnimationFrame(() => body.classList.remove("notransition")) - setTimeout(() => { - const toggleTheme = () => { - const state = getThemeState(); - if (state === THEMES.DARK) { - localStorage.setItem(LS_THEME_KEY, THEMES.LIGHT); - initTheme(THEMES.LIGHT); - } else if (state === THEMES.LIGHT) { - localStorage.setItem(LS_THEME_KEY, THEMES.DARK); - initTheme(THEMES.DARK); - } - }; - - window.addEventListener("DOMContentLoaded", () => { - // Theme switch - const lamp = document.getElementById("mode"); - - lamp.addEventListener("click", () => toggleTheme()); - - // Blur the content when the menu is open - const cbox = document.getElementById("menu-trigger"); - - cbox.addEventListener("change", function () { - const area = document.querySelector(".wrapper"); - if (this.checked) return area.classList.add("blurry"); - area.classList.remove("blurry"); - }); - }); - }, 0) -})(); diff --git a/themes/rsturla/assets/sass/_base.scss b/themes/rsturla/assets/sass/_base.scss deleted file mode 100644 index 89e1ac8..0000000 --- a/themes/rsturla/assets/sass/_base.scss +++ /dev/null @@ -1,324 +0,0 @@ -// Reset some basic elements -* { - -webkit-transition: background-color 75ms ease-in, border-color 75ms ease-in; - -moz-transition: background-color 75ms ease-in, border-color 75ms ease-in; - -ms-transition: background-color 75ms ease-in, border-color 75ms ease-in; - -o-transition: background-color 75ms ease-in, border-color 75ms ease-in; - transition: background-color 75ms ease-in, border-color 75ms ease-in; -} - -.notransition { - -webkit-transition: none; - -moz-transition: none; - -ms-transition: none; - -o-transition: none; - transition: none; -} - -html { - overflow-x: hidden; - width: 100%; -} - -body, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -hr, -dl, -dd, -ol, -ul, -figure { - margin: 0; - padding: 0; -} - -// Basic styling -body { - min-height: 100vh; - overflow-x: hidden; - position: relative; - color: $text-base-color; - background-color: $white; - font: $normal-weight #{$base-font-size}/#{$base-line-height} $sans-family; - -webkit-text-size-adjust: 100%; - -webkit-font-smoothing: antialiased; - -webkit-font-feature-settings: "kern" 1; - -moz-font-feature-settings: "kern" 1; - -o-font-feature-settings: "kern" 1; - font-feature-settings: "kern" 1; - font-kerning: normal; - box-sizing: border-box; -} - -// Set `margin-bottom` to maintain vertical rhythm -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -ul, -ol, -dl, -figure, -%vertical-rhythm { - margin-top: $spacing-full - 20; - margin-bottom: $spacing-full - 20; -} - -// strong | bold -strong, -b { - font-weight: $bold-weight; - color: $black; -} - -// horizontal rule -hr { - border-bottom: 0; - border-style: solid; - border-color: $light; -} - -// Image -img { - max-width: 100%; - vertical-align: middle; - -webkit-user-drag: none; - margin: 0 auto; - text-align: center; -} - -// Figure -figure { - position: relative; -} - -// Image inside Figure tag -figure > img { - display: block; - position: relative; -} - -// Image caption -figcaption { - font-size: 13px; - text-align: center; -} - -// Lists -ul { - li { - display: list-item; - text-align: -webkit-match-parent; - } -} - -ol { - li { - position: relative; - } -} - -ul, -ol { - margin-top: 0; - margin-left: $spacing-full; -} - -li { - padding-bottom: 1px; - padding-top: 1px; - - &:before { - color: $black; - } - - > ul, - > ol { - margin-bottom: 2px; - margin-top: 0; - } -} - -// Headings -h1, -h2, -h3, -h4, -h5, -h6 { - color: $black; - font-weight: $bold-weight; - & + ul, - & + ol { - margin-top: 10px; - } - - @include media-query($on-mobile) { - scroll-margin-top: 65px; - } -} - -// Headings with link -h1 > a, -h2 > a, -h3 > a, -h4 > a, -h5 > a, -h6 > a { - text-decoration: none; - border: none; - - &:hover { - text-decoration: none; - border: none; - } -} - -// Link -a { - color: inherit; - text-decoration-color: $smoke; - - &:hover { - color: $text-link-blue; - } - - &:focus { - outline: 3px solid rgba(0, 54, 199, 0.6); - outline-offset: 2px; - } -} - -// Del -del { - color: inherit; -} - -// Em -em { - color: inherit; -} - -// Blockquotes -blockquote { - color: $blockquote-text; - opacity: 0.9; - border-left: 5px solid $bloquote-border; - padding: 0 0 0 1rem; - margin-left: .3rem; - margin-right: .3rem; - font-size: 1em; - - > :last-child { - margin-bottom: 0; - margin-top: 0; - } -} - -// Wrapper -.wrapper { - max-width: -webkit-calc(#{$narrow-size} - (#{$spacing-full} * 2)); - max-width: calc(#{$narrow-size} - (#{$spacing-full} * 2)); - position: relative; - margin-right: auto; - margin-left: auto; - padding-right: $spacing-full; - padding-left: $spacing-full; - @extend %clearfix; - - @include media-query($on-mobile) { - max-width: -webkit-calc(#{$narrow-size} - (#{$spacing-full})); - max-width: calc(#{$narrow-size} - (#{$spacing-full})); - padding-right: $spacing-full - 10; - padding-left: $spacing-full - 10; - - &.blurry { - animation: 0.2s ease-in forwards blur; - -webkit-animation: 0.2s ease-in forwards blur; - } - } -} - -// Underline -u { - text-decoration-color: #d2c7c7; -} - -// Small -small { - font-size: $small-font-size; -} - -// Superscript -sup { - border-radius: 10%; - top: -3px; - left: 2px; - font-size: small; - position: relative; - margin-right: 2px; -} - -// Table -.overflow-table { - overflow-x: auto; -} - -table { - width: 100%; - margin-top: $spacing-half; - border-collapse: collapse; - font-size: $small-font-size; - - thead { - font-weight: $bold-weight; - color: $black; - border-bottom: 1px solid $light; - } - - th, - td, - tr { - border: 1px solid $light; - padding: 2px 7px; - } -} - -// Clearfix -%clearfix:after { - content: ""; - display: table; - clear: both; -} - -// When mouse block a text set this color -mark, -::selection { - background: #fffba0; - color: $black; -} - -// Github Gist clear border -.gist { - table { - border: 0; - - tr, - td { - border: 0; - } - } -} diff --git a/themes/rsturla/assets/sass/_code.scss b/themes/rsturla/assets/sass/_code.scss deleted file mode 100644 index 42f87e2..0000000 --- a/themes/rsturla/assets/sass/_code.scss +++ /dev/null @@ -1,201 +0,0 @@ -// Code -code { - font-family: $mono-family; - text-rendering: optimizeLegibility; - font-feature-settings: "calt" 1; - font-variant-ligatures: normal; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - font-size: inherit; -} - -p > code { - font-size: 0.9em; - padding: 1px 3px; - position: relative; - top: -1px; - color: $inline-code-text; - background-color: $inline-code-bg; - border-radius: 2px; - border: 1px solid rgba(128,128,128,0.1); -} -// Codeblock Theme -pre { - background-color: #1a1b21; - border-radius: .3rem; - padding: .5rem 1rem; - display: block; - overflow-x: auto; - - @include media-query($on-mobile) { - margin: 0 calc(51% - 51vw); - } - - // Configure scrollbars for code blocks - &::-webkit-scrollbar { - height: .5rem; - } - // Set scrollbar background, track and thumb colors - &::-webkit-scrollbar-track { - background: #606071; - border-radius: .1rem; - } - &::-webkit-scrollbar-thumb { - background: #999ea2; - border-radius: .3rem; - } - &::-webkit-scrollbar-thumb:hover { - background: #424546; - } - - > code { - color: white; - max-width: 50rem; - margin-left: auto; - margin-right: auto; - line-height: 1.5; - display: block; - border: 0; - } -} - -.highlight table td { - padding: 5px; -} - -.highlight table pre { - margin: 0; -} - -.highlight, -.highlight .w { - color: #fbf1c7; - // background-color: #1a1b21; -} - -.highlight .err { - color: #fb4934; - // background-color: #1a1b21; - font-weight: bold; -} - -.highlight .c, -.highlight .cd, -.highlight .cm, -.highlight .c1, -.highlight .cs { - color: #928374; - font-style: italic; -} - -.highlight .cp { - color: #8ec07c; -} - -.highlight .nt { - color: #fb4934; -} - -.highlight .o, -.highlight .ow { - color: #fbf1c7; -} - -.highlight .p, -.highlight .pi { - color: #fbf1c7; -} - -.highlight .gi { - color: #b8bb26; - background-color: #282828; -} - -.highlight .gd { - color: #fb4934; - background-color: #282828; -} - -.highlight .gh { - color: #b8bb26; - font-weight: bold; -} - -.highlight .k, -.highlight .kn, -.highlight .kp, -.highlight .kr, -.highlight .kv { - color: #fb4934; -} - -.highlight .kc { - color: #d3869b; -} - -.highlight .kt { - color: #fabd2f; -} - -.highlight .kd { - color: #fe8019; -} - -.highlight .s, -.highlight .sb, -.highlight .sc, -.highlight .sd, -.highlight .s2, -.highlight .sh, -.highlight .sx, -.highlight .s1 { - color: #b8bb26; - font-style: italic; -} - -.highlight .si { - color: #b8bb26; - font-style: italic; -} - -.highlight .sr { - color: #b8bb26; - font-style: italic; -} - -.highlight .se { - color: #fe8019; -} - -.highlight .nn { - color: #8ec07c; -} - -.highlight .nc { - color: #8ec07c; -} - -.highlight .no { - color: #d3869b; -} - -.highlight .na { - color: #b8bb26; -} - -.highlight .m, -.highlight .mf, -.highlight .mh, -.highlight .mi, -.highlight .il, -.highlight .mo, -.highlight .mb, -.highlight .mx { - color: #d3869b; -} - -.highlight .ss { - color: #83a598; -} diff --git a/themes/rsturla/assets/sass/_dark.scss b/themes/rsturla/assets/sass/_dark.scss deleted file mode 100644 index 0dff707..0000000 --- a/themes/rsturla/assets/sass/_dark.scss +++ /dev/null @@ -1,286 +0,0 @@ -@mixin dark-mode { - body { - color: $dark-text-base-color; - background-color: $dark-black; - } - - // Headings - h1, - h2, - h3, - h4, - h5, - h6 { - color: $dark-white; - } - - // Table - table { - thead { - color: $dark-white; - border-color: $dark-light; - } - - th, - td, - tr { - border-color: $dark-light; - } - } - - // Post - .page-content { - a { - color: $dark-text-link-blue; - - &:hover, - &:active, - &:focus { - color: $dark-text-link-blue-active; - } - } - - h3 { - border-color: $dark-light; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - .anchor-head { - color: $dark-text-link-blue; - } - } - } - - // ToC - .toc { - background-color: $dark-toc-bg; - } - - // Go to top - #totop { - color: $dark-text-base-color; - background-color: $dark-go-top-bg; - - &:hover { - background-color: $dark-go-top-bg-hover; - } - } - - // Inline code - li>code, - p>code { - font-size: 0.9em; - padding: 1px 3px; - position: relative; - top: -1px; - color: $dark-inline-code-text; - background-color: $dark-inline-code-bg; - border-radius: 2px; - border: 1px solid rgba(128, 128, 128, 0.1); - } - - // kbd tag - kbd { - color: $dark-inline-code-text; - background-color: $dark-inline-code-bg; - } - - // horizontal rule - hr { - border-color: $dark-light; - } - - // Post Meta - .post-meta { - color: $dark-gray; - - time { - &::after { - background-color: $dark-light; - } - } - - span[itemprop="author"] { - border-color: $dark-light; - } - } - - // Link - a { - color: inherit; - text-decoration-color: $dark-smoke; - - &:hover { - color: $dark-text-link-blue; - } - - &:focus { - outline-color: rgba(44, 118, 246, 0.6); - } - } - - // List - li { - &:before { - color: $dark-white; - } - } - - // Blockquote - blockquote { - color: $dark-blockquote-text; - border-color: $dark-bloquote-border; - } - - // Strong, Bold - strong, - b { - color: $dark-white; - } - - // Navbar - .navbar { - border-color: $dark-light; - - .menu { - a#mode { - .mode-sunny { - display: block; - } - - .mode-moon { - display: none; - } - } - - .menu-link { - color: $dark-white; - } - - @include media-query($on-mobile) { - background-color: $dark-black; - border-color: $dark-light; - - input[type="checkbox"]:checked~.trigger { - background: $dark-black; - } - } - } - } - - // Post Item - .post-item { - &:not(:first-child) { - border-color: $dark-light; - } - - .post-item-date { - color: $dark-white; - } - - .post-item-title { - a { - color: $dark-text-base-color; - - &:hover, - &focus { - color: $dark-white; - } - } - } - } - - // Post Navigation - .post-nav { - border-color: $dark-light; - - .post-nav-item { - font-weight: $bold-weight; - - .post-title { - color: $dark-white; - opacity: 0.9; - } - - &:hover, - &:focus { - .post-title { - color: $dark-text-link-blue-active; - } - } - - .nav-arrow { - color: $dark-gray; - } - } - - @include media-query($on-mobile) { - .post-nav-item:nth-child(even) { - border-color: $dark-light; - } - } - } - - // Footer - .footer { - span.footer_item { - color: $dark-white; - } - - a.footer_item:not(:last-child) { - color: $dark-white; - } - - .footer_copyright { - color: $dark-gray; - opacity: 1; - } - } - - // 404 Page - .not-found { - .title { - color: $dark-white; - text-shadow: 1px 0px 0px $dark-text-link-blue; - } - - .phrase { - color: $dark-text-base-color; - } - - .solution { - color: $dark-text-link-blue; - } - - .solution:hover { - color: $dark-text-link-blue-active; - } - } - - .search-article { - input[type="search"] { - color: $dark-text-base-color; - - &::-webkit-input-placeholder { - color: rgba(128, 128, 128, 0.8); - } - } - } -} - -// support JS disabled environment with media query -@media (prefers-color-scheme: dark) { - // use "light" class to avoid style conflicts in js enabled environment - html:not(.light) { - @include dark-mode() - } -} - -html.dark { - @include dark-mode() -} diff --git a/themes/rsturla/assets/sass/_fonts.scss b/themes/rsturla/assets/sass/_fonts.scss deleted file mode 100644 index c2a97d7..0000000 --- a/themes/rsturla/assets/sass/_fonts.scss +++ /dev/null @@ -1,14 +0,0 @@ -@charset "utf-8"; -/* roboto-regular - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Roboto'; - font-style: normal; - font-weight: 400; - src: url(fonts/Roboto/roboto-v30-latin-regular.eot); /* IE9 Compat Modes */ - src: url(fonts/Roboto/roboto-v30-latin-regular.eot?#iefix) format('embedded-opentype'), /* IE6-IE8 */ - url(fonts/Roboto/roboto-v30-latin-regular.woff2) format('woff2'), /* Super Modern Browsers */ - url(fonts/Roboto/roboto-v30-latin-regular.woff) format('woff'), /* Modern Browsers */ - url(fonts/Roboto/roboto-v30-latin-regular.ttf) format('truetype'), /* Safari, Android, iOS */ - url(fonts/Roboto/roboto-v30-latin-regular.svg#Roboto) format('svg'); /* Legacy iOS */ -} diff --git a/themes/rsturla/assets/sass/_goToTop.scss b/themes/rsturla/assets/sass/_goToTop.scss deleted file mode 100644 index 6fc2707..0000000 --- a/themes/rsturla/assets/sass/_goToTop.scss +++ /dev/null @@ -1,28 +0,0 @@ -/* Scroll to top button */ -html { - scroll-behavior: smooth; -} - -#totop { - visibility: hidden; - color: $text-base-color; - position: fixed; - bottom: 60px; - right: 30px; - z-index: 1; - border-radius: 10%; - background-color: $go-top-bg; - transition: visibility .5s,opacity .8s linear; - - &:hover { - background-color: $go-top-bg-hover; - } - - // center align icon vertically - svg { - margin: auto; - display: block; - height: 40px; - width: 40px; - } -} diff --git a/themes/rsturla/assets/sass/_layout.scss b/themes/rsturla/assets/sass/_layout.scss deleted file mode 100644 index aafbd76..0000000 --- a/themes/rsturla/assets/sass/_layout.scss +++ /dev/null @@ -1,252 +0,0 @@ -// Author -.author { - margin-top: 6.3rem; - margin-bottom: 7.2rem; - text-align: center; - - @include media-query($on-mobile) { - margin-bottom: 3em; - } - - .author-avatar { - width: 90px; - height: 90px; - border-radius: 100%; - user-select: none; - // background-color: $dark-black; - -ms-user-select: none; - -webkit-user-select: none; - -webkit-animation: 0.5s ease-in forwards fadein; - animation: 0.5s ease-in forwards fadein; - opacity: 1; - object-fit: cover; - } - - .author-name { - font-size: 1.7em; - margin-bottom: 2px; - } - - .author-bio { - margin: 0 auto; - opacity: 0.9; - max-width: 393px; - line-height: 1.688; - } -} - -// Content -.posts-item-note { - padding-bottom: .3rem; - font-weight: 500; - color: $black; -} - -// List of posts -.post-item { - display: flex; - padding-top: 5px; - padding-bottom: 6px; - justify-content: space-between; - flex-direction: row; - align-items: center; - - &:not(:first-child) { - border-top: 1px solid $light; - } - - .post-item-date { - min-width: 96px; - color: $black; - - @include media-query($on-mobile) { - font-size: 16px; - } - } - - .post-item-title { - margin: 0; - border: 0; - padding: 0; - font-size: $base-font-size; - font-weight: normal; - letter-spacing: 0.1px; - - a { - color: $text-base-color; - - &:hover, - &focus { - color: $black; - } - } - } -} - -// Footer -.footer { - margin-top: 8em; - margin-bottom: 2em; - text-align: center; - - @include media-query($on-mobile) { - margin-top: 3em; - } - - span.footer_item { - opacity: 0.8; - font-weight: $bold-weight; - font-size: $small-font-size; - } - - a.footer_item { - opacity: 0.8; - text-decoration: none; - - &:not(:last-child) { - margin-right: 10px; - &:hover { - opacity: 1; - } - } - } - - &_copyright { - font-size: $small-font-size - 1; - display: block; - color: $gray; - opacity: 0.8; - margin-top: .7rem; - padding: .3rem .95rem; - } - - &_social-icons { - a { - text-decoration: none; - margin-right: .7rem; - } - svg { - color: #888a90; - height: 24px; - width: 24px; - &:hover { - color: rgb(221, 221, 221); - } - } - - } -} - -.not-found { - text-align: center; - display: flex; - justify-content: center; - flex-direction: column; - height: 75vh; - .title { - font-size: 5em; - font-weight: $bold-weight; - line-height: 1.1; - color: $black; - text-shadow: 1px 0px 0px $text-link-blue; - } - .phrase { - color: $text-base-color; - } - .solution { - color: $text-link-blue; - letter-spacing: 0.5px; - } - .solution:hover { - color: $text-link-blue-active; - } -} - - -.search-article { - position: relative; - margin-bottom: 50px; - - label[for="search-input"] { - position: relative; - top: 10px; - left: 11px; - } - - input[type="search"] { - top: 0; - left: 0; - border: 0; - width: 100%; - height: 40px; - outline: none; - position: absolute; - border-radius: 5px; - padding: 10px 10px 10px 35px; - color: $text-base-color; - -webkit-appearance: none; - font-size: $base-font-size; - background-color: rgba(128, 128, 128, 0.1); - border: 1px solid rgba(128, 128, 128, 0.1); - &::-webkit-input-placeholder { - color: #808080; - } - &::-webkit-search-decoration, - &::-webkit-search-results-decoration { - display: none; - } - } -} - -#search-results { - text-align: center; - li { - text-align: left; - } -} - -.archive-tags { - height: auto; - .tag-item { - padding: 1px 3px; - border-radius: 2px; - border: 1px solid rgba(128, 128, 128, 0.1); - background-color: rgba(128, 128, 128, 0.1); - } -} - - -/* Add styles for sub, sup, kbd, mark */ - -sub, sup { - font-size: 79%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -kbd { - font-size: 85%; - border-radius: 3px; - color: $inline-code-text; - background: $inline-code-bg; - display: inline-block; - font-family: Consolas, monaco, monospace; - line-height: 1; - padding: 2px 4px; - white-space: nowrap; -} - -mark { - background: #ff0; - color: #000; - border-radius: 3px; -} diff --git a/themes/rsturla/assets/sass/_listpage.scss b/themes/rsturla/assets/sass/_listpage.scss deleted file mode 100644 index f572438..0000000 --- a/themes/rsturla/assets/sass/_listpage.scss +++ /dev/null @@ -1,3 +0,0 @@ -.list-page .post-year { - padding-bottom: .5rem; -} \ No newline at end of file diff --git a/themes/rsturla/assets/sass/_miscellaneous.scss b/themes/rsturla/assets/sass/_miscellaneous.scss deleted file mode 100644 index 5477bbc..0000000 --- a/themes/rsturla/assets/sass/_miscellaneous.scss +++ /dev/null @@ -1,47 +0,0 @@ -// Animation fade-in -@keyframes fadein { - 0% { - opacity: 0.2; - } - - 100% { - opacity: 1; - } -} - -// Animation blur -@keyframes blur { - 0% { - filter: blur(0px); - } - - 100% { - filter: blur(4px); - } -} - -// Responsive embed video -.embed-responsive { - height: 0; - max-width: 100%; - overflow: hidden; - position: relative; - padding-bottom: 56.25%; - margin-top: 20px; - - iframe, - object, - embed { - top: 0; - left: 0; - width: 100%; - height: 100%; - position: absolute; - } -} - -// 404 page -.main-404 { - padding: 9rem 0; - text-align: center; -} diff --git a/themes/rsturla/assets/sass/_post.scss b/themes/rsturla/assets/sass/_post.scss deleted file mode 100644 index d0a099b..0000000 --- a/themes/rsturla/assets/sass/_post.scss +++ /dev/null @@ -1,235 +0,0 @@ -// Post wrapper -.wrapper.post { - @include media-query($on-mobile) { - padding-left: $spacing-half; - padding-right: $spacing-half; - } -} - -// Post title -.header { - margin-top: 7.8em; - - .header-title { - font-size: 2em; - line-height: 1.2; - margin-top: 10px; - margin-bottom: 20px; - - &.center { - text-align: center; - } - - @include media-query($on-mobile) { - font-size: 1.9em; - } - } -} - -// Post meta -.post-meta { - padding-top: 3px; - line-height: 1.3; - color: $gray; - - time { - position: relative; - margin-right: 1.5em; - } - - span[itemprop="author"] { - border-bottom: 1px dotted $light; - } -} - -// Post content -.page-content { - padding-top: 8px; - - iframe { - text-align: center; - } - - figure { - img { - border-radius: 2px; - } - - figcaption { - margin-top: 5px; - font-style: italic; - font-size: $small-font-size; - } - } - - a { - color: $text-link-blue; - text-decoration: none; - &[target="_blank"]::after { - content: " \2197"; - font-size: $small-font-size; - line-height: 0; - position: relative; - bottom: 5px; - vertical-align: baseline; - } - - &:hover { - color: $text-link-blue-active; - } - - &:focus { - color: $text-link-blue; - } - } - - > p { - margin: 0; - padding-top: $spacing-full - 15; - padding-bottom: $spacing-full - 15; - } - - ul.task-list { - list-style: none; - margin: 0; - - li::before { - content: ""; - } - - li input[type="checkbox"] { - margin-right: 10px; - } - } - - dl dt { - font-weight: $bold-weight; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - color: $black; - font-weight: $bold-weight; - margin-top: $spacing-full; - margin-bottom: 0; - letter-spacing: .03rem; - - &:hover { - .anchor-head { - color: $text-link-blue; - opacity: 1; - } - } - - .anchor-head { - position: relative; - opacity: 0; - outline: none; - - &::before { - content: "#"; - position: absolute; - right: -3px; - width: 1em; - font-weight: $bold-weight; - } - } - } - - h1 { - @include relative-font-size(1.5); - } - - h2 { - @include relative-font-size(1.4); - } - - h3 { - @include relative-font-size(1.2); - } - - h4 { - @include relative-font-size(1.2); - } - - h5 { - @include relative-font-size(1); - } - - h6 { - @include relative-font-size(0.875); - } -} - -.post-nav { - display: flex; - position: relative; - margin-top: 5em; - border-top: 1px solid $light; - line-height: 1.4; - - .post-nav-item { - border-bottom: 0; - font-weight: $bold-weight; - padding-bottom: 10px; - - .post-title { - color: $black; - } - - &:hover, - &:focus { - .post-title { - color: $text-link-blue-active; - opacity: 0.9; - } - } - - .nav-arrow { - font-weight: $normal-weight; - font-size: $small-font-size; - color: $gray; - margin-bottom: 3px; - } - - width: 50%; - padding-top: 10px; - text-decoration: none; - box-sizing: border-box; - - &:nth-child(odd) { - padding-left: 0; - padding-right: 20px; - } - - &:nth-child(even) { - text-align: right; - padding-right: 0; - padding-left: 20px; - } - } - - @include media-query($on-mobile) { - display: block; - font-size: $small-font-size; - - .post-nav-item { - display: block; - width: 100%; - } - - .post-nav-item:nth-child(even) { - border-left: 0; - padding-left: 0; - border-top: 1px solid $light; - } - } -} - -.post-updated-at { - font-family: "Ubuntu mono", "monospace"; -} diff --git a/themes/rsturla/assets/sass/_tableOfContent.scss b/themes/rsturla/assets/sass/_tableOfContent.scss deleted file mode 100644 index 9897fa4..0000000 --- a/themes/rsturla/assets/sass/_tableOfContent.scss +++ /dev/null @@ -1,22 +0,0 @@ -/* Table of contents */ -details { - cursor: pointer; -} - -.toc { - margin: 1.1rem 0 1rem 0; - padding: .5rem 1rem .5rem 1rem; - border-radius: .3rem; - background-color: $toc-bg; - - ul { - padding-top: 1rem; - margin-left: 1rem; - padding-left: 1rem; - - li { - margin-bottom: 0.5em; - line-height: 1.4; - } - } -} diff --git a/themes/rsturla/assets/sass/main.scss b/themes/rsturla/assets/sass/main.scss deleted file mode 100644 index d837dae..0000000 --- a/themes/rsturla/assets/sass/main.scss +++ /dev/null @@ -1,91 +0,0 @@ -//////////////// 1. Light Colors ///////////////// -$text-base-color: #434648; -$text-link-blue: #003fff; -$text-link-blue-active: #0036c7; -$bloquote-border: #c4c8cc; -$blockquote-text: #525b66; -$inline-code-text: #333638; -$inline-code-bg: #d8dbe2; -$toc-bg: #edecec; -$go-top-bg: #dfe0e397; -$go-top-bg-hover: #dfe0e3; - -$black: #0d122b; -$light: #ececec; -$smoke: #d2c7c7; -$gray: #474f57; -$white: #fff; - -//////////////// 2. Dark Colors ///////////////// -$dark-text-base-color: #babdc4; -$dark-text-link-blue: #77a8fd; -$dark-text-link-blue-active: #5292ff; -$dark-bloquote-border: #4a4d56; -$dark-blockquote-text: #9b9ba3; -$dark-inline-code-text: #c2c4ca; -$dark-inline-code-bg: #2d2d2d; -$dark-toc-bg: #323232; -$dark-go-top-bg: #676767b3; -$dark-go-top-bg-hover: #676767; - -$dark-black: #131418; -$dark-white: #eaeaea; -$dark-light: #1b1d25; -$dark-smoke: #4a4d56; -$dark-gray: #8e9499; - -//////////////// 3. Fonts preferences ///////////////// -$sans-family: Roboto, sans-serif; -$mono-family: Consolas, monospace; -$base-font-size: 16px; -$medium-font-size: $base-font-size * 0.938; -$small-font-size: $base-font-size * 0.875; -$base-line-height: 1.85; - -// Font weight -// $light-weight: 300; // uncomment if necessary -$normal-weight: 400; -$bold-weight: 700; -// $black-weight: 900; // uncomment if necessary - -//////////////// 4.Responsive design (media queries) ///////////////// -$wide-size: 890px; -$narrow-size: 720px; - -// Padding unit -$spacing-full: 30px; -$spacing-half: $spacing-full / 2; - -// Screen sizes -$on-mobile: 768px; -$on-tablet: 769px; -$on-desktop: 1024px; -$on-widescreen: 1152px; - -@mixin media-query($device) { - @media screen and (max-width: $device) { - @content; - } -} - -@mixin relative-font-size($ratio) { - font-size: $base-font-size * $ratio; -} - -//////////////// 5. Import all sass files ///////////////// - -@import "fonts"; -@import "base"; -@import "navbar"; -@import "layout"; -@import "post"; -@import "code"; - -@import "tableOfContent"; -@import "miscellaneous"; -@import "dark"; -@import "listpage"; - -{{ with .Site.Params.goToTop }} -@import "goToTop"; -{{ end }} diff --git a/themes/rsturla/layouts/404.html b/themes/rsturla/layouts/404.html deleted file mode 100644 index 07edfa3..0000000 --- a/themes/rsturla/layouts/404.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ define "title"}} - 404 | NOT FOUND -{{ end }} - -{{ define "main"}} -
    -
    -

    404 NOT FOUND

    -

    You just hit a route that doesn't exist.

    -
    -
    -{{ end }} diff --git a/themes/rsturla/layouts/_default/baseof.html b/themes/rsturla/layouts/_default/baseof.html deleted file mode 100644 index 7dc3554..0000000 --- a/themes/rsturla/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ - - - {{- partial "head.html" . -}} - - {{- partial "scriptsBodyStart.html" . -}} - {{- partial "header.html" . -}} - {{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}} - {{- partial "scriptsBodyEnd.html" . -}} - - diff --git a/themes/rsturla/layouts/_default/list.html b/themes/rsturla/layouts/_default/list.html deleted file mode 100644 index 1cd7756..0000000 --- a/themes/rsturla/layouts/_default/list.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- define "main" -}} -
    -
    -

    {{ .Title }}

    -
    -
    - {{ range .Pages.GroupByDate "2006" }} - {{ $year := .Key }} -

    {{ $year }}

    - - {{/* create a list of posts for each month, with month as heading */}} - - {{ range .Pages }} - - {{ partial "postCard" . }} - - {{ end }} {{/* end range .Pages */}} - - {{ end }} {{/* end range .Pages.GroupByDate "2006" */}} - -
    -
    -{{- end -}} diff --git a/themes/rsturla/layouts/_default/single.html b/themes/rsturla/layouts/_default/single.html deleted file mode 100644 index 672b344..0000000 --- a/themes/rsturla/layouts/_default/single.html +++ /dev/null @@ -1,28 +0,0 @@ -{{ define "main" }} -
    -
    -
    -
    -

    {{ .Title }}

    - {{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" .Date }} - -
    - {{- if or .Params.toc .Site.Params.toc }} -
    - Table of Contents - {{ .TableOfContents }} -
    - {{- end -}} -
    - {{ .Content }} -
    -
    - {{- partial "comments.html" . -}} -
    -
    -{{ end }} diff --git a/themes/rsturla/layouts/index.html b/themes/rsturla/layouts/index.html deleted file mode 100644 index a56e550..0000000 --- a/themes/rsturla/layouts/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - -{{- partial "head.html" . -}} - - - {{- partial "scriptsBodyStart.html" . -}} - {{- partial "header.html" . -}} -
    - {{ partial "bio" . }} -
    -

    Recent Posts

    - {{/* Show last 7 posts in reverse date order */}} - {{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.mainSections }} - {{ $posts := $pagesToShow.ByDate.Reverse }} - {{ range first 7 $posts }} - {{ partial "postCard" . }} - {{ end }} - {{ if gt (len $posts) 7 }} -

    - {{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }} - See all posts - {{ end }} -

    - {{ end }} -
    -
    - {{- partial "footer.html" . -}} - {{- partial "scriptsBodyEnd.html" . -}} - - - diff --git a/themes/rsturla/layouts/partials/comments.html b/themes/rsturla/layouts/partials/comments.html deleted file mode 100644 index 99efc4b..0000000 --- a/themes/rsturla/layouts/partials/comments.html +++ /dev/null @@ -1,4 +0,0 @@ -{{- if .Site.DisqusShortname -}} -
    -{{ template "_internal/disqus.html" . }} -{{- end -}} diff --git a/themes/rsturla/layouts/partials/footer.html b/themes/rsturla/layouts/partials/footer.html deleted file mode 100644 index 26f9bb3..0000000 --- a/themes/rsturla/layouts/partials/footer.html +++ /dev/null @@ -1,17 +0,0 @@ - - -{{- if .Site.Params.goToTop -}} - - {{ partial "svgs/arrowUp.svg" (dict "height" 48 "width" 48) . }} - -{{- end -}} diff --git a/themes/rsturla/layouts/partials/head.html b/themes/rsturla/layouts/partials/head.html deleted file mode 100644 index ef502b9..0000000 --- a/themes/rsturla/layouts/partials/head.html +++ /dev/null @@ -1,42 +0,0 @@ - - {{- partial "meta/main.html" . }} - {{- hugo.Generator }} - - {{/* Canonical link, RSS */}} - - - {{- with .OutputFormats.Get "RSS" }} - - - {{- end }} - - {{- /* Styles */ -}} - - {{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "style.css") | minify | fingerprint }} - - {{- $code_syntax_highlight_css := resources.Get "code-highlight.css" | minify | fingerprint }} - - - {{/* Favicons */}} - - - - - - {{- partial "webmanifest.html" . -}} - - - - {{/* SVG favicon for the modern web */}} - {{/* */}} - - {{/* Katex support (enabled on specific pages). See 'helpers/katex.html' for more info. */}} - - {{- if or .Params.math .Site.Params.math }}{{ partial "helpers/katex.html" . -}}{{- end -}} - - {{/* Google analytics script. See config.toml to enable/disable this. */}} - {{- if hugo.IsProduction | or (eq site.Params.env "production") }} - {{ template "_internal/google_analytics.html" . }} - {{- end -}} - - diff --git a/themes/rsturla/layouts/partials/helpers/katex.html b/themes/rsturla/layouts/partials/helpers/katex.html deleted file mode 100644 index 178225b..0000000 --- a/themes/rsturla/layouts/partials/helpers/katex.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - diff --git a/themes/rsturla/layouts/partials/meta/main.html b/themes/rsturla/layouts/partials/meta/main.html deleted file mode 100644 index 55c3f83..0000000 --- a/themes/rsturla/layouts/partials/meta/main.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ partial "meta/standard.html" . }} -{{ partial "meta/post.html" . }} diff --git a/themes/rsturla/layouts/partials/meta/post.html b/themes/rsturla/layouts/partials/meta/post.html deleted file mode 100644 index 3c8cb77..0000000 --- a/themes/rsturla/layouts/partials/meta/post.html +++ /dev/null @@ -1,56 +0,0 @@ -{{/* These meta tags are rendered only in the posts section (i.e. in single/list page) */}} -{{ if eq .Section "posts" }} - {{ $ISO_date := dateFormat "2006-01-02T15:04:05Z0700" .Date | safeHTML }} - - {{ $paginator := .Paginate (where .Pages "Section" "blog") }} - {{ if $paginator }} - - - {{ if $paginator.HasPrev }} - - {{end }} - {{ if $paginator.HasNext }} - - {{end }} - {{end }} - - - - - - {{ with.Params.author }} - - - - {{ end }} - - {{ with.Params.category }} - - - {{ end }} - - -{{ end }} diff --git a/themes/rsturla/layouts/partials/meta/standard.html b/themes/rsturla/layouts/partials/meta/standard.html deleted file mode 100644 index 52fa09f..0000000 --- a/themes/rsturla/layouts/partials/meta/standard.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - -{{/* If .Title is the same as .Site.Title, then only show .Site.Title */}} -{{- $page_title := "" -}} -{{- if eq .Title .Site.Title -}} - {{- $page_title = .Site.Title -}} -{{- else }} - {{- $page_title = printf "%s - %s" .Title .Site.Title -}} -{{- end }} - -{{ $page_title }} - - - - - - -{{/* Define empty variable description */}} -{{- $description := "" -}} - -{{/* If description is defined in front matter, use it */}} -{{- if .Params.description -}} - {{- $description = trim .Params.description "\n" -}} -{{/* If description is not defined in front matter, use site description */}} -{{- else if .Site.Params.description -}} - {{- $description = trim .Site.Params.description "\n" -}} -{{- end -}} - - - - - - - - -{{ range .AllTranslations }} - -{{ end }} - -{{ with .Params.image }} - - - - -{{ else }} - - - - -{{ end }} diff --git a/themes/rsturla/layouts/partials/postCard.html b/themes/rsturla/layouts/partials/postCard.html deleted file mode 100644 index 9c06fd9..0000000 --- a/themes/rsturla/layouts/partials/postCard.html +++ /dev/null @@ -1,10 +0,0 @@ -
    -

    - {{ .Title }} -

    - {{/* format date string to create an ISO 8601 string */}} - {{ $ISO_date := "2006-01-02T15:04:05Z0700" }} - -
    diff --git a/themes/rsturla/layouts/partials/scriptsBodyEnd.html b/themes/rsturla/layouts/partials/scriptsBodyEnd.html deleted file mode 100644 index b8e39e0..0000000 --- a/themes/rsturla/layouts/partials/scriptsBodyEnd.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ $main := slice (resources.Get "js/main.js") }} - -{{ if .Site.Params.goToTop }} - {{ $main = $main | append (resources.Get "js/goToTop.js") }} -{{ end }} - -{{ $custom := slice }} -{{ range $script := .Site.Params.additionalScripts }} - {{ $script_res := resources.Get $script }} - {{ if not $script_res}} - {{ erroridf "additional-script-loading-error" "Failed to load script \"%s\"" $script }} - {{ else }} - {{ $custom = $custom | append (resources.Get .) }} - {{ end }} -{{ end }} - -{{ if hugo.IsProduction }} - {{ $main = $main | resources.Concat "js/main.js" | resources.Minify | resources.Fingerprint }} - - - {{ if gt (len $custom) 0 }} - {{ $custom = $custom | resources.Concat "js/custom.js" | resources.Minify | resources.Fingerprint }} - - {{ end }} -{{ else }} - {{ $main = $main | resources.Concat "js/main.js" }} - - - {{ if gt (len $custom) 0 }} - {{ $custom = $custom | resources.Concat "js/custom.js" }} - - {{ end }} -{{ end }} diff --git a/themes/rsturla/layouts/partials/scriptsBodyStart.html b/themes/rsturla/layouts/partials/scriptsBodyStart.html deleted file mode 100644 index 785457d..0000000 --- a/themes/rsturla/layouts/partials/scriptsBodyStart.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ if hugo.IsProduction }} -{{ $theme_script := resources.Get "js/theme.js" | minify | fingerprint }} - -{{ else }} -{{ $theme_script := resources.Get "js/theme.js" }} - -{{ end}} diff --git a/themes/rsturla/layouts/partials/socialIcons.html b/themes/rsturla/layouts/partials/socialIcons.html deleted file mode 100644 index 65da49c..0000000 --- a/themes/rsturla/layouts/partials/socialIcons.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- range . }} - - {{ partial "svgs/svgs.html" . }} - -{{- end }} diff --git a/themes/rsturla/layouts/partials/svgs/arrowUp.svg b/themes/rsturla/layouts/partials/svgs/arrowUp.svg deleted file mode 100644 index 5bcd51c..0000000 --- a/themes/rsturla/layouts/partials/svgs/arrowUp.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/themes/rsturla/layouts/partials/svgs/home.svg b/themes/rsturla/layouts/partials/svgs/home.svg deleted file mode 100644 index f6f9cb5..0000000 --- a/themes/rsturla/layouts/partials/svgs/home.svg +++ /dev/null @@ -1,7 +0,0 @@ - -Home - - - \ No newline at end of file diff --git a/themes/rsturla/layouts/partials/svgs/menu.svg b/themes/rsturla/layouts/partials/svgs/menu.svg deleted file mode 100644 index 03278f5..0000000 --- a/themes/rsturla/layouts/partials/svgs/menu.svg +++ /dev/null @@ -1 +0,0 @@ -Menu \ No newline at end of file diff --git a/themes/rsturla/layouts/partials/svgs/sun.svg b/themes/rsturla/layouts/partials/svgs/sun.svg deleted file mode 100644 index 87873e4..0000000 --- a/themes/rsturla/layouts/partials/svgs/sun.svg +++ /dev/null @@ -1,2 +0,0 @@ - -{{ .title }} \ No newline at end of file diff --git a/themes/rsturla/layouts/partials/svgs/svgs.html b/themes/rsturla/layouts/partials/svgs/svgs.html deleted file mode 100644 index 8e8cbc5..0000000 --- a/themes/rsturla/layouts/partials/svgs/svgs.html +++ /dev/null @@ -1,678 +0,0 @@ -{{- $icon_name := ( trim .name " " | lower )}} -{{- if (eq $icon_name "123rf") -}} - - - - -{{- else if (eq $icon_name "adobestock") -}} - - - - -{{- else if (eq $icon_name "anilist") -}} - - - -{{- else if (eq $icon_name "applemusic") -}} - - - -{{- else if (eq $icon_name "applepodcasts") -}} - - - -{{- else if (eq $icon_name "behance") -}} - - - -{{- else if (eq $icon_name "bilibili") -}} - - - - - - - -{{- else if (eq $icon_name "bitcoin") -}} - - - -{{- else if (eq $icon_name "buymeacoffee") -}} - - - - - - - - - - - - - - - - -{{- else if (eq $icon_name "codepen") -}} - - - - - - - -{{- else if (eq $icon_name "codeforces") -}} - - - -{{- else if (eq $icon_name "cryptohack") -}} - - - - - - -{{- else if (eq $icon_name "ctftime") -}} - - - - - - -{{- else if (eq $icon_name "cv") -}} - - - - - - -{{- else if (eq $icon_name "dev") -}} - - - -{{- else if (eq $icon_name "deviantart") -}} - - - -{{- else if (eq $icon_name "deezer") -}} - - - -{{- else if (eq $icon_name "discogs") -}} - - - -{{- else if (eq $icon_name "discord") -}} - - - - -{{- else if (eq $icon_name "douban") -}} - - - - - -{{- else if (eq $icon_name "dreamstime") -}} - - - -{{- else if (eq $icon_name "dribbble") -}} - - - - - -{{- else if (eq $icon_name "email") -}} - - - - -{{- else if (eq $icon_name "facebook") -}} - - - -{{- else if (eq $icon_name "flickr") -}} - - - -{{- else if (eq $icon_name "freepik") -}} - - - - - - -{{- else if (eq $icon_name "gitea") -}} - - - -{{- else if (eq $icon_name "github") -}} - - - - -{{- else if (eq $icon_name "gitlab") -}} - - - - -{{- else if (eq $icon_name "goodreads") -}} - - - -{{- else if (eq $icon_name "googlepodcasts") -}} - - - -{{- else if (eq $icon_name "googlescholar") -}} - - - -{{- else if (eq $icon_name "gurushots") -}} - - - - - - - - - - - - -{{- else if (eq $icon_name "hackerone") -}} - - - -{{- else if (eq $icon_name "hackerrank") -}} - - - - - - -{{- else if (eq $icon_name "hackthebox") -}} - - - - - - -{{- else if (eq $icon_name "instagram") -}} - - - - - -{{- else if (eq $icon_name "itchio") -}} - - - -{{- else if (eq $icon_name "kaggle") -}} - - - -{{- else if (eq $icon_name "kakaotalk") -}} - - - - - - - -{{- else if (eq $icon_name "keybase") -}} - - - -{{- else if (eq $icon_name "kofi") -}} - - - -{{- else if (eq $icon_name "komoot") -}} - - - -{{- else if (eq $icon_name "lastfm") -}} - - - -{{- else if (eq $icon_name "letterboxd") -}} - - - -{{- else if (eq $icon_name "liberapay") -}} - - - - - - -{{- else if (eq $icon_name "lichess" ) -}} - - - -{{- else if (eq $icon_name "linkedin") -}} - - - - - -{{- else if (eq $icon_name "mastodon") -}} - - - - -{{- else if (eq $icon_name "matrix") -}} - - - -{{- else if (eq $icon_name "medium") -}} - - - - - -{{- else if (eq $icon_name "microblog") -}} - - - - - - -{{- else if (eq $icon_name "mixcloud") -}} - - - -{{- else if (eq $icon_name "monero") -}} - - - -{{- else if (eq $icon_name "neteasecloudmusic") -}} - - - -{{- else if (eq $icon_name "nuget") -}} - - - - - - - - -{{- else if (eq $icon_name "orcid") -}} - - - -{{- else if (eq $icon_name "osu!") -}} - - - - - - -{{- else if (eq $icon_name "overcast") -}} - - - -{{- else if (eq $icon_name "patreon") -}} - - - -{{- else if (eq $icon_name "paypal") -}} - - - -{{- else if (eq $icon_name "peertube") -}} - - - -{{- else if or (eq $icon_name "pgpkey") (eq $icon_name "key") -}} - - - - -{{- else if (eq $icon_name "phone") -}} - - - - - -{{- else if (eq $icon_name "pocketcasts") -}} - - - -{{- else if (eq $icon_name "polywork") -}} - -{{- else if (eq $icon_name "qq") -}} - - - - -{{- else if (eq $icon_name "reddit") -}} - - - -{{- else if (eq $icon_name "researchgate") -}} - - - -{{- else if (eq $icon_name "rss") -}} - - - - - -{{- else if (eq $icon_name "serverfault") -}} - - - -{{- else if (eq $icon_name "sessionmessenger") -}} - - - - -{{- else if (eq $icon_name "soundcloud") -}} - - - -{{- else if (eq $icon_name "shutterstock") -}} - - - - -{{- else if (eq $icon_name "sketchfab") -}} - - - -{{- else if (eq $icon_name "slack") -}} - - - - - - - -{{- else if (eq $icon_name "snapchat") -}} - - - -{{- else if (eq $icon_name "sourcehut") -}} - - - - -{{- else if (eq $icon_name "spotify") -}} - - - -{{- else if (eq $icon_name "stackoverflow") -}} - - - -{{- else if (eq $icon_name "steam") -}} - - - - - - - - - -{{- else if (eq $icon_name "strava") -}} - - - -{{- else if (eq $icon_name "telegram") -}} - - - -{{- else if (eq $icon_name "threema") -}} - - - -{{- else if (eq $icon_name "tiktok") -}} - - - -{{- else if (eq $icon_name "tryhackme") -}} - - - -{{- else if (eq $icon_name "tumblr") -}} - - - -{{- else if (eq $icon_name "twitch") -}} - - - -{{- else if (eq $icon_name "twitter") -}} - - - - -{{- else if (eq $icon_name "unsplash") -}} - - - - -{{- else if (eq $icon_name "vimeo") -}} - - - -{{- else if (eq $icon_name "xda") -}} - - - -{{- else if (eq $icon_name "xing") -}} - - - - -{{- else if (eq $icon_name "xmpp") -}} - - - - -{{- else if (eq $icon_name "ycombinator") -}} - - - -{{- else if (eq $icon_name "youtube") -}} - - - - - -{{- else if (eq $icon_name "zhihu") -}} - - - -{{- else if $icon_name -}} - - - - -{{- end -}} \ No newline at end of file diff --git a/themes/rsturla/layouts/partials/webmanifest.html b/themes/rsturla/layouts/partials/webmanifest.html deleted file mode 100644 index 70841fd..0000000 --- a/themes/rsturla/layouts/partials/webmanifest.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "partials/hugo-blog-awesome/manifest-background-color" }} - {{ $bg := ""}} - {{ if .Site.Params.webmanifest.background_color }} - {{ $bg = .Site.Params.webmanifest.background_color }} - {{ else if eq .Site.Params.defaultColor "dark" }} - {{ $bg = "#131418" }} - {{ else }} - {{ $bg = "#ffffff"}} - {{ end}} - {{ return $bg }} -{{ end }} - -{{ $background_color := partial "hugo-blog-awesome/manifest-background-color" . }} - -{{ - $ctx := merge (.Site.Params.webmanifest | default dict) - (dict - "name" (.Site.Params.webmanifest.name | default .Site.Params.sitename | default .Site.Title) - "short_name" (.Site.Params.webmanifest.short_name | default .Site.Params.sitename | default .Site.Title) - "start_url" (.Site.Params.webmanifest.start_url | default .Site.Home.Permalink) - "theme_color" (.Site.Params.webmanifest.theme_color | default "#434648") - "background_color" $background_color - "display" (.Site.Params.webmanifest.display | default "standalone") - ) -}} - diff --git a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.eot b/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.eot deleted file mode 100644 index c244b08..0000000 Binary files a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.eot and /dev/null differ diff --git a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.svg b/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.svg deleted file mode 100644 index 627f5a3..0000000 --- a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.svg +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.ttf b/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.ttf deleted file mode 100644 index d0e6325..0000000 Binary files a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.ttf and /dev/null differ diff --git a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff b/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff deleted file mode 100644 index 9eaa94f..0000000 Binary files a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff and /dev/null differ diff --git a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff2 b/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff2 deleted file mode 100644 index 020729e..0000000 Binary files a/themes/rsturla/static/fonts/Roboto/roboto-v30-latin-regular.woff2 and /dev/null differ