diff --git a/.gitmodules b/.gitmodules index b5cdc59..38f4025 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "themes/apollo"] - path = deprecated/themes/apollo - url = https://github.com/not-matthias/apollo [submodule ".agent"] path = .agent url = https://github.com/nrdxp/predicate.git diff --git a/deprecated/config.toml b/deprecated/config.toml deleted file mode 100644 index 923d913..0000000 --- a/deprecated/config.toml +++ /dev/null @@ -1,49 +0,0 @@ -description = "nrdxp's personal site & blog" -generate_feeds = true -minify_html = true -taxonomies = [{ name = "tags" }] -theme = "apollo" -title = "nrdxp" - -# The URL the site will be built for -base_url = "https://nrd.sh/" - -# 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 = false - -[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 -highlight_theme = "ayu-light" - -[extra] -favicon = "/icon/favicon.png" -menu = [ - { name = "/blog", url = "/blog", weight = 1 }, - { name = "/projects", url = "/projects", weight = 2 }, - { name = "/collab", url = "/collab", weight = 3 }, - { name = "/about", url = "/about", weight = 4 }, - { name = "/tags", url = "/tags", weight = 5 }, -] -repo_url = "https://github.com/nrdxp/nrd.sh/tree/main/content/" -repo_view = true -socials = [ - { name = "rss", url = "/atom.xml", icon = "rss" }, - { name = "github", url = "https://github.com/nrdxp", icon = "github" }, - { name = "twitter", url = "https://x.com/nrdexp", icon = "x-twitter" }, - { name = "discord", url = "https://discord.com/users/672485325683032094", icon = "discord" }, - { name = "matrix", url = "https://matrix.to/#/@timdeh:matrix.org", icon = "matrix" }, - { name = "email", url = "mailto:tim@nrd.sh", icon = "email" }, -] -stylesheets = ["fira.css", "colors.css", "custom.css"] -theme = "toggle" - -[extra.analytics] -enabled = true - -[extra.analytics.goatcounter] -user = "nrd" diff --git a/deprecated/netlify.toml b/deprecated/netlify.toml deleted file mode 100644 index 7236a1d..0000000 --- a/deprecated/netlify.toml +++ /dev/null @@ -1,6 +0,0 @@ -[build] -command = "zola build" -publish = "public" - -[build.environment] -ZOLA_VERSION = "0.19.2" diff --git a/deprecated/sass/colors.scss b/deprecated/sass/colors.scss deleted file mode 100644 index 77ec247..0000000 --- a/deprecated/sass/colors.scss +++ /dev/null @@ -1,40 +0,0 @@ -$bg-0: #212A37; - -$bg-1: lighten($bg-0, 5%); -$bg-2: lighten($bg-1, 10%); - -:root.dark { - --meta-color: #92A3A0; - - --bg-0: #{$bg-0}; - --bg-1: #{$bg-1}; - --bg-2: #{$bg-2}; - - --text-0: #EFEBEA; - - --primary-color: #BD7A52; -} - -.meta { - color: var(--meta-color); -} -time { - color: var(--meta-color); -} - -$bg-0-light: #F5F4F2; - -$bg-1-light: darken($bg-0-light, 2%); -$bg-2-light: darken($bg-1-light, 8%); - -:root.light { - --meta-color: #5A6160; - - --bg-0: #{$bg-0-light}; - --bg-1: #{$bg-1-light}; - --bg-2: #{$bg-2-light}; - - --text-0: #2A2624; - - --primary-color: #BD7A52; -} diff --git a/deprecated/sass/custom.scss b/deprecated/sass/custom.scss deleted file mode 100644 index 8c4df32..0000000 --- a/deprecated/sass/custom.scss +++ /dev/null @@ -1,6 +0,0 @@ -.content { - max-width: 1000px; - margin: 0 auto; - padding: 0 0.618em; - word-wrap: break-word; -} diff --git a/deprecated/sass/fira.scss b/deprecated/sass/fira.scss deleted file mode 100644 index 9b4e85f..0000000 --- a/deprecated/sass/fira.scss +++ /dev/null @@ -1,12 +0,0 @@ -:root { - --text-font: 'Fira Sans', sans-serif; - --code-font: 'Fira Mono', monospace; -} - -h1, h2, h3, h4, h5, h6 { - font-family: var(--code-font) !important; -} - -header { - font-family: var(--code-font) !important; -} diff --git a/deprecated/templates/partials/header.html b/deprecated/templates/partials/header.html deleted file mode 100644 index b7fc88b..0000000 --- a/deprecated/templates/partials/header.html +++ /dev/null @@ -1,175 +0,0 @@ -{% import "macros/macros.html" as post_macros %} - - - - - - - - {% if page.extra.meta %} - - {% for data in page.extra.meta %} - - {% endfor %} - {% endif %} - - {# Site title #} - {% set current_path = current_path | default(value="/") %} - {% if current_path == "/" %} - - {{ config.title | default(value="Home") }} - - {% if not page_has_og_title %} - - {% endif %} - - {% else %} - - {% if page.title %} {{ page.title }} - {% elif section.title %} {{ section.title }} - {% elif config.title %} {{ config.title }} - {% else %} Post {% endif %} - - - {% if not page_has_og_title %} - - {% endif %} - {% endif %} - - {% if not page_has_og_description %} - {% if page.description %} - - {% elif config.description %} - - {% endif %} - {% endif %} - - {% if not page_has_description %} - {% if page.description %} - - {% elif config.description %} - - {% endif %} - {% endif %} - - {# Favicon #} - {% if config.extra.favicon %} - - {% endif %} - - {# Font from cdn or disk #} - {% if config.extra.use_cdn | default(value=false) %} - - - {% else %} - - {% endif %} - - {# Analytics #} - {% if config.extra.analytics.enabled %} - {% if config.extra.analytics.umami.website_id %} - {% set website_id = config.extra.analytics.umami.website_id %} - {% set host_url = config.extra.analytics.umami.host_url | default(value="https://api-gateway.umami.dev/") %} - - - {% endif %} - - {% if config.extra.analytics.goatcounter.user %} - {% set user = config.extra.analytics.goatcounter.user %} - {% set host = config.extra.analytics.goatcounter.host | default(value="goatcounter.com") %} - - - - {% endif %} - {% endif %} - - {# Fancy Codeblock #} - {% if config.extra.fancy_code %} - - {% endif %} - - {# Table of contents #} - {% if config.extra.toc | default(value=false) %} - - {% endif %} - - {# Dynamic Note #} - {% if config.extra.dynamic_note | default(value=false) %} - - {% endif %} - - {% if config.extra.mathjax | default(value=false) %} - {% if config.extra.mathjax_dollar_inline_enable | default(value=false) %} - - {% endif %} - - {% endif %} - - {# RSS #} - - - - {% set theme = config.extra.theme | default(value="toggle") %} - {% if theme == "dark" %} - - {% elif theme == "light" %} - - {% elif theme == "auto" %} - - - {% elif theme == "toggle" %} - - - {% endif %} - - - - {% if theme == "dark" %} - - {% elif theme == "light" %} - - {% elif theme == "auto" %} - - {% else %} - - {% endif %} - - - - - {% if config.extra.stylesheets %} - {% for stylesheet in config.extra.stylesheets %} - - {% endfor %} - {% endif %} - diff --git a/deprecated/themes/apollo b/deprecated/themes/apollo deleted file mode 160000 index 577d9b0..0000000 --- a/deprecated/themes/apollo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 577d9b0fc0fb55f0992f04074c4d675fae262fc3