Welcome to mirror list, hosted at ThFree Co, Russian Federation.

meta.html « partials « layouts - github.com/darshanbaral/aafu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f61be2866318f8464ab3e6cd90dbc892b7056642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<title>{{ .Site.Params.title }}</title>

<meta name="theme-color" content="" />
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="author" content="{{ .Site.Params.author }}" />
{{- $hugoGenerator := index (findRE `content=\"(.+)\"` hugo.Generator) 0 }}
<meta name="generator" content="aafu theme by Darshan in {{ replaceRE `content=|\"` `` $hugoGenerator }}" />

{{- if .Site.Params.favicons.use }}
{{- $metas := .Site.Params.favicons.metas }}
{{- range (split $metas "\n") }}
{{- $original := index (findRE `href=\"(.*)\"[ |>]` .) 0 }}
{{ $processed := replaceRE `href|\"|>|=` `` $original | relURL }}
{{ replaceRE `(href=\")(.*)(\"[ |>])` (print `$1` $processed `$3`) . | safeHTML }}
{{- end }}
{{ end -}}