dotfiles

My PC Dotfiles & Website
commit 5a5add92925fa602a224df5f917f0bbd947b9d75
parent df3eab8147449b7042d92fc3eaa0a94116c01679
Author: maydayv7 <maydayv7@gmail.com>
Date:   Tue, 15 Sep 2026 17:23:30 +0530

feat: Change Domain

Diffstat:
MREADME.md | 6+++---
Mfiles/vscode/settings.json | 1+
Mflake.lock | 27++++++++++++++-------------
Mflake.nix | 6+++---
Mmodules/README.md | 2+-
Msite/README.md | 6+++---
Msite/_module.nix | 4----
Msite/content/about.md | 2+-
Msite/git/default.nix | 2+-
Msite/git/wrangler.toml | 2+-
Msite/index.js | 4++--
Msite/templates/macros/comments.html | 12++++--------
Msite/templates/macros/edit.html | 37++++++++++++++++++++-----------------
Msite/templates/macros/head.html | 71+++++++++++++++++++++++++++++++++++++++++++----------------------------
Msite/templates/macros/header.html | 6++----
Msite/templates/macros/pagination.html | 6++----
Msite/templates/macros/posts.html | 61+++++++++++++++++++++++++++----------------------------------
Msite/templates/macros/social.html | 18++++++------------
Msite/templates/page.html | 4++--
Msite/templates/shortcodes/figure.html | 6++----
Msite/templates/shortcodes/image.html | 12++++--------
Msite/templates/shortcodes/youtube.html | 2+-
Msite/templates/tags/list.html | 6++++--
Msite/wrangler.toml | 4++--
Msite/zola.toml | 6+++---
25 files changed, 152 insertions(+), 161 deletions(-)

diff --git a/README.md b/README.md @@ -14,7 +14,7 @@ This directory contains the configuration and `dotfiles` for my continuously evolving multi-PC setup (using [Nix](https://nixos.org/)). All the devices I own, controlled by code. -It also builds and deploys my website to [maydayv7.cc](https://maydayv7.cc). +It also builds and deploys my website to [maydayv7.dev](https://maydayv7.dev). <details> <summary><b>Pictures</b></summary> @@ -106,7 +106,7 @@ It also builds and deploys my website to [maydayv7.cc](https://maydayv7.cc). - Support for Base16 color theming using [`stylix`](https://github.com/danth/stylix) - Support for declaratively installing [Flatpak](./modules/apps/flatpak.nix) applications using [`nix-flatpak`](https://github.com/gmodena/nix-flatpak) - Support for Android Virtualisation using [Waydroid](https://waydro.id/) -- Support for VFIO PCI Device Passthrough with a declarative, performant Windows VM using [NixVirt](https://github.com/AshleyYakeley/NixVirt) and [Looking Glass](https://looking-glass.io/) (see my [blog post](https://maydayv7.cc/blog/nixos/win11vm)) +- Support for VFIO PCI Device Passthrough with a declarative, performant Windows VM using [NixVirt](https://github.com/AshleyYakeley/NixVirt) and [Looking Glass](https://looking-glass.io/) (see my [blog post](https://maydayv7.dev/blog/nixos/win11vm)) ## Programs @@ -337,7 +337,7 @@ _In case you are using the `advanced` filesystem scheme, you may need to set the <summary><b>Build It Yourself</b></summary> If you really want to get dirty with Nix and decide to invest oodles of your time into building your own configuration, this repository can be used as inspiration. -Follow along with my [NixOS Desktop](https://maydayv7.cc/series/nixos-desktop/) Series +Follow along with my [NixOS Desktop](https://maydayv7.dev/series/nixos-desktop/) Series **Welcome** to the Nix Community! ;) diff --git a/files/vscode/settings.json b/files/vscode/settings.json @@ -21,6 +21,7 @@ "search.smartCase": true, "search.useGlobalIgnoreFiles": true, "search.useParentIgnoreFiles": true, + "telemetry.telemetryLevel": "off", "terminal.integrated.cursorStyle": "line", "terminal.integrated.enableVisualBell": true, "terminal.integrated.tabs.separator": " / ", diff --git a/flake.lock b/flake.lock @@ -509,11 +509,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1788607843, - "narHash": "sha256-J8TPHUiEY/EmxBTKD4KGX9nunyD8dXq83//p/9QPNaM=", + "lastModified": 1789367948, + "narHash": "sha256-/RwZVHYMHOhG9e6SCcA6gwX7dUGAFKIx6yzpkZcHZos=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "896d09ccef580902e01e716e6f4646421087c252", + "rev": "e5fba4b49a76262fab3632a64ef466698caa317c", "type": "github" }, "original": { @@ -688,11 +688,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1788400875, - "narHash": "sha256-JIHQ6xNAN53cdo6zZ72LRcQ9lpvnABCnNE4hldJ5uZU=", + "lastModified": 1789073787, + "narHash": "sha256-xfX/toC2QV707s06GbP4II/TxYF0fNQj7s5/LClNDKc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5545adfad2e98de106a5544ca7067e03010410bd", + "rev": "aff8a0b28396750446e5537a96461bc4facdb287", "type": "github" }, "original": { @@ -730,16 +730,16 @@ ] }, "locked": { - "lastModified": 1788454679, - "narHash": "sha256-diS3b69rt/IqehH/8Tsd8/JEQmogVc1ml6FP+iTwBzg=", + "lastModified": 1789053136, + "narHash": "sha256-A7ehoEnAJw4k1Qwpr/WkOkLXWZAVU970uB+sm6nBxP0=", "owner": "noctalia-dev", "repo": "noctalia", - "rev": "f95e95cafde8c23f1d3a62b969e2b5717c96d741", + "rev": "c7b9197af77ff22bfb9a83c52a95643a1d90ca86", "type": "github" }, "original": { "owner": "noctalia-dev", - "ref": "v5.0.1", + "ref": "v5.1.0", "repo": "noctalia", "type": "github" } @@ -751,15 +751,16 @@ ] }, "locked": { - "lastModified": 1787856212, - "narHash": "sha256-MMhia1PBaQoQ4iv5f09bGOT00Ni41z8awxXBl97T404=", + "lastModified": 1789051736, + "narHash": "sha256-JgPgbmlUOKlgCX/KDfRF+z9ID80+Q7CcdaJFh5eaFjU=", "owner": "noctalia-dev", "repo": "noctalia-greeter", - "rev": "eefd43230b34ffbaa9267fede4d8aef1a784294a", + "rev": "5a450b891067c1f0cd7157f4f1091aa0e3014780", "type": "github" }, "original": { "owner": "noctalia-dev", + "ref": "v1.5.0", "repo": "noctalia-greeter", "type": "github" } diff --git a/flake.nix b/flake.nix @@ -20,7 +20,7 @@ # ▟███▛ ▜███▙ ▜███▙ # # ▝▀▀▀ ▀▀▀▀▘ ▀▀▀▘ # # --------------------------------------- # -# Author -> V 7 <mail@maydayv7.cc> # +# Author -> V 7 <mail@maydayv7.dev> # # License -> GPL-3.0 # # URL -> github:maydayv7/dotfiles # # --------------------------------------- # @@ -205,13 +205,13 @@ # Desktop Shell noctalia = { - url = "github:noctalia-dev/noctalia/v5.0.1"; + url = "github:noctalia-dev/noctalia/v5.1.0"; inputs.nixpkgs.follows = "nixpkgs"; }; # Login Greeter noctalia-greeter = { - url = "github:noctalia-dev/noctalia-greeter"; + url = "github:noctalia-dev/noctalia-greeter/v1.5.0"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/modules/README.md b/modules/README.md @@ -125,7 +125,7 @@ The following are the custom configuration options exposed by the modules above: - `git` - - `hosting` - - `enable`: Enable Gitea Code Hosting - `true / false` - - `domain`: Website Domain Name - Ex. `maydayv7.cc` + - `domain`: Website Domain Name - Ex. `maydayv7.dev` - `secret`: Path to Cloudflare Authentication Credentials - `runner` - - `support`: Enable Support for `git` Runners - `null / "github" / "gitlab"` diff --git a/site/README.md b/site/README.md @@ -1,10 +1,10 @@ ## My Personal Website -[![website](../files/images/website.png)](https://maydayv7.cc) +[![website](../files/images/website.png)](https://maydayv7.dev) Built with [Zola](https://www.getzola.org/) Deployed via [Nix](https://nixos.org/) and [Cloudflare](https://www.cloudflare.com/) -Hosted at [maydayv7.cc](https://maydayv7.cc) +Hosted at [maydayv7.dev](https://maydayv7.dev) ### Build @@ -57,7 +57,7 @@ To override the URL, run: <pre><code>nix build --impure --expr 'with (builtins.g ## `git` frontend -The [`git`](./git) directory contains the configuration for my static `git` frontend, hosted at [git.maydayv7.cc](https://git.maydayv7.cc) +The [`git`](./git) directory contains the configuration for my static `git` frontend, hosted at [git.maydayv7.dev](https://git.maydayv7.dev) It is built using my `stagit` [fork](https://github.com/maydayv7/stagit) to generate static HTML pages for my repositories To build it, run `nix run .#build-stagit` [`GitHub Actions`](../.github/workflows/website-git.yaml) is used to automatically build the site and deploy it to Cloudflare every week diff --git a/site/_module.nix b/site/_module.nix @@ -19,12 +19,8 @@ _: { # Formatting Errors treefmt.config.programs.prettier.excludes = [ - "site/templates/macros/edit.html" - "site/templates/macros/head.html" "site/templates/macros/javascript.html" "site/templates/macros/menu.html" - "site/templates/macros/posts.html" - "site/templates/tags/list.html" ]; }; } diff --git a/site/content/about.md b/site/content/about.md @@ -15,6 +15,6 @@ Tech enthusiast (_read:_ fanatic) and avid reader Ways to follow or get in contact with me -- Mail: <mail@maydayv7.cc> +- Mail: <mail@maydayv7.dev> - GitHub: @[maydayv7 ](https://github.com/maydayv7) - LinkedIn: [maydayv7 ](https://www.linkedin.com/in/maydayv7/) diff --git a/site/git/default.nix b/site/git/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, - site ? "https://git.maydayv7.cc", + site ? "https://git.maydayv7.dev", sitename ? "maydayv7", test ? false, }: let diff --git a/site/git/wrangler.toml b/site/git/wrangler.toml @@ -9,5 +9,5 @@ run_worker_first = ["/style.css"] [env.production] routes = [ - { pattern = "git.maydayv7.cc", custom_domain = true } + { pattern = "git.maydayv7.dev", custom_domain = true } ] diff --git a/site/index.js b/site/index.js @@ -1,8 +1,8 @@ export default { async fetch(request, env) { const url = new URL(request.url); - if (url.hostname === "www.maydayv7.cc") { - url.hostname = "maydayv7.cc"; + if (url.hostname === "www.maydayv7.dev") { + url.hostname = "maydayv7.dev"; url.protocol = "https:"; return Response.redirect(url, 308); } diff --git a/site/templates/macros/comments.html b/site/templates/macros/comments.html @@ -5,8 +5,7 @@ config.extra.giscus.enabled %} {% if config.extra.disqus.enabled %}{% set thread type="button" class="comments-collapsible js-only" aria-expanded="false" - aria-controls="comments-{{ thread }}" -> + aria-controls="comments-{{ thread }}"> Show Comments </button> <div @@ -14,14 +13,12 @@ config.extra.giscus.enabled %} {% if config.extra.disqus.enabled %}{% set thread id="comments-{{ thread }}" data-url="{{ page.permalink }}" hidden - inert -> + inert> <div class="comments-content" id="{{ thread }}"> {% if config.extra.disqus.enabled %} <script type="text/plain" - data-src="https://{{ config.extra.disqus.short_name }}.disqus.com/embed.js" - ></script> + data-src="https://{{ config.extra.disqus.short_name }}.disqus.com/embed.js"></script> {% else %} <script type="text/plain" @@ -36,8 +33,7 @@ config.extra.giscus.enabled %} {% if config.extra.disqus.enabled %}{% set thread data-input-position="top" data-theme="transparent_dark" data-lang="en" - crossorigin="anonymous" - ></script> + crossorigin="anonymous"></script> {% endif %} </div> </div> diff --git a/site/templates/macros/edit.html b/site/templates/macros/edit.html @@ -1,20 +1,23 @@ {% macro edit_page(current_path) %} <p class="post-edit"> - <a href="{{ config.extra.repo_url }}/content{{ - current_path | replace(from="\\", to="/") | trim_end_matches(pat="/") - }}.md"><svg - xmlns="http://www.w3.org/2000/svg" - width="16" - height="16" - viewBox="0 0 24 24" - fill="none" - stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" - class="feather feather-edit-2"> - <path - d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg - >Edit this Page -</a></p> + <a + href="{{ config.extra.repo_url }}/content{{ + current_path | replace(from='\\', to='/') | trim_end_matches(pat='/') + }}.md" + ><svg + xmlns="http://www.w3.org/2000/svg" + width="16" + height="16" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" + class="feather feather-edit-2"> + <path + d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg + >Edit this Page + </a> +</p> {% endmacro %} diff --git a/site/templates/macros/head.html b/site/templates/macros/head.html @@ -1,16 +1,34 @@ {%- macro font(config) %} -<link rel="preload" href="{{ get_url(path="fonts/JetBrainsMono-Nerd-Regular.woff2") }}" as="font" type="font/woff2" crossorigin /> -<link rel="stylesheet" href="{{ -get_url(path="fonts.css", trailing_slash=false) }}"> {% endmacro font -%} {% -macro styling(config) %} -<link rel="stylesheet" href="{{ -get_url(path="style.css", trailing_slash=false) }}"> {% if -config.extra.theme_color -%} {% set color = "color/" ~config.extra.theme_color ~ -".css" -%} -<link id="site-theme" data-theme="{{ config.extra.theme_color }}" rel="stylesheet" href="{{ get_url(path=color, trailing_slash=false) }}" /> -{%- else -%} <link id="site-theme" data-theme="red" rel="stylesheet" href="{{ get_url(path="color/red.css", -trailing_slash=false) }}"> {% endif %} {% endmacro styling %} {% macro -feed_discovery(path) %} +<link + rel="preload" + href="{{ get_url(path='fonts/JetBrainsMono-Nerd-Regular.woff2') }}" + as="font" + type="font/woff2" + crossorigin /> +<link + rel="stylesheet" + href="{{ +get_url(path='fonts.css', trailing_slash=false) }}" /> +{% endmacro font -%} {% macro styling(config) %} +<link + rel="stylesheet" + href="{{ +get_url(path='style.css', trailing_slash=false) }}" /> +{% if config.extra.theme_color -%} {% set color = "color/" +~config.extra.theme_color ~ ".css" -%} +<link + id="site-theme" + data-theme="{{ config.extra.theme_color }}" + rel="stylesheet" + href="{{ get_url(path=color, trailing_slash=false) }}" /> +{%- else -%} +<link + id="site-theme" + data-theme="red" + rel="stylesheet" + href="{{ get_url(path='color/red.css', +trailing_slash=false) }}" /> +{% endif %} {% endmacro styling %} {% macro feed_discovery(path) %} <link rel="alternate" type="application/rss+xml" @@ -22,27 +40,24 @@ config.extra.favicon %} rel="shortcut icon" href="{{ get_url(path=config.extra.favicon, trailing_slash=false) }}" type="image/x-icon" /> -{% endif %} {% endmacro favicon %} {% macro general_meta() %} -{% set description = config.description %} -{% set title = config.title %} -{% if page %} - {% set title = page.title %} - {% if page.description %}{% set description = page.description %} - {% else %}{% set description = page.content | striptags | truncate(length=160) %}{% endif %} -{% elif section %} - {% set title = section.title %} - {% if section.description %}{% set description = section.description %}{% endif %} -{% elif term %}{% set title = term.name %} -{% elif taxonomy %}{% set title = taxonomy.name %}{% endif %} +{% endif %} {% endmacro favicon %} {% macro general_meta() %} {% set description += config.description %} {% set title = config.title %} {% if page %} {% set +title = page.title %} {% if page.description %}{% set description = +page.description %} {% else %}{% set description = page.content | striptags | +truncate(length=160) %}{% endif %} {% elif section %} {% set title = +section.title %} {% if section.description %}{% set description = +section.description %}{% endif %} {% elif term %}{% set title = term.name %} {% +elif taxonomy %}{% set title = taxonomy.name %}{% endif %} <meta name="description" content="{{ description }}" /> <meta property="og:title" content="{{ title }}" /> <meta property="og:description" content="{{ description }}" /> <meta property="og:site_name" content="{{ config.title }}" /> -<meta property="og:type" content="{% if page and page.date %}article{% else %}website{% endif %}" /> +<meta + property="og:type" + content="{% if page and page.date %}article{% else %}website{% endif %}" /> <meta name="twitter:card" content="summary" /> {% if current_url %} <link rel="canonical" href="{{ current_url }}" /> <meta property="og:url" content="{{ current_url }}" /> -{% else %}<meta name="robots" content="noindex" />{% endif %} -{{ head::feed_discovery(path=config.extra.feed_path) }} -{% endmacro general_meta %} +{% else %}<meta name="robots" content="noindex" />{% endif %} {{ +head::feed_discovery(path=config.extra.feed_path) }} {% endmacro general_meta %} diff --git a/site/templates/macros/header.html b/site/templates/macros/header.html @@ -7,8 +7,7 @@ type="button" class="menu-trigger menu-trigger-button" aria-controls="mobile-menu" - aria-expanded="false" - > + aria-expanded="false"> menu </button> </div> @@ -23,8 +22,7 @@ aria-label="Search this site" aria-controls="search-results" data-library="{{ get_url(path='fuse.min.js') }}" - data-index="{{ get_url(path='search_index.en.json') }}" - /> + data-index="{{ get_url(path='search_index.en.json') }}" /> <div class="search-results box" id="search-results"> <p class="search-results__number" role="status"></p> <ul class="search-results__items"></ul> diff --git a/site/templates/macros/pagination.html b/site/templates/macros/pagination.html @@ -13,8 +13,7 @@ <form class="pagination__form" enctype="text/plain" - action="{{ paginator.base_url }}" - > + action="{{ paginator.base_url }}"> <label for="page">page</label> <input id="page" @@ -24,8 +23,7 @@ min="1" max="{{ paginator.number_pagers }}" oninput="this.style.width = this.value.length + 3 + 'ch'" - required - />/ {{ paginator.number_pagers }} + required />/ {{ paginator.number_pagers }} <button>Go</button> </form> </div> diff --git a/site/templates/macros/posts.html b/site/templates/macros/posts.html @@ -1,44 +1,37 @@ {% macro meta(page, list=false) %} <div class="post-meta {% if list %}meta-list{% else %}meta-page{% endif %}"> - {{ posts::date(date=page.date, updated=page.updated) }} - {% if page.date or page.updated %} :: {% endif %} - {% if list %} + {{ posts::date(date=page.date, updated=page.updated) }} {% if page.date or + page.updated %} :: {% endif %} {% if list %} <span class="post-metatitle"> <strong>@<a href="{{ page.permalink | safe }}">{{ page.title }}</a></strong> </span> {% else %} - <span class="post-readtime"> <span class="post-icon"></span> <i>{{ page.reading_time }}</i> min </span> - :: <span class="post-wordcount"> <span class="post-icon"></span> <i>{{ page.word_count }}</i> words </span> - {% endif %} - {{ posts::taxonomies(taxonomy=page.taxonomies) }} + <span class="post-readtime"> + <span class="post-icon"></span> <i>{{ page.reading_time }}</i> min + </span> + :: + <span class="post-wordcount"> + <span class="post-icon"></span> <i>{{ page.word_count }}</i> words + </span> + {% endif %} {{ posts::taxonomies(taxonomy=page.taxonomies) }} </div> -{% endmacro meta %} -{% macro date(date, updated) %} +{% endmacro meta %} {% macro date(date, updated) %} <span class="post-date"> {%- if updated -%} - <span class="post-icon"></span> {{ updated | date(format="%d.%m.%Y") }} - {%- if date -%}&nbsp;::&nbsp;{%- endif -%} - {%- endif -%} - {%- if date -%} - <span class="post-icon"></span> {{ date | date(format="%d.%m.%Y") }} - {%- endif -%} + <span class="post-icon"></span> {{ updated | date(format="%d.%m.%Y") }} {%- + if date -%}&nbsp;::&nbsp;{%- endif -%} {%- endif -%} {%- if date -%} + <span class="post-icon"></span> {{ date | date(format="%d.%m.%Y") }} {%- + endif -%} </span> -{% endmacro date %} -{% macro taxonomies(taxonomy) %} - {% if taxonomy.series -%} - :: {{ posts::series(series=taxonomy.series) }} - {% endif -%} - {% if taxonomy.tags -%} - :: {{ posts::tags(tags=taxonomy.tags) }} - {% endif -%} -{% endmacro taxonomies %} -{% macro series(series) %} - {% for serie in series -%} - <strong>^<a href="{{ get_taxonomy_url(kind="series", name=serie) }}">{{ serie }}</a></strong> - {% endfor -%} -{% endmacro series %} -{% macro tags(tags) %} - {% for tag in tags -%} - #<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">{{ tag }}</a> - {% endfor -%} -{% endmacro tags %} +{% endmacro date %} {% macro taxonomies(taxonomy) %} {% if taxonomy.series -%} +:: {{ posts::series(series=taxonomy.series) }} {% endif -%} {% if taxonomy.tags +-%} :: {{ posts::tags(tags=taxonomy.tags) }} {% endif -%} {% endmacro taxonomies +%} {% macro series(series) %} {% for serie in series -%} +<strong + >^<a href="{{ get_taxonomy_url(kind='series', name=serie) }}" + >{{ serie }}</a + ></strong +> +{% endfor -%} {% endmacro series %} {% macro tags(tags) %} {% for tag in tags +-%} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) }}">{{ tag }}</a> +{% endfor -%} {% endmacro tags %} diff --git a/site/templates/macros/social.html b/site/templates/macros/social.html @@ -16,8 +16,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="RSS Badge" - /> + alt="RSS Badge" /> </a> {%- endif -%} {%- if config.extra.github_profile -%} <a href="{{ config.extra.github_profile }}" style="text-decoration: none"> @@ -35,8 +34,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="GitHub Profile Badge" - /> + alt="GitHub Profile Badge" /> </a> {%- endif -%} {%- if config.extra.email -%} <a href="{{ config.extra.email }}" style="text-decoration: none"> @@ -54,8 +52,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="Email Badge" - /> + alt="Email Badge" /> </a> {%- endif -%} {%- if config.extra.twitter -%} <a href="{{ config.extra.twitter }}" style="text-decoration: none"> @@ -73,8 +70,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="Twitter Badge" - /> + alt="Twitter Badge" /> </a> {%- endif -%} {%- if config.extra.reddit_profile -%} <a href="{{ config.extra.reddit_profile }}" style="text-decoration: none"> @@ -92,8 +88,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="Reddit Badge" - /> + alt="Reddit Badge" /> </a> {%- endif -%} {%- if config.extra.discord_profile -%} <a href="{{ config.extra.discord_profile }}" style="text-decoration: none"> @@ -111,8 +106,7 @@ loading="lazy" decoding="async" style="display: inline" - alt="Discord Badge" - /> + alt="Discord Badge" /> </a> {%- endif -%} </div> diff --git a/site/templates/page.html b/site/templates/page.html @@ -35,8 +35,8 @@ endblock math -%} {%- block title %} </ul> {% endif %} {% if config.extra.edit_page and page.extra.edit %} {{ edit::edit_page(current_path=current_path) }} {% endif %} {% if - page.extra.comments %} - {{ comments::comments() }} {% endif %} {% if page.extra.github %} + page.extra.comments %} {{ comments::comments() }} {% endif %} {% if + page.extra.github %} <script async defer src="https://buttons.github.io/buttons.js"></script> {% endif %} {{ pages::related() }} </article> diff --git a/site/templates/shortcodes/figure.html b/site/templates/shortcodes/figure.html @@ -32,8 +32,7 @@ style="{{ style }}" {% endif - %} - /> + %} /> {% if caption %} <figcaption class="{% if caption_position %}{{ caption_position }}{% else -%} center {%- endif %}" @@ -44,8 +43,7 @@ style="{{ caption_style | safe }}" {% endif - %} - > + %}> {{ caption }} </figcaption> {% endif %} diff --git a/site/templates/shortcodes/image.html b/site/templates/shortcodes/image.html @@ -1,6 +1,5 @@ <figure - class="{% if class is defined %}{{ class | safe }}{% else -%} center {%- endif %}" -> + class="{% if class is defined %}{{ class | safe }}{% else -%} center {%- endif %}"> {%- if static is defined -%} <img loading="lazy" @@ -13,8 +12,7 @@ alt="{{ alt }}" {% endif - %} - /> + %} /> {%- else -%} {%- set src = page.path ~ src -%} <img loading="lazy" @@ -27,8 +25,7 @@ alt="{{ alt }}" {% endif - %} - /> + %} /> {%- endif -%} {% if caption %} <figcaption {% @@ -38,8 +35,7 @@ style="{{ caption_style | safe }}" {% endif - %} - > + %}> {{ caption }} </figcaption> {% endif %} diff --git a/site/templates/shortcodes/youtube.html b/site/templates/shortcodes/youtube.html @@ -1,6 +1,6 @@ <div class="youtube is-flex is-justify-content-center is-align-items-center"> <iframe - title="{{ title | default(value="YouTube video") }}" + title="{{ title | default(value='YouTube video') }}" width="100%" src="https://www.youtube.com/embed/{{ id }}" frameborder="0" diff --git a/site/templates/tags/list.html b/site/templates/tags/list.html @@ -7,8 +7,10 @@ <ul class="post-list"> {% for term in terms %} <li> - <a href="{{ get_taxonomy_url(kind="tags", name=term.name) }}">{{ term.name - }}</a> ({{ term.pages | length }} post{{ term.pages | length | pluralize }}) + <a href="{{ get_taxonomy_url(kind='tags', name=term.name) }}" + >{{ term.name }}</a + > + ({{ term.pages | length }} post{{ term.pages | length | pluralize }}) </li> {% endfor %} </ul> diff --git a/site/wrangler.toml b/site/wrangler.toml @@ -10,6 +10,6 @@ run_worker_first = true [env.production] routes = [ - { pattern = "maydayv7.cc", custom_domain = true }, - { pattern = "www.maydayv7.cc", custom_domain = true } + { pattern = "maydayv7.dev", custom_domain = true }, + { pattern = "www.maydayv7.dev", custom_domain = true } ] diff --git a/site/zola.toml b/site/zola.toml @@ -1,5 +1,5 @@ # Site URL -base_url = "https://maydayv7.cc" +base_url = "https://maydayv7.dev" title = "maydayv7" description = "My Personal Website" @@ -87,11 +87,11 @@ main_menu_items = [ { url = "/blog/", name = "Blog" }, { url = "/projects/", name = "Projects" }, { url = "/about/", name = "About" }, - { url = "https://git.maydayv7.cc", name = "Git", external = true }, + { url = "https://git.maydayv7.dev", name = "Git", external = true }, ] # Socials Bar -email = "mailto:mail@maydayv7.cc" +email = "mailto:mail@maydayv7.dev" feed_path = "/rss.xml" reddit_profile = "https://reddit.com/u/maydayv7" github_profile = "https://github.com/maydayv7"