github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/head.html (about) 1 <meta charset="utf-8"> 2 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 3 {{ hugo.Generator }} 4 {{- $outputFormat := partial "outputformat.html" . -}} 5 6 {{ range .AlternativeOutputFormats -}} 7 <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> 8 {{ end -}} 9 10 {{ if and hugo.IsProduction (ne $outputFormat "print") -}} 11 <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW"> 12 {{ else -}} 13 <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> 14 {{ end -}} 15 16 {{ partialCached "favicons.html" . }} 17 <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title> 18 <!-- for search engine optimization and third-party search engines like Elastic App Search--> 19 {{ if .Page.Description }} 20 <meta name="description" content="{{ .Page.Description }}"> 21 {{ else }} 22 {{ $desc := (.Page.Content | safeHTML | truncate 150) }} 23 <meta name="description" content="{{ $desc }}"> 24 {{ end }} 25 26 {{- template "_internal/opengraph.html" . -}} 27 {{- template "_internal/google_news.html" . -}} 28 {{- template "_internal/schema.html" . -}} 29 {{- template "_internal/twitter_cards.html" . -}} 30 31 {{ partialCached "head-css.html" . "asdf" }} 32 <script 33 src="https://code.jquery.com/jquery-3.5.1.min.js" 34 integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" 35 crossorigin="anonymous"></script> 36 {{ if .Site.Params.offlineSearch }} 37 <script 38 src="https://unpkg.com/lunr@2.3.8/lunr.min.js" 39 integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY" 40 crossorigin="anonymous"></script> 41 {{end}} 42 {{ if .Site.Params.prism_syntax_highlighting }} 43 <!-- stylesheet for Prism --> 44 <link rel="stylesheet" href="{{ "/css/prism.css" | relURL }}"/> 45 {{ end }} 46 {{ partial "hooks/head-end.html" . }} 47 <!--To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled --> 48 {{ if hugo.IsProduction }} 49 {{ if hasPrefix .Site.GoogleAnalytics "G-"}} 50 {{ template "_internal/google_analytics.html" . }} 51 {{ else }} 52 {{ template "_internal/google_analytics_async.html" . }} 53 {{ end }} 54 {{ end }}