Remove custom head to test

This commit is contained in:
Salar Rahmanian 2022-10-15 12:03:49 -07:00
parent dae02c0fe2
commit d51269a9cf

View file

@ -1,64 +0,0 @@
{{- $params := site.Params }}
{{- $separator := default "|" $params.titleSeparator }}
{{- $title := "" }}
{{- if and .Title (ne (trim (lower .Site.Title) "") (trim (lower .Title) "")) }}
{{- if eq .Kind "taxonomy" }}
{{- $title = default .Title ( T (lower .Title) ) }}
{{- else }}
{{- $title = .Title }}
{{- end }}
{{- end }}
<title>{{ if and .Title (ne (trim (lower .Site.Title) "") (trim (lower .Title) "")) }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<meta charset='utf-8'>
{{ hugo.Generator }}
{{- with .Site.Params.ga_verify }}
<meta name="google-site-verification" content="{{ . }}" />
{{- end }}
<meta name = 'viewport' content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'>
<meta http-equiv = 'X-UA-Compatible' content = 'IE=edge'>
{{- if (ne hugo.Environment "development") }}
{{- partial "analytics.html" . }}
{{- end }}
{{- partial "opengraph.html" . }}
{{- partial "favicon.html" . }}
<link rel='canonical' href='{{ .Permalink }}'>
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<!-- preload assets declaration -->
<!-- preload main css file -->
{{ $styles := partialCached "func/getStylesBundle" . }}
<link rel="preload" href="{{ $styles.Permalink }}" integrity = "{{ $styles.Data.Integrity }}" as="style" crossorigin="anonymous">
<!-- preload main javascript file -->
{{ $bundle := partialCached "func/getJavascriptBundle" . }}
<link rel="preload" href="{{ $bundle.Permalink }}" as="script" integrity=
"{{ $bundle.Data.Integrity }}" crossorigin="anonymous">
<!-- link main css file -->
<link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous">
<!-- load all custom css files -->
{{- with $params.customCSS }}
{{- range . -}}
<link rel="stylesheet" href="{{ relURL . }}">
{{- end }}
{{- end }}
<!-- author & description & keywords -->
<meta name="author" content="{{ .Site.Params.author | safeHTML }}" />
{{- if .Description -}}
<meta name="description" content="{{ .Description | safeHTML }}" />
{{ else if .IsPage }}
<meta name="description" content="{{ .Summary | plainify }}" />
{{ else if .Site.Params.description }}
<meta name="description" content="{{ .Site.Params.description | safeHTML }}" />
{{- end -}}
{{- if .Keywords -}}
{{ $length := len .Keywords | add -1 -}}
<meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
{{ else if .Site.Params.keywords }}
{{ $length := len .Site.Params.keywords | add -1 -}}
<meta name="keywords" content="{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
{{- end }}
<a rel="me" href="https://fosstodon.org/@softinio">Mastodon</a>