Skip to content

Commit 2011101

Browse files
johanrinclaude
andcommitted
Fix JSON-LD structured data, meta tags, and deprecated shortcodes
- Quote headline/description/name in JSON-LD with jsonify for valid JSON - Fix pagination section filter from "blog" to "posts" - Fix .Params.category to .Params.categories to match front matter - Quote content attributes on published_time meta tags - Add missing space after `with` in template tags - Replace deprecated tweet shortcodes with x (8 instances across 3 posts) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a9c9b02 commit 2011101

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

content/posts/aws-step-functions-with-api-gateway-and-sam/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ['AWS', 'Step Functions', 'API Gateway', 'SAM', 'Serverless']
99

1010
Last weekend I played with AWS Step Functions! I wanted to refactor a Lambda function I already coded for the sake of maintainability and evolutivity.
1111

12-
{{< tweet user="johanrin" id="1386327733408514052" >}}
12+
{{< x user="johanrin" id="1386327733408514052" >}}
1313

1414
After having some fun with AWS Serverless Application Model (AWS SAM) refactoring and deploying my workflow on AWS, I wanted to call it from outside AWS with a simple endpoint.
1515

content/posts/azure-administrator-az-104/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ['Azure', 'Certification', 'AZ-104', 'Study Guide']
99

1010
After becoming Azure Solutions Architect Expert Certified in October, I challenged myself to pass the AZ-104 Microsoft Azure Administrator exam before the end of 2020!
1111

12-
{{< tweet user="johanrin" id="1320411647811457029" >}}
12+
{{< x user="johanrin" id="1320411647811457029" >}}
1313

1414
I didn't start my preparation right away. At first, I spent 20 days sharpening my PowerShell skills to understand my course, which included many PowerShell commands.
1515

@@ -67,7 +67,7 @@ As you can imagine, this is an in-depth exam which will test you on technical sk
6767

6868
The exam costs $165, but you can schedule it for free with a voucher. Be sure to follow me on [Twitter](https://twitter.com/johanrin) — I tweet every time I find opportunities to get free vouchers.
6969

70-
{{< tweet user="johanrin" id="1320278269242101764" >}}
70+
{{< x user="johanrin" id="1320278269242101764" >}}
7171

7272
To schedule your AZ-104 exam, go to the Microsoft certification page here: [https://docs.microsoft.com/en-us/learn/certifications/exams/az-104](https://docs.microsoft.com/en-us/learn/certifications/exams/az-104).
7373

@@ -92,7 +92,7 @@ With the course, you also have access to Whizlabs practice tests and other conte
9292

9393
The combination of CloudSkills and Whizlabs practice tests was enough for me to pass the AZ-104 exam!
9494

95-
{{< tweet user="johanrin" id="1343225728498884612" >}}
95+
{{< x user="johanrin" id="1343225728498884612" >}}
9696

9797
Compared to the AZ-30x exams, this exam wasn't difficult, but my preparation was chaotic as the end of the year approached. Fortunately, I managed to pass this exam one day before my birthday 🎉
9898

content/posts/azure-architect-az-300/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ['Azure', 'Certification', 'AZ-300', 'Study Guide']
99

1010
After [passing the AZ-900 Microsoft Azure Fundamentals exam](https://www.freecodecamp.org/news/how-i-passed-the-az-900-microsoft-azure-fundamentals-exam/), I challenged myself to get Azure Solutions Architect Expert certified! I knew this would not be easy from the start, but it's [only my eighth challenge this year](https://www.freecodecamp.org/news/how-i-got-awscertified-and-got-a-job-during-the-pandemic/), and nothing could stop me!
1111

12-
{{< tweet user="johanrin" id="1269876255140253697" >}}
12+
{{< x user="johanrin" id="1269876255140253697" >}}
1313

1414
In this post, I will explain how I prepared for the AZ-300 Microsoft Azure Architect Technologies exam.
1515

@@ -81,7 +81,7 @@ As you can see, it's an in-depth exam, so don't expect passing without solid kno
8181

8282
The exam isn't cheap. It will cost you $165, but if you're joining a Microsoft Challenge, it's possible to get a free Microsoft Certification exam!
8383

84-
{{< tweet user="johanrin" id="1308393400564154376" >}}
84+
{{< x user="johanrin" id="1308393400564154376" >}}
8585

8686
To schedule your AZ-303 online exam with Pearson VUE, you can go to the certification page: [https://docs.microsoft.com/en-us/learn/certifications/exams/az-303](https://docs.microsoft.com/en-us/learn/certifications/exams/az-303).
8787

@@ -107,7 +107,7 @@ Microsoft Learn has the advantages of having short scenarios with exercises you
107107

108108
But to be honest, I didn't feel confident to take my exam after finishing all the learning paths. It was too theoretical for me, especially for an expert level exam. Because I had many doubts, I asked the Cloud community recommendations to finish my preparation, and many people recommended me CloudSkills. So I decided to give it a try!
109109

110-
{{< tweet user="johanrin" id="1295802835012145154" >}}
110+
{{< x user="johanrin" id="1295802835012145154" >}}
111111

112112
### CloudSkills
113113

@@ -149,7 +149,7 @@ The cool thing is he did that for all the following exams:
149149

150150
The combination of CloudSkills, Thomas Maurer's study guide, and Whizlabs practice tests were enough for me to pass the AZ-300 exam!
151151

152-
{{< tweet user="johanrin" id="1310597693631324160" >}}
152+
{{< x user="johanrin" id="1310597693631324160" >}}
153153

154154
It's probably the most challenging exam I have prepared so far. I worked on it every single day from June to September at least one hour per day. The funny thing is back in June, I was still new to Azure, and it took me 150 days to pass the exam.
155155

layouts/partials/meta/post.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ $ISO_date := dateFormat "2006-01-02T15:04:05Z0700" .Date | safeHTML }}
44
<!-- Pagination meta tags for list pages only -->
55
{{ if ne .Page.Kind "page" }}
6-
{{ $paginator := .Paginate (where .Pages "Section" "blog") }}
6+
{{ $paginator := .Paginate (where .Pages "Section" "posts") }}
77
{{ if $paginator }}
88
<link rel="first" href="{{ $paginator.First.URL }}" />
99
<link rel="last" href="{{ $paginator.Last.URL }}" />
@@ -17,20 +17,20 @@
1717
{{end }}
1818

1919
<meta property="og:type" content="article" />
20-
<meta property="og:article:published_time" content={{ $ISO_date | safeHTML }} />
21-
<meta property="article:published_time" content={{ $ISO_date | safeHTML }} />
20+
<meta property="og:article:published_time" content="{{ $ISO_date }}" />
21+
<meta property="article:published_time" content="{{ $ISO_date }}" />
2222
<meta property="og:url" content="{{ .Permalink }}" />
2323

24-
{{ with.Site.Params.author }}
24+
{{ with .Site.Params.author }}
2525
<meta property="og:article:author" content="{{ .name }}" />
2626
<meta property="article:author" content="{{ .name }}" />
2727
<meta name="author" content="{{ .name }}" />
28-
{{ with.fediverseAccount }}
28+
{{ with .fediverseAccount }}
2929
<meta name="fediverse:creator" content="{{ . }}" />{{/* ref https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/ */}}
3030
{{ end }}
3131
{{ end }}
3232

33-
{{ with.Params.category }}
33+
{{ with .Params.categories }}
3434
<meta name="news_keywords" content="{{ index . 0 }}" />
3535
<meta property="article:section" content="{{ index . 0 }}" />
3636
{{ end }}
@@ -41,13 +41,13 @@
4141
{
4242
"@context": "https://schema.org",
4343
"@type": "Article",
44-
"headline": {{ .Title }},
44+
"headline": {{ .Title | jsonify }},
4545
"author": {
4646
"@type": "Person",
4747
"name": "{{ .Site.Params.author.name }}"
4848
},
4949
"datePublished": "{{ dateFormat "2006-01-02" .Date }}",
50-
"description": {{ .Description }},
50+
"description": {{ .Description | jsonify }},
5151
"wordCount": {{ .WordCount }},
5252
"mainEntityOfPage": {
5353
"@type": "WebPage",
@@ -94,7 +94,7 @@
9494
,{
9595
"@type": "ListItem",
9696
"position": 3,
97-
"name": {{ .Title }},
97+
"name": {{ .Title | jsonify }},
9898
"item": "{{ .Permalink }}"
9999
}
100100
{{- end -}}

0 commit comments

Comments
 (0)