From 4d2a2569a590f05830815b49acf8d41f6430e46f Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Thu, 22 Jul 2021 17:12:06 +0200 Subject: [PATCH] [*] Add support for basic meta and links to help with SEO --- config.toml | 12 +++- content/_index.md | 11 +++- content/blog/_index.md | 1 - content/blog/ubgpsuite-first-release/index.md | 16 ++--- .../layouts/_default/baseof.html | 59 ++++++++++++------- .../doublefourteen/layouts/_default/list.html | 5 +- .../layouts/_default/rss-list.html | 3 - .../layouts/_default/single.html | 3 - .../layouts/partials/favicon.html | 18 +++--- .../layouts/partials/navigation.html | 8 +-- 10 files changed, 77 insertions(+), 59 deletions(-) diff --git a/config.toml b/config.toml index 88b9fab..1c97b41 100644 --- a/config.toml +++ b/config.toml @@ -1,12 +1,19 @@ baseURL = "https://doublefourteen.io/" languageCode = "en-us" -title = "The DoubleFourteen Code Forge" theme = "doublefourteen" disableKinds = ["taxonomy", "term"] timeout = 1000000 [params] -description = "The DoubleFourteen Code Forge is a non-profit community promoting high quality software and scientific research." +title = "The DoubleFourteen Code Forge" +images = ["/logo.png"] +description = "The DoubleFourteen Code Forge is a non-profit community to promote high quality software and independent scientific research." +author = "The DoubleFourteen Community" + +[taxonomies] + category = "categories" + series = "series" + tag = "tags" [markup.goldmark.renderer] unsafe = true @@ -14,4 +21,5 @@ unsafe = true DefaultContentLanguage = "en" [languages] [languages.en] + languageName = "English" weight = 1 diff --git a/content/_index.md b/content/_index.md index f3a2f04..e38931c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,6 +1,15 @@ --- title: Home -mobile_menu_title: "Home" +tags: + - development + - coding + - hacking + - free software + - open source + - high performance + - research + - computer science + - non profit --- {{< flexrow style="justify-content:center;align-items:center" >}} diff --git a/content/blog/_index.md b/content/blog/_index.md index 86d4234..87d8600 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,6 +1,5 @@ --- title: Blog menu_title: Blog -mobile_menu_title: Blog layout: rss-list --- diff --git a/content/blog/ubgpsuite-first-release/index.md b/content/blog/ubgpsuite-first-release/index.md index 4d57c28..cebbbca 100644 --- a/content/blog/ubgpsuite-first-release/index.md +++ b/content/blog/ubgpsuite-first-release/index.md @@ -1,18 +1,14 @@ --- title: "The Micro BGP Suite has been released!" mobile_menu_title: "µbgpsuite now released!" -description: "We are happy to announce that ubgpsuite - The Micro BGP Suite - has been released: bgpgrep and lonetix are now available for use!" -date: 2021-06-15T00:00:00+00:00 -tags: - - ubgpsuite - - C Language - - Networking - - BGP - - News +date: 2021-06-15 +description: "The DoubleFourteen Code Forge is happy to announce that ubgpsuite - The Micro BGP Suite - has been released: bgpgrep and lonetix are now available!" +series: [ "ubgpsuite - The Micro BGP Suite" ] +categories: [ "news", "development" ] +tags: [ "ubgpsuite", "bgpgrep", "lonetix", "bgpscanner", "C Language", "Networking", "BGP" ] +news_keywords: [ "ubgpsuite", "bgpgrep", "lonetix", "bgpscanner" ] --- -**We are happy to announce that the first version of the micro BGP suite has now been released!** - ## The Micro BGP Suite is now available I am thrilled to announce that the very first version of the diff --git a/themes/doublefourteen/layouts/_default/baseof.html b/themes/doublefourteen/layouts/_default/baseof.html index f13d169..11ba182 100644 --- a/themes/doublefourteen/layouts/_default/baseof.html +++ b/themes/doublefourteen/layouts/_default/baseof.html @@ -2,43 +2,58 @@ {{ if isset .Params "lang" }} {{ $lang = .Params.lang }} {{end}} + - - - - - {{ block "title" . }} ⏎ {{ end }} {{ .Site.Title }} - + + + + + {{ block "title" . }}{{ .Title }}{{ end }} ⏎ {{ .Site.Params.title }} + - {{ if .Params.noindex }} - - {{ else if .Params.noarchive }} - + + {{ with default ( slice "index" "follow" ) .Params.robots }} + {{ end }} - {{ if .IsHome }} - {{ with $.Site.Params.description }} - - {{ end }} - {{ else }} - {{ with .Params.description }} - + + + + + + + {{ with .Language.LanguageName }} + + {{ end }} + {{ range .AllTranslations }} + {{ if .Language.LanguageName }} + {{ end }} {{ end }} - {{ block "meta" . }} + {{ template "_internal/schema.html" . }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/twitter_cards.html" . }} + + {{ block "meta" . }} {{ end }} + + + + + {{ with .OutputFormats.Get "RSS" }} + + {{ end }} + {{- partial "favicon.html" . -}} + {{ $sassOptions := ( dict "outputStyle" "compressed" ) }} {{ $styleCss := resources.Get "sass/style.sass" | toCSS $sassOptions | fingerprint }} {{ $navigationCss := resources.Get "sass/navigation.sass" | toCSS $sassOptions | fingerprint }} - - - {{ block "links" . }} - {{ end }} + {{ block "links" . }} {{ end }}
diff --git a/themes/doublefourteen/layouts/_default/list.html b/themes/doublefourteen/layouts/_default/list.html index 1e88561..04c8a53 100644 --- a/themes/doublefourteen/layouts/_default/list.html +++ b/themes/doublefourteen/layouts/_default/list.html @@ -1,13 +1,10 @@ -{{ define "title" }} - {{ .Title }} ⏎ -{{ end }} {{ define "main" }} {{- partial "parent-link" . -}}

{{ .Section }}

{{ if gt (len .Pages) 0 }}
    - {{ range .Pages | }} + {{ range .Pages | }}
  • {{ dateFormat "2006-01-02" .Date.Local }} - {{ .Title }}
  • diff --git a/themes/doublefourteen/layouts/_default/rss-list.html b/themes/doublefourteen/layouts/_default/rss-list.html index 9b252ac..e84872d 100644 --- a/themes/doublefourteen/layouts/_default/rss-list.html +++ b/themes/doublefourteen/layouts/_default/rss-list.html @@ -1,6 +1,3 @@ -{{ define "title" }} - {{ .Title }} ⏎ -{{ end }} {{ define "main" }} {{ $enSite := index .Sites 0 }} {{ $posts := where $enSite.RegularPages "Section" .Section }} diff --git a/themes/doublefourteen/layouts/_default/single.html b/themes/doublefourteen/layouts/_default/single.html index 30cedad..2c34429 100644 --- a/themes/doublefourteen/layouts/_default/single.html +++ b/themes/doublefourteen/layouts/_default/single.html @@ -1,6 +1,3 @@ -{{ define "title" }} - {{ .Title }} ⏎ -{{ end }} {{ define "main" }} {{- partial "parent-link" . -}}
    diff --git a/themes/doublefourteen/layouts/partials/favicon.html b/themes/doublefourteen/layouts/partials/favicon.html index 716be1a..d38823d 100644 --- a/themes/doublefourteen/layouts/partials/favicon.html +++ b/themes/doublefourteen/layouts/partials/favicon.html @@ -1,11 +1,11 @@ + + - - - - - - - - - + + + + + + + diff --git a/themes/doublefourteen/layouts/partials/navigation.html b/themes/doublefourteen/layouts/partials/navigation.html index c72bc24..2724316 100644 --- a/themes/doublefourteen/layouts/partials/navigation.html +++ b/themes/doublefourteen/layouts/partials/navigation.html @@ -1,6 +1,6 @@