Skip to content

Commit

Permalink
Merge branch 'main' into auto-publish-frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Nov 20, 2024
2 parents c3eb7a8 + c14b74a commit 6f6410a
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 21 deletions.
61 changes: 61 additions & 0 deletions .testData/test-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"@context": "https://schema.org",
"@graph": [
{ "@context": "https://schema.org", "@type": "Article", "headline": "1 thing that sinks a consulting engagement before it starts gaining traction?", "image": [], "datePublished": "2023-12-08T00:00:00+00:00", "dateModified": "2024-11-19T17:15:42+00:00", "author": [{ "@type": "Person", "name": "Martin Hinshelwood", "url": "https://nkdagility.com/company/people/martin-hinshelwood/" }] },
{
"@type": "WebSite",
"@id": "https://nkdagility.com/#website",
"url": "https://nkdagility.com/",
"name": "naked Agility with Martin Hinshelwood",
"description": "",
"publisher": { "@id": "https://nkdagility.com/#organization" },
"potentialAction": [{ "@type": "SearchAction", "target": { "@type": "EntryPoint", "urlTemplate": "https://nkdagility.com/?s={search_term_string}" }, "query-input": { "@type": "PropertyValueSpecification", "valueRequired": true, "valueName": "search_term_string" } }],
"inLanguage": "en-GB"
},
{
"@type": "BreadcrumbList",
"@id": "https://nkdagility.com/resources/videos/1-thing-that-sinks-a-consulting-engagement-before-it-starts-gaining-traction/#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "naked Agility", "item": "https://nkdagility.com/" },
{ "@type": "ListItem", "position": 2, "name": "What we think?", "item": "https://nkdagility.com/resources/" },
{ "@type": "ListItem", "position": 3, "name": "Technically Agile: Videos", "item": "https://nkdagility.com/resources/videos/" },
{ "@type": "ListItem", "position": 4, "name": "1 thing that sinks a consulting engagement before it starts gaining traction?", "item": "https://nkdagility.com/resources/videos/1-thing-that-sinks-a-consulting-engagement-before-it-starts-gaining-traction/" }
]
},
{
"@type": "Person",
"@id": "https://nkdagility.com/company/people/martin-hinshelwood/#Person",
"name": "Martin Hinshelwood",
"image": {
"@type": "ImageObject",
"inLanguage": "en-GB",
"@id": "https://nkdagility.com/company/people/martin-hinshelwood/#primaryimage",
"url": "https://nkdagility.com/company/people/martin-hinshelwood/images/MartinHinshelwood260-SOLO.png",
"contentUrl": "https://nkdagility.com/company/people/martin-hinshelwood/images/MartinHinshelwood260-SOLO.png",
"caption": "Martin Hinshelwood - CEO, Principal Consultant \u0026amp; Trainer Focus on maximising value delivery for software products ✪ Award-winning Tech Leader, Author, \u0026amp; Speaker with 20+ yrs in DevOps, Lean, Agile ✪ EBMgt \u0026amp; HDD Champion ✪ Exec Tech Advisor ✪ Scrum (PST) \u0026amp; Kanban (PKT) Trainer"
},
"description": "CEO, Principal Consultant \u0026amp; Trainer Focus on maximising value delivery for software products ✪ Award-winning Tech Leader, Author, \u0026amp; Speaker with 20+ yrs in DevOps, Lean, Agile ✪ EBMgt \u0026amp; HDD Champion ✪ Exec Tech Advisor ✪ Scrum (PST) \u0026amp; Kanban (PKT) Trainer",
"sameAs": ["https://nkdagility.com/company/people/martin-hinshelwood/", "https://nkdagility.com/blog", "https://www.facebook.com/martin.hinshelwood", "http://www.linkedin.com/in/martinhinshelwood", "https://x.com/mrhinsh", "http://www.youtube.com/user/mrhinsh"]
},
{
"@type": "Organization",
"@id": "https://nkdagility.com/#organization",
"name": "naked Agility with Martin Hinshelwood",
"alternateName": "nkdAgility",
"url": "https://nkdagility.com/",
"logo": { "@type": "ImageObject", "inLanguage": "en-GB", "@id": "https://nkdagility.com/#/schema/logo/image/", "url": "https://nkdagility.com/images/nkdagility-with-martin-hinshelwood-light.png", "contentUrl": "https://nkdagility.com/images/nkdagility-with-martin-hinshelwood-light.png", "width": 1203, "height": 491, "caption": "naked Agility with Martin Hinshelwood" },
"image": { "@id": "https://nkdagility.com/#/schema/logo/image/" },
"sameAs": ["https://www.facebook.com/nkdAgility/", "https://x.com/nkdagility", "https://www.linkedin.com/company/naked-agility-with-martin-hinshelwood/", "https://www.youtube.com/@nakedAgility", "https://www.tiktok.com/@nkdagility"],
"description": "",
"email": "[email protected]",
"telephone": "+44 141 343 9621",
"legalName": "Naked Agility Limited",
"foundingDate": "2013-07-01",
"vatID": "GB410658614",
"taxID": "1030513365",
"duns": "219457519",
"numberOfEmployees": { "@type": "QuantitativeValue", "minValue": "1", "maxValue": "10" },
"address": { "@type": "PostalAddress", "streetAddress": "47 Ballantrae Crecent", "addressLocality": "Glasgow", "addressCountry": "UK", "addressRegion": "Scotland", "postalCode": "G775TX" }
}
]
}
16 changes: 9 additions & 7 deletions site/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@ sitemap:
changefreq: "daily"
priority: 0.5

# RSS feed settings
rss:
filename: "rss.xml"
name: "RSS Feed"
description: "Subscribe to our RSS feed"

outputs:
home: [html, json, rss]
section: [html, rss]
taxonomy: [html, rss]
term: [html, rss]
page: [html, rss]
page: [html]

outputFormats:
json:
Expand All @@ -46,6 +40,14 @@ outputFormats:
baseName: "courses"
mediaType: "application/json"
isPlainText: true
RSS:
mediaType: application/rss+xml
baseName: rss
isPlainText: true

services:
rss:
limit: 42

taxonomies:
category: categories
Expand Down
24 changes: 24 additions & 0 deletions site/layouts/_default/section.rss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Title | htmlEscape }} | {{ .Site.Title | htmlEscape }}</title>
<link>{{ .Permalink | absURL }}</link>
<description>{{ .Description | default .Site.Params.description | htmlEscape }}</description>
<language>{{ .Site.Language.Lang }}</language>
<atom:link href="{{ .Permalink | absURL }}" rel="self" type="application/rss+xml" />
{{ range first 50 .Pages.ByDate.Reverse }}
<item>
<title>{{ .Title | htmlEscape }}</title>
<link>{{ .Permalink }}</link>
<guid>{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<description><![CDATA[ {{ .Content | safeHTML }} ]]></description>
{{ $keywords := partial "functions/keywords.html" . }}
{{ range $keywords }}
<category>{{ . | htmlEscape }}</category>
{{- end -}}
</item>
{{ end }}
</channel>
</rss>

8 changes: 8 additions & 0 deletions site/layouts/partials/functions/keywords.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ $keywords := slice -}}
{{- range $taxonomy, $terms := .Page.Site.Taxonomies -}}
{{- $pageTerms := index $.Params $taxonomy -}}
{{- if $pageTerms -}}
{{- $keywords = $keywords | append $pageTerms -}}
{{- end -}}
{{- end -}}
{{- return $keywords -}}
12 changes: 2 additions & 10 deletions site/layouts/partials/infrastructure/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@
{{- end -}}
<link rel="canonical" href="{{- $canonicalUrl -}}" />
<link href="{{ with .OutputFormats.Get "RSS" -}}{{- .RelPermalink -}}{{- end -}}" rel="alternate" type="application/rss+xml" title="{{- .Title -}}" />

<meta name="description" content="{{- (.Description | default .Site.Params.description) | plainify -}}" />

{{ $keywords := slice -}}
{{- range $taxonomy, $terms := .Page.Site.Taxonomies -}}
{{- $pageTerms := index $.Params $taxonomy -}}
{{- if $pageTerms -}}
{{- $keywords = $keywords | append $pageTerms -}}
{{- end -}}
{{- end -}}
{{- if .Keywords -}}
{{- $keywords = $keywords | append .Keywords -}}
{{- end -}}
{{ $keywords := partial "functions/keywords.html" . }}
{{- if eq (len $keywords) 0 }}
{{- if .Site.Params.keywords -}}
{{- $keywords = $keywords | append .Site.Params.keywords -}}
Expand Down
11 changes: 7 additions & 4 deletions site/layouts/partials/publications/craft.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div class="publications-craft py-2">
<div class="text-muted">
Published <a href="{{- .Permalink }}" rel="bookmark"><time class="entry-date published updated" datetime="{{- .Date }}">{{- .Date.Format "2 January 2006" }}</time></a>
<div class="">
{{ $keywords := partial "functions/keywords.html" . }}
{{ range $keywords }}
<span class="badge text-bg-secondary">{{- . }}</span>
{{ end }}
</div>
<div class="text-muted">
Last Modified <a href="{{- .Permalink }}" rel="bookmark"><time class="entry-date published updated" datetime="{{- .Date }}">{{ .GitInfo.AuthorDate.Format "2 January 2006" }}</time></a>
<div class="text-muted" title="Published on {{ .Date.Format "2 January 2006" }} and last modified on {{ .GitInfo.AuthorDate.Format "2 January 2006" }}">
Published <a href="{{- .Permalink }}" rel="bookmark"><time class="entry-date published updated" datetime="{{- .Date }}">{{- .Date.Format "2 January 2006" }}</time></a>
</div>
<div class="text-muted">
<div class="text-muted">{{- partial "resources/contributors.html" . }}</div>
Expand Down

0 comments on commit 6f6410a

Please sign in to comment.