customized rss and meta descriptions
This commit is contained in:
parent
ef83b475fb
commit
6bd0784f93
|
@ -23,7 +23,7 @@ enableGitInfo = true
|
|||
# disabled to get rid of cloudflare cookies
|
||||
MathJax = false
|
||||
|
||||
description = "Freshly baked thoughts"
|
||||
description = "Freshly Baked Thoughts"
|
||||
accent = "#018661"
|
||||
showBorder = true
|
||||
copyright = "↑ <a href='#header'>Top</a> <svg class='icon icon-small' width='16' height='16'><title>lightbulb icon</title><use xlink:href='#bulb'></use></svg> <a href='/'>Brain Baking</a>. <a href='/no-copyright-no-tracking'>No © and no tracking</a>."
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<description>{{ .Site.Title }} | {{ .Site.Params.description }} by {{ .Site.Author.name }} </description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}
|
||||
<managingEditor>{{ with $.Site.Author.name }}{{.}}{{end}}</managingEditor>
|
||||
|
|
|
@ -17,8 +17,13 @@
|
|||
<meta name="description" content="{{ .Params.subtitle }}">
|
||||
<meta name="twitter:description" content="{{ .Params.subtitle }}" property="og:description">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Summary | safeHTML | truncate 50 }}">
|
||||
<meta name="twitter:description" content="{{ .Summary | safeHTML | truncate 50 }}" property="og:description">
|
||||
{{ if .Summary }}
|
||||
<meta name="description" content="{{ .Summary | safeHTML | truncate 50 }}">
|
||||
<meta name="twitter:description" content="{{ .Summary | safeHTML | truncate 50 }}" property="og:description">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Site.Title }} | {{ .Site.Params.description }}">
|
||||
<meta name="twitter:description" content="{{ .Site.Title }} | {{ .Site.Params.description }}" property="og:description">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Keywords }}
|
||||
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
{{ partial "head-meta" . }}
|
||||
{{ if eq .Title .Site.Title }}
|
||||
<title>{{ .Title }}</title>
|
||||
<title>{{ .Title }} | {{ .Site.Params.description }} </title>
|
||||
{{ else }}
|
||||
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue