Skip to content

Commit 343f550

Browse files
committed
Add SEO improvements: JSON-LD structured data, robots.txt, social banner, and Google Search Console verification
1 parent 71937e0 commit 343f550

5 files changed

Lines changed: 59 additions & 3 deletions

File tree

docs/googled9adea3b1b604a4f.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: googled9adea3b1b604a4f.html

docs/images/social-banner.png

58.1 KB
Loading

docs/overrides/main.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
<meta property="og:image" content="{{ config.site_url }}images/social-banner.png">
5+
<meta property="og:image:width" content="1200">
6+
<meta property="og:image:height" content="630">
7+
{% if "blog/posts/" in page.url %}
8+
{% set description = page.meta.description | default(config.site_description) %}
9+
<script type="application/ld+json">
10+
{
11+
"@context": "https://schema.org",
12+
"@type": "BlogPosting",
13+
"headline": {{ page.title | tojson }},
14+
"description": {{ description | tojson }},
15+
"url": {{ page.canonical_url | tojson }},
16+
"author": {
17+
"@type": "Person",
18+
"name": "Will Dean",
19+
"url": {{ config.site_url | tojson }}
20+
}
21+
}
22+
</script>
23+
{% endif %}
24+
<script type="application/ld+json">
25+
{
26+
"@context": "https://schema.org",
27+
"@type": "Person",
28+
"name": "Will Dean",
29+
"url": {{ config.site_url | tojson }},
30+
"sameAs": [
31+
"https://github.com/williambdean",
32+
"https://www.linkedin.com/in/williambdean/"
33+
]
34+
}
35+
</script>
36+
{% if page.is_homepage %}
37+
<script type="application/ld+json">
38+
{
39+
"@context": "https://schema.org",
40+
"@type": "WebSite",
41+
"name": {{ config.site_name | tojson }},
42+
"url": {{ config.site_url | tojson }},
43+
"description": {{ config.site_description | tojson }},
44+
"author": {
45+
"@type": "Person",
46+
"name": "Will Dean"
47+
}
48+
}
49+
</script>
50+
{% endif %}
51+
{% endblock %}

docs/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://williambdean.github.io/sitemap.xml

mkdocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ markdown_extensions:
5454
emoji_generator: !!python/name:material.extensions.emoji.to_svg
5555

5656
extra:
57+
analytics:
58+
provider: google
59+
property: G-R1GGWK6LCW
5760
social:
5861
- icon: fontawesome/brands/github
5962
link: https://github.com/williambdean
6063
- icon: fontawesome/brands/linkedin
6164
link: https://www.linkedin.com/in/williambdean/
62-
analytics:
63-
provider: google
64-
property: G-R1GGWK6LCW
6565

6666
nav:
6767
- Welcome: index.md

0 commit comments

Comments
 (0)