Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions data/tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ux:
name: "UX"
description: "This is the description for the UX tag."

design:
name: "Design"
description: "All about design principles and practices."

development:
name: "Development"
description: "Insights into software development."

startup:
name: "Startup"
description: "Insights into startup development."
16 changes: 14 additions & 2 deletions themes/beaver/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<title>{{ .Title }}</title>
<meta name="description" content="{{ .Params.description }}" />


{{ if eq .Section "tags" }}
{{ $tagName := lower .Title }}
{{ $tagData := index .Site.Data.tags $tagName }}

<meta name="description" content="{{ $tagData.description | default "" }}" />
<meta property="og:description" content="{{ $tagData.description | default "" }}" />
{{ else }}
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else if .Params.description }}{{ .Params.description }}{{ end }}" />
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else if .Params.description }}{{ .Params.description }}{{ end }}" />
{{ end }}


<meta name="robots" content="index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>

{{ if and (eq .Kind "taxonomy") (eq .Section "tags") }}
Expand All @@ -25,7 +38,6 @@

<meta property="og:locale" content="en_US" />
<meta property="og:title" content="{{ .Title }} | JetThoughts" />
<meta property="og:description" content="{{ .Params.description }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="JetThoughts" />
<meta property="og:updated_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}" />
Expand Down