From 80338e004c9160695341a26500e3ecdbdb5428b6 Mon Sep 17 00:00:00 2001 From: Abraham Raji <avronr@tuta.io> Date: Tue, 28 Sep 2021 23:53:17 +0000 Subject: [PATCH] Add SEO Optimization --- website/config.toml | 144 +++++++++++++++-------------- website/layouts/partials/head.html | 16 +++- 2 files changed, 90 insertions(+), 70 deletions(-) diff --git a/website/config.toml b/website/config.toml index 549f942..bb94fce 100644 --- a/website/config.toml +++ b/website/config.toml @@ -1,81 +1,87 @@ baseURL = "https://camp.fsci.in" defaultContentLanguage = "en" +[params.main] +lang = "en" +keywords = "Software Freedom Camp Diveristy Edition, Diversity, Free Software" +description= "Software Freedom Camp is a mentorship programme for bringing more people to Free Software with strong focus on philosophy. We connect learners with experienced Free Software community members to work on some tasks together - this could be either technical or non technical. Diversity edition is aiming to reach out to people subject to systemic bias and impacted by under-representation in the technical industry in India." + img = "img/landing-image.png" + [markup] - defaultMarkdownHandler = "goldmark" - [markup.blackFriday] - angledQuotes = false - footnoteAnchorPrefix = "" - footnoteReturnLinkContents = "" - fractions = true - hrefTargetBlank = false - latexDashes = true - nofollowLinks = false - noreferrerLinks = false - plainIDAnchors = true - skipHTML = false - smartDashes = true - smartypants = true - smartypantsQuotesNBSP = false - taskLists = true - [markup.goldmark] - [markup.goldmark.extensions] - definitionList = true - footnote = true - linkify = true - strikethrough = true - table = true - taskList = true - typographer = true - [markup.goldmark.parser] - attribute = true - autoHeadingID = true - autoHeadingIDType = "github" - [markup.goldmark.renderer] - hardWraps = false - unsafe = true - xhtml = false - [markup.highlight] - codeFences = true - guessSyntax = false - hl_Lines = "" - lineNoStart = 1 - lineNos = false - lineNumbersInTable = true - noClasses = true - style = "monokai" - tabWidth = 4 - [markup.tableOfContents] - endLevel = 3 - ordered = false - startLevel = 2 +defaultMarkdownHandler = "goldmark" +[markup.blackFriday] +angledQuotes = false +footnoteAnchorPrefix = "" +footnoteReturnLinkContents = "" +fractions = true +hrefTargetBlank = false +latexDashes = true +nofollowLinks = false +noreferrerLinks = false +plainIDAnchors = true +skipHTML = false +smartDashes = true +smartypants = true +smartypantsQuotesNBSP = false +taskLists = true +[markup.goldmark] +[markup.goldmark.extensions] +definitionList = true +footnote = true +linkify = true +strikethrough = true +table = true +taskList = true +typographer = true +[markup.goldmark.parser] +attribute = true +autoHeadingID = true +autoHeadingIDType = "github" +[markup.goldmark.renderer] +hardWraps = false +unsafe = true +xhtml = false +[markup.highlight] +codeFences = true +guessSyntax = false +hl_Lines = "" +lineNoStart = 1 +lineNos = false +lineNumbersInTable = true +noClasses = true +style = "monokai" +tabWidth = 4 +[markup.tableOfContents] +endLevel = 3 +ordered = false +startLevel = 2 [languages] - [languages.en] - languageName = "English" - contentDir = "content/english" - title = "Software Freedom Camp (Diversity Edition)" +[languages.en] +languageName = "English" +contentDir = "content/english" +title = "Software Freedom Camp (Diversity Edition)" - [languages.hi] - languageName = "हिनà¥à¤¦à¥€" - contentDir= "content/hindi" +[languages.hi] +languageName = "हिनà¥à¤¦à¥€" +contentDir= "content/hindi" - [languages.kn] - languageName = "ಕನà³à²¨à²¡" - contentDir = "content/kananda" +[languages.kn] +languageName = "ಕನà³à²¨à²¡" +contentDir = "content/kananda" - [languages.ml] - languageName = "മലയാളം" - contentDir= "content/malayalam" +[languages.ml] +languageName = "മലയാളം" +contentDir= "content/malayalam" - [languages.mr] - languageName = "मराठी" - contentDir= "content/marathi" +[languages.mr] +languageName = "मराठी" +contentDir= "content/marathi" - [languages.ta] - languageName = "தமிழà¯" - contentDir = "content/tamil" +[languages.ta] +languageName = "தமிழà¯" +contentDir = "content/tamil" - [languages.te] - languageName = "తెలà±à°—à±" - contentDir= "content/telugu" +[languages.te] +languageName = "తెలà±à°—à±" +contentDir= "content/telugu" diff --git a/website/layouts/partials/head.html b/website/layouts/partials/head.html index 2ff8175..6ef08ff 100644 --- a/website/layouts/partials/head.html +++ b/website/layouts/partials/head.html @@ -1,8 +1,22 @@ <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> + {{ if .IsHome}} <title>{{i18n "sfcamp"}} 2021</title> - <meta name="description" content=""> + <meta name="description" content="{{ .Site.Params.main.description }}" > + <meta property="og:title" content="{{i18n "sfcamp"}} 2021" /> + <meta property="og:description" content="{{ .Site.Params.main.description | plainify }}"/> + <meta property="og:image" content="{{ .Site.Params.main.img | absURL }}" /> + <meta name="keywords" content="{{ $.Site.Params.main.Keywords }}"/> + {{else}} + <title>{{.Title}} | {{.Site.Title}}</title> + <meta name="description" content="{{.Title}}"> + <meta property="og:site_name" content="{{ .Title }}" /> + <meta property="og:title" content="{{ .Site.Title }}" /> + <meta property="og:description" content="{{ .Summary | plainify}}"/> + <meta property="og:image" content="{{ .Site.Params.main.img | absURL }}" /> + <meta name="keywords" content="{{ with .Params.Keywords }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"/> + {{end}} <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href='{{"css/style.css" | absURL }}' type="text/css" media="screen" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> -- GitLab