SEO Improvements stage 1
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends 'main.html' %}
|
||||
|
||||
{% block description %}{{ metadata.description }}{% endblock %}
|
||||
{% block head %}
|
||||
{% if metadata.gallery %}
|
||||
<script>
|
||||
@@ -11,6 +11,31 @@
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
"headline": {{ metadata.title | tojson }},
|
||||
"datePublished": "{{ metadata.date }}",
|
||||
"image": "https://{{ url }}/image/{{ metadata.image }}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Jake Charman",
|
||||
"url": "https://{{ url }}/"
|
||||
},
|
||||
"mainEntityOfPage": "https://{{ url }}/projects/{{ metadata.id }}"
|
||||
}
|
||||
</script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Projects", "item": "https://{{url}}/projects/"},
|
||||
{"@type": "ListItem", "position": 2, "name": {{ metadata.title | tojson }}, "item": "https://{{url}}/projects/{{ metadata.id }}"}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -18,31 +18,31 @@
|
||||
My personal projects can also be found over on the <a href="/projects/">projects</a> 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.
|
||||
</p>
|
||||
<div id="techlogos">
|
||||
<a href="https://ansible.com"><img src="/static/images/technology/ansible.png" /></a>
|
||||
<a href="https://aws.amazon.com/"><img src="/static/images/technology/aws.png" /></a>
|
||||
<a href="https://azure.microsoft.com/en-gb"><img src="/static/images/technology/azure.png" /></a>
|
||||
<a href="https://dotnet.microsoft.com/en-us/languages/csharp"><img src="/static/images/technology/csharp.png" /></a>
|
||||
<a href="https://www.debian.org/"><img src="/static/images/technology/debian.png" /></a>
|
||||
<a href="https://www.digitalocean.com/"><img src="/static/images/technology/digitalocean.png" /></a>
|
||||
<a href="https://www.docker.com/"><img src="/static/images/technology/docker.png" /></a>
|
||||
<a href="https://www.freeipa.org/"><img src="/static/images/technology/freeipa.png" /></a>
|
||||
<a href="https://cloud.google.com/"><img src="/static/images/technology/gcloud.png" /></a>
|
||||
<a href="https://git-scm.com/"><img src="/static/images/technology/git.png" /></a>
|
||||
<a href="https://www.grafana.com/"><img src="/static/images/technology/grafana.png" /></a>
|
||||
<a href="https://hadoop.apache.org/"><img src="/static/images/technology/hadoop.svg" /></a>
|
||||
<a href="https://hive.apache.org/"><img src="/static/images/technology/hive.svg" /></a>
|
||||
<a href="https://www.java.com/"><img src="/static/images/technology/java.png" /></a>
|
||||
<a href="https://www.jenkins.io/"><img src="/static/images/technology/jenkins.png" /></a>
|
||||
<a href="https://mariadb.org/"><img src="/static/images/technology/mariadb.png" /></a>
|
||||
<a href="https://nginx.org/"><img src="/static/images/technology/nginx.svg" /></a>
|
||||
<a href="https://www.proxmox.com/"><img src="/static/images/technology/proxmox.png" /></a>
|
||||
<a href="https://www.python.org/"><img src="/static/images/technology/python.png" /></a>
|
||||
<a href="https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux"><img src="/static/images/technology/redhat.png" /></a>
|
||||
<a href="https://rockylinux.org/"><img src="/static/images/technology/rocky.png" /></a>
|
||||
<a href="https://subversion.apache.org/"><img src="/static/images/technology/svn.svg" /></a>
|
||||
<a href="https://ansible.com"><img alt="Ansible Logo" src="/static/images/technology/ansible.png" /></a>
|
||||
<a href="https://aws.amazon.com/"><img alt="AWS Logo" src="/static/images/technology/aws.png" /></a>
|
||||
<a href="https://azure.microsoft.com/en-gb"><img alt="Azure Logo" src="/static/images/technology/azure.png" /></a>
|
||||
<a href="https://dotnet.microsoft.com/en-us/languages/csharp"><img alt="C# Logo" src="/static/images/technology/csharp.png" /></a>
|
||||
<a href="https://www.debian.org/"><img alt="Debian Logo" src="/static/images/technology/debian.png" /></a>
|
||||
<a href="https://www.digitalocean.com/"><img alt="DigitalOcean Logo" src="/static/images/technology/digitalocean.png" /></a>
|
||||
<a href="https://www.docker.com/"><img alt="Docker Logo" src="/static/images/technology/docker.png" /></a>
|
||||
<a href="https://www.freeipa.org/"><img alt="FreeIPA Logo" src="/static/images/technology/freeipa.png" /></a>
|
||||
<a href="https://cloud.google.com/"><img alt="Google Cloud Logo" src="/static/images/technology/gcloud.png" /></a>
|
||||
<a href="https://git-scm.com/"><img alt="Git Logo" src="/static/images/technology/git.png" /></a>
|
||||
<a href="https://www.grafana.com/"><img alt="Grafana Logo" src="/static/images/technology/grafana.png" /></a>
|
||||
<a href="https://hadoop.apache.org/"><img alt="Hadoop Logo" src="/static/images/technology/hadoop.svg" /></a>
|
||||
<a href="https://hive.apache.org/"><img alt="Hive Logo" src="/static/images/technology/hive.svg" /></a>
|
||||
<a href="https://www.java.com/"><img alt="Java Logo" src="/static/images/technology/java.png" /></a>
|
||||
<a href="https://www.jenkins.io/"><img alt="Jenkins Logo" src="/static/images/technology/jenkins.png" /></a>
|
||||
<a href="https://mariadb.org/"><img alt="MariaDB Logo" src="/static/images/technology/mariadb.png" /></a>
|
||||
<a href="https://nginx.org/"><img alt="NGINX Logo" src="/static/images/technology/nginx.svg" /></a>
|
||||
<a href="https://www.proxmox.com/"><img alt="Proxmox Logo" src="/static/images/technology/proxmox.png" /></a>
|
||||
<a href="https://www.python.org/"><img alt="Python Logo" src="/static/images/technology/python.png" /></a>
|
||||
<a href="https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux"><img alt="RedHat Logo" src="/static/images/technology/redhat.png" /></a>
|
||||
<a href="https://rockylinux.org/"><img alt="Rocky Linux Logo" src="/static/images/technology/rocky.png" /></a>
|
||||
<a href="https://subversion.apache.org/"><img alt="Subversion Logo" src="/static/images/technology/svn.svg" /></a>
|
||||
</div>
|
||||
<div id="certs">
|
||||
<a href="https://catalog-education.oracle.com/ords/certview/sharebadge?id=A6C9B3D3D21627EB9C2504395194FAF772E01412911D4ADC78063133D54579ED"><img src="/static/images/certs/OCIF2023CA.png" /></a>
|
||||
<a href="https://catalog-education.oracle.com/ords/certview/sharebadge?id=A6C9B3D3D21627EB9C2504395194FAF772E01412911D4ADC78063133D54579ED"><img alt="Oracle Cloud certification badge" src="/static/images/certs/OCIF2023CA.png" /></a>
|
||||
</div>
|
||||
<div class="social">
|
||||
<a class="button" href="https://www.linkedin.com/in/jakecharman/"><i class="fa-brands fa-linkedin-in"></i></a>
|
||||
@@ -64,7 +64,7 @@
|
||||
<p>I've also had the opportunity to work on a 10,000 horsepower Top Fuel Dragster. I <a href="https://jakecharman.co.uk/projects/topfuel_dragster">wrote about this on the Nitro Junkie website, and later extended that post here.</a></p>
|
||||
<div class="gallery">
|
||||
<iframe class="yt" src="https://www.youtube.com/embed/Wa-V8mQTXFk?si=W-LzfR3Qj_jgAdkY&clip=UgkxV9lBj4pP1cvnR5seb82RQpWeE7RdnOXB&clipt=EOrWtgsYyqu6Cw&autoplay=1&mute=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
<img src="/static/images/jake_tf_1.jpg">
|
||||
<img alt="Jake working on a Top Fuel Dragster in the pits at Santa Pod Raceway" src="/static/images/jake_tf_1.jpg">
|
||||
</div>
|
||||
<div class="social">
|
||||
<a class="button" href="https://nitrojunkie.uk"><i class="fa-solid fa-globe"></i></a>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
{% if link.get('img') is not none %}
|
||||
<a href="{{link.src}}" target="_blank"></a>
|
||||
<img class="link-thumb"
|
||||
alt="{{ link.title }}"
|
||||
srcset="
|
||||
{% for i in range(200, 5100, 100) %}
|
||||
/image/{{ link.img }}?w={{i}} {{i}}w{{"," if not loop.last}}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Personal website of Jake Charman. A technology professional based in the UK.">
|
||||
<meta name="description" content="{% block description %}Personal website of Jake Charman. A technology professional based in the UK.{% endblock %}">
|
||||
<title>{{ page_title }}{{branding}}</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:[email protected]&family=Tourney:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Orbitron:[email protected]&family=Tourney:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
||||
@@ -31,6 +31,27 @@
|
||||
|
||||
gtag('config', 'G-6WMXXY0RL0');
|
||||
</script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Person",
|
||||
"name": "Jake Charman",
|
||||
"url": "https://jakecharman.co.uk/",
|
||||
"jobTitle": "Technology Professional",
|
||||
"sameAs": [
|
||||
"https://www.linkedin.com/in/jakecharman/",
|
||||
"https://github.com/jcharman/"
|
||||
]
|
||||
}
|
||||
</script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{{ branding }}",
|
||||
"url": "https://{{ url }}/"
|
||||
}
|
||||
</script>
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
@@ -43,7 +64,7 @@
|
||||
</nav>
|
||||
<div id="logo-container">
|
||||
<div id="logo">
|
||||
<a href='/'><h1>{{branding|upper}}</h1></a>
|
||||
<a href='/'>{{branding|upper}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<a href="/projects/{{ row.id }}">
|
||||
{% endif %}
|
||||
<img class="project-thumb"
|
||||
alt="{{ row.alt }}"
|
||||
srcset="
|
||||
{% for i in range(200, 5100, 100) %}
|
||||
/image/{{ row.image }}?w={{i}} {{i}}w{{"," if not loop.last}}
|
||||
|
||||
@@ -45,6 +45,11 @@ footer{
|
||||
|
||||
#logo>a{
|
||||
text-decoration: none;
|
||||
font-family: "Orbitron", sans-serif;
|
||||
font-optical-sizing: auto;
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
footer h2, section h2{
|
||||
|
||||
Reference in New Issue
Block a user