kamathskitchen-website/themes/raavas/layouts/partials/head.html

45 lines
2.7 KiB
HTML

<head>
<!-- Made with Hugo, Html and css by raghukamath -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}{{ if not .IsHome }} &middot; {{ .Site.Title }}{{ end }}</title>
{{ hugo.Generator }}
<meta property="og:title" content="{{ .Title }}">
{{ if .IsPage }}
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02" }}">
{{ else }}
<meta property="og:type" content="website">
{{ end }}
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
{{ if .Params.thumb }}
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.thumb }}">
{{ end }}
{{ range .Params.tags }}
<meta property="og:tags" content="{{ . }}">
{{ end }}
{{ if .Description }}
<meta property="twitter:card" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
{{ else }}
<meta property="twitter:card" content="{{ .Title }}">
{{ end }}
<meta property="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="twitter:title" content="{{ .Title }}">
{{ if .Params.thumb }}
<meta property="twitter:image" content="{{ .Site.BaseURL }}{{ .Params.thumb }}">
{{ end }}
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}" />
<meta name="keywords" content="{{with .Keywords}}{{ delimit . ", "}}{{ else }}{{ .Site.Params.keywords }}{{ end }}" />
<meta name="author" content="{{ .Site.Params.author }}"/>
{{ with resources.Get "css/main.css" | postCSS | minify }}
<style>{{ .Content | safeCSS }}</style>
{{ end }}
{{ if ne .Title "404 Page not found" }}
<link rel="canonical" href="{{ .Permalink }}" />
{{ end }}
<link href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<link rel="shortcut icon" href='data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 20 20" height="20" width="20"> <path fill="darksalmon" d="M 0.903774,3.0875566 V 16.912443 h 2.4244736 v -3.746312 l 0.9693081,-1.687498 2.4966294,5.43381 H 9.6948935 L 6.0750212,9.257368 9.6299534,3.0875566 H 6.7749433 L 3.4605356,8.9324671 H 3.3282476 V 3.0875566 Z m 9.681055,0 V 16.912443 h 2.424472 v -3.746312 l 0.969309,-1.687498 2.499032,5.43381 h 2.898304 L 15.756074,9.257368 19.311006,3.0875566 H 16.455995 L 13.141587,8.9324671 H 13.009301 V 3.0875566 Z"/> </svg> '>
</head>