Преглед на файлове

Add description meta tag

Apis Necros преди 2 години
родител
ревизия
5db39fe753
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      layouts/partials/head.html

+ 1 - 0
layouts/partials/head.html

@@ -2,6 +2,7 @@
 	<meta charset="UTF-8" />
 	<meta http-equiv="content-language" content="en-us" />
 	<meta name="author" content="{{ .Site.Params.Author }}" />
+	<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.SiteDescription }}{{ end }}" />
 	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 	<link rel="pgpkey authn" href="/.well-known/apisnecros.txt" />
 	{{- $title := print .Title " - " .Site.Title }}