Skip to content

Commit ac8a1f0

Browse files
author
Kayla Wilkins
committed
fixing meta tags, titles, descriptions, adding og and twitter ones as well
1 parent 84e8245 commit ac8a1f0

File tree

6 files changed

+54
-28
lines changed

6 files changed

+54
-28
lines changed

config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
baseURL = "https://developers.linode.com/"
1+
BaseURL = "https://developers.linode.com/"
22
languageCode = "en-us"
3-
title = "Linode Developers Site"
3+
title = "Developer Tools"
44
defaultContentLanguage = "en"
55
paginate = 25
66
preserveTaxonomyNames = true
@@ -39,7 +39,7 @@ url = "/changelog/api/"
3939
[params]
4040
date_format = "Monday, January 2, 2006"
4141
copyright = "Copyright (c) 2018, Linode LLC"
42-
logo = "/img/linode-logo_standard_light_small.png"
42+
logo = "/img/linode-logo_standard_dark_small.png"
4343

4444
[params.truncate]
4545
enable = true

content/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Developer Tools"
2+
title: "Linode Developer Tools"
33
subtitle: "For Developers, by Developers"
4-
Description: Developer Tools, For Developers, by Developers
4+
Description: Linode API Documentation, Guides, and Tools
55
---

content/changelog/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Changelog"
3-
subtitle: Latest updates from the Linode team
4-
Description: Latest updates from the Linode team
2+
title: "Linode Changelog"
3+
subtitle: Linode Product Release Notes
4+
Description: Linode Product Release Notes
55
date: 2018-06-13T08:55:08-04:00
66
draft: false
77
---
8-
This is the Changelog page. It's a blog of sorts, with filtering.
8+
Linode Product Release Notes

content/guides/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "Guides"
3-
subtitle: Get Started Building Tools and Apps Using the Linode API
4-
Description: Get Started Building Tools and Apps Using the Linode API
2+
title: "Linode API Guides"
3+
subtitle: Guides on getting started with the Linode API
4+
Description: Guides on getting started with the Linode API
55
author:
66
name: Josh Sager
77

content/libraries-tools/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Libraries & Tools
3-
subtitle: Integrate the Linode API with Your Application
4-
Description: Integrate the Linode API with Your Application
2+
title: Linode API Libraries and Tools
3+
subtitle: Libraries and DevOps tools for the Linode API
4+
Description: Libraries and DevOps tools for the Linode API
55
author:
66
name: Josh Sager
77

themes/dlc/layouts/partials/0_utilities/htmlHead.html

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,45 @@
55
<meta name="robots" content="all,follow">
66
<meta name="googlebot" content="index,follow,snippet,archive">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<title>{{ .Title }} | {{ .Site.Title }}</title>
9-
<meta name="author" content='{{ .Site.Author.name }}' />
10-
{{ if .Keywords }}
11-
<meta name="keywords" content='{{ delimit .Keywords ", " }}'>
12-
{{ else if .Site.Params.DefaultKeywords }}
13-
<meta name="keywords" content='{{ delimit .Site.Params.DefaultKeywords ", " }}'>
14-
{{ end }}
15-
{{ if .Description }}
16-
<meta name="description" content='{{ .Description }}'>
17-
{{ else if .Site.Params.DefaultDescription }}
18-
<meta name="description" content='{{ .Site.Params.DefaultDescription }}'>
19-
{{ end }}
20-
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
8+
{{- if ne .Kind "taxonomy" }}
9+
<title>{{ .Title }}</title>
10+
<meta property="og:title" content="{{ .Title }}">
11+
<meta property="twitter:title" content="{{ .Title }}">
12+
{{- if .Description }}
13+
<meta name="description" content='{{ .Description }}'>
14+
<meta property="og:description" content="{{ .Description }}">
15+
<meta property="twitter:description" content="{{ .Description }}">
16+
{{- else if .Site.Params.DefaultDescription }}
17+
<meta name="description" content='{{ .Site.Params.DefaultDescription }}'>
18+
<meta property="og:description" content="{{ .Site.Params.DefaultDescription }}">
19+
<meta property="twitter:description" content="{{ .Site.Params.DefaultDescription }}">
20+
{{ end }}
21+
{{- end -}}
22+
{{/* For Changelog Page Only */}}
23+
{{- if eq .Kind "taxonomy" -}}
24+
<title>Linode Changelog</title>
25+
<meta property="og:title" content="Linode Changelog">
26+
<meta property="twitter:title" content="Linode Changelog">
27+
<meta name="description" content='Linode Product Release Notes'>
28+
<meta property="og:description" content="Linode Product Release Notes">
29+
<meta property="twitter:description" content="Linode Product Release Notes">
30+
{{- end -}}
31+
{{/* End changelog conditional */}}
32+
<meta name="author" content='{{ .Site.Author.name }}' />
33+
{{ if .Keywords }}
34+
<meta name="keywords" content='{{ delimit .Keywords ", " }}'>
35+
{{ else if .Site.Params.DefaultKeywords }}
36+
<meta name="keywords" content='{{ delimit .Site.Params.DefaultKeywords ", " }}'>
37+
{{ end }}
38+
<meta property="og:type" content="website">
39+
<meta property="og:url" content="{{ .Site.BaseURL }}">
40+
<meta property="og:image" content="{{ .Site.Params.logo }}">
41+
<meta property="twitter:card" content="{{ .Site.Params.logo }}">
42+
<meta property="twitter:type" content="website">
43+
<meta property="twitter:domain" content="{{ .Site.BaseURL }}">
44+
<meta property="twitter:image" content="{{ .Site.Params.logo }}">
45+
<meta property="twitter:url" content="{{ .Site.BaseURL }}">
46+
2147
{{ .Hugo.Generator }}
2248

2349
{{ partial "0_utilities/fonts.html" . }}

0 commit comments

Comments
 (0)