From fe4a762a914675b7a84be4678431d47e7ec06962 Mon Sep 17 00:00:00 2001 From: Jake Charman Date: Wed, 16 Sep 2026 20:36:00 +0100 Subject: [PATCH] SEO Improvements stage 1 --- run_local.sh | 4 +-- src/jakecharman/__init__.py | 2 +- src/jakecharman/templates/article.html | 27 +++++++++++++- src/jakecharman/templates/index.html | 48 ++++++++++++------------- src/jakecharman/templates/links.html | 1 + src/jakecharman/templates/main.html | 25 +++++++++++-- src/jakecharman/templates/projects.html | 1 + src/static/style/mobile.css | 5 +++ 8 files changed, 83 insertions(+), 30 deletions(-) diff --git a/run_local.sh b/run_local.sh index 7a4b6ed..6a9c5dc 100755 --- a/run_local.sh +++ b/run_local.sh @@ -6,7 +6,7 @@ set -x -o pipefail content_dir="" if [[ -d "../jc-content" ]]; then - content_dir="-v $(realpath ../jc-content):/var/www/jc/projects" + content_dir="-v $(realpath ../jc-content):/var/www/jc/projects:z" fi -docker run -e DISCORD_ERR_HOOK=dummy $1 -v $(pwd)/src/:/var/www/jc $content_dir jc-ng-localtest +docker run -e DISCORD_ERR_HOOK=dummy $1 $content_dir jc-ng-localtest diff --git a/src/jakecharman/__init__.py b/src/jakecharman/__init__.py index b5829e7..d6a754b 100644 --- a/src/jakecharman/__init__.py +++ b/src/jakecharman/__init__.py @@ -72,7 +72,7 @@ def inject_branding() -> dict: case _: brand = req_domain - return {'branding': brand} + return {'branding': brand, 'url': req_domain} @app.route('/') def index() -> str: diff --git a/src/jakecharman/templates/article.html b/src/jakecharman/templates/article.html index 74a9689..27d8877 100755 --- a/src/jakecharman/templates/article.html +++ b/src/jakecharman/templates/article.html @@ -1,5 +1,5 @@ {% extends 'main.html' %} - +{% block description %}{{ metadata.description }}{% endblock %} {% block head %} {% if metadata.gallery %} {% endif %} + + {% endblock %} {% block content %} diff --git a/src/jakecharman/templates/index.html b/src/jakecharman/templates/index.html index 8ab4428..2b448fd 100755 --- a/src/jakecharman/templates/index.html +++ b/src/jakecharman/templates/index.html @@ -18,31 +18,31 @@ My personal projects can also be found over on the projects page. Be aware though that if I'm able to write about a project here, it most likely wasn't done professionally so some may be a little rough around the edges.

- - - - - - - - - - - - - - - - - - - - - - + Ansible Logo + AWS Logo + Azure Logo + C# Logo + Debian Logo + DigitalOcean Logo + Docker Logo + FreeIPA Logo + Google Cloud Logo + Git Logo + Grafana Logo + Hadoop Logo + Hive Logo + Java Logo + Jenkins Logo + MariaDB Logo + NGINX Logo + Proxmox Logo + Python Logo + RedHat Logo + Rocky Linux Logo + Subversion Logo
- + Oracle Cloud certification badge
@@ -64,7 +64,7 @@

I've also had the opportunity to work on a 10,000 horsepower Top Fuel Dragster. I wrote about this on the Nitro Junkie website, and later extended that post here.