summaryrefslogtreecommitdiff
path: root/_content
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-28 18:01:46 +0700
committerShulhan <ms@kilabit.info>2024-03-28 18:06:54 +0700
commit5fcda3777a62f57a77db2e62952f76c175f86cee (patch)
tree89ccf0b1670ebc7e891c5348ba9f97ecad41e5f6 /_content
parentbd862a3bb242982c7fd8c7239e8e32a66c5390f8 (diff)
downloadkilabit.info-5fcda3777a62f57a77db2e62952f76c175f86cee.tar.xz
_content: render the metadata "description" on HTML file
The description value, however, is useful for SEO: the description content value is often what search engines display under the page's title in search results. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages. The description should be a short and accurate summary of the page's content.
Diffstat (limited to '_content')
-rw-r--r--_content/template.gohtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/_content/template.gohtml b/_content/template.gohtml
index 122a82f..dca34bc 100644
--- a/_content/template.gohtml
+++ b/_content/template.gohtml
@@ -5,6 +5,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#375EAB" />
+ {{- if .Metadata.description}}
+ <meta name="description" content="{{.Metadata.description}}" />
+ {{- end}}
<title>{{.Title}}</title>
<style>
@font-face {