commit 57270ab118bb63d9c16bbca46edbbd676fd65f4b Author: trivernis Date: Wed May 10 10:00:54 2023 +0200 Create initial blog skeleton diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d70ebaa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9ffd6e7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/after-dark"] + path = themes/after-dark + url = git@github.com:getzola/after-dark.git diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..68faa2a --- /dev/null +++ b/config.toml @@ -0,0 +1,35 @@ +# The URL the site will be built for +base_url = "https://blog.trivernis.net" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = true + +theme = "after-dark" + +generate_feed = true + +taxonomies = [ + # You can enable/disable RSS + {name = "categories", feed = true}, + {name = "tags", feed = true}, +] + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here +author = "Trivernis" +after_dark_menu = [ + {url = "$BASE_URL", name = "Home"}, + {url = "$BASE_URL/categories", name = "Categories"}, + {url = "$BASE_URL/tags", name = "Tags"}, + {url = "https://trivernis.net", name = "Website"}, + {url = "https://git.trivernis.net", name = "Git"}, +] +after_dark_title = "My Awesome Blog" \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..32fcd0a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ ++++ +paginate_by = 5 ++++ \ No newline at end of file diff --git a/sass/site.scss b/sass/site.scss new file mode 100644 index 0000000..e645673 --- /dev/null +++ b/sass/site.scss @@ -0,0 +1,27 @@ +@use "../themes/after-dark/sass/site.scss"; + +$primary-color: #bd5ec2; +$secondary-color: #f862a7; + +body.dark,html { + background-color: #16001a; +} + +nav a.active { + background-color: $secondary-color; + color: #fff; +} +a { + color: $primary-color; + border-bottom: 1px solid $secondary-color +} +a:hover { + background-color: $secondary-color; +} +a[itemprop="url"] { + color: $primary-color; +} +a[href*="://"]::after, +a[rel*="external"] { + content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20class='i-external'%20viewBox='0%200%2032%2032'%20width='14'%20height='14'%20fill='none'%20stroke='%23bd5ec2'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='9.38%'%3E%3Cpath%20d='M14%209%20L3%209%203%2029%2023%2029%2023%2018%20M18%204%20L28%204%2028%2014%20M28%204%20L14%2018'/%3E%3C/svg%3E"); +} diff --git a/themes/after-dark b/themes/after-dark new file mode 160000 index 0000000..d2c563e --- /dev/null +++ b/themes/after-dark @@ -0,0 +1 @@ +Subproject commit d2c563e1ee464c24c17f8122b968bdfe50ab1fb0