mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
refactor(head): remove unnecessary space trim
This commit is contained in:
+30
-30
@@ -8,21 +8,21 @@
|
|||||||
<meta name="theme-color">
|
<meta name="theme-color">
|
||||||
|
|
||||||
{{/* Title */}}
|
{{/* Title */}}
|
||||||
{{ if .IsHome -}}
|
{{ if .IsHome }}
|
||||||
<title>{{ .Site.Title | emojify }}</title>
|
<title>{{ .Site.Title | emojify }}</title>
|
||||||
<meta name="title" content="{{ .Site.Title | emojify }}">
|
<meta name="title" content="{{ .Site.Title | emojify }}">
|
||||||
{{- else -}}
|
{{ else }}
|
||||||
<title>{{ .Title | emojify }} · {{ .Site.Title | emojify }}</title>
|
<title>{{ .Title | emojify }} · {{ .Site.Title | emojify }}</title>
|
||||||
<meta name="title" content="{{ .Title | emojify }} · {{ .Site.Title | emojify }}">
|
<meta name="title" content="{{ .Title | emojify }} · {{ .Site.Title | emojify }}">
|
||||||
{{- end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Metadata */}}
|
{{/* Metadata */}}
|
||||||
{{ with (.Params.Summary | default .Params.Description) | default .Site.Params.description -}}
|
{{ with (.Params.Summary | default .Params.Description) | default .Site.Params.description }}
|
||||||
<meta name="description" content="{{ . }}">
|
<meta name="description" content="{{ . }}">
|
||||||
{{- end }}
|
{{ end }}
|
||||||
{{ with .Params.Tags | default .Site.Params.keywords -}}
|
{{ with .Params.Tags | default .Site.Params.keywords }}
|
||||||
<meta name="keywords" content="{{ range . }}{{ . }},{{ end -}}">
|
<meta name="keywords" content="{{ range . }}{{ . }},{{ end }}">
|
||||||
{{- end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.robots }}
|
{{ with .Site.Params.robots }}
|
||||||
<meta name="robots" content="{{ . }}">
|
<meta name="robots" content="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -30,12 +30,12 @@
|
|||||||
<meta name="robots" content="{{ . }}">
|
<meta name="robots" content="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats }}
|
||||||
{{ printf `
|
{{ printf `
|
||||||
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) |
|
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) |
|
||||||
safeHTML
|
safeHTML
|
||||||
}}
|
}}
|
||||||
{{ end -}}
|
{{ end }}
|
||||||
|
|
||||||
{{ $alg := .Site.Params.fingerprintAlgorithm | default "sha512" }}
|
{{ $alg := .Site.Params.fingerprintAlgorithm | default "sha512" }}
|
||||||
|
|
||||||
@@ -143,25 +143,25 @@
|
|||||||
{{ template "_internal/opengraph.html" . }}
|
{{ template "_internal/opengraph.html" . }}
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
{{- /* Main page always uses this; fallback elsewhere if no feature image */ -}}
|
{{ /* Main page always uses this; fallback elsewhere if no feature image */ }}
|
||||||
{{- /* See https://gohugo.io/templates/embedded/#open-graph */ -}}
|
{{ /* See https://gohugo.io/templates/embedded/#open-graph */ }}
|
||||||
{{- $images := .Resources.ByType "image" -}}
|
{{ $images := .Resources.ByType "image" }}
|
||||||
{{- $socialImage := $images.GetMatch "*feature*" -}}
|
{{ $socialImage := $images.GetMatch "*feature*" }}
|
||||||
|
|
||||||
{{- if not $socialImage -}}
|
{{ if not $socialImage }}
|
||||||
{{- with .Site.Params.defaultSocialImage -}}
|
{{ with .Site.Params.defaultSocialImage }}
|
||||||
{{- if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") -}}
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
||||||
{{- $socialImage = resources.GetRemote . -}}
|
{{ $socialImage = resources.GetRemote . }}
|
||||||
{{- else -}}
|
{{ else }}
|
||||||
{{- $socialImage = resources.Get . -}}
|
{{ $socialImage = resources.Get . }}
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
|
|
||||||
{{- with $socialImage -}}
|
{{ with $socialImage }}
|
||||||
<meta name="twitter:image" content="{{ .RelPermalink | absURL }}">
|
<meta name="twitter:image" content="{{ .RelPermalink | absURL }}">
|
||||||
<meta property="og:image" content="{{ .RelPermalink | absURL }}">
|
<meta property="og:image" content="{{ .RelPermalink | absURL }}">
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Schema */}}
|
{{/* Schema */}}
|
||||||
{{ partial "schema.html" . }}
|
{{ partial "schema.html" . }}
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
|
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
|
||||||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
|
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
|
||||||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
|
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
const firebaseConfig = {
|
const firebaseConfig = {
|
||||||
apiKey: {{ $.Site.Params.firebase.apiKey }},
|
apiKey: {{ $.Site.Params.firebase.apiKey }},
|
||||||
@@ -214,11 +214,11 @@
|
|||||||
measurementId: {{ $.Site.Params.firebase.measurementId }}
|
measurementId: {{ $.Site.Params.firebase.measurementId }}
|
||||||
};
|
};
|
||||||
|
|
||||||
var app = firebase.initializeApp(firebaseConfig);
|
var app = firebase.initializeApp(firebaseConfig);
|
||||||
var db = firebase.firestore();
|
var db = firebase.firestore();
|
||||||
var auth = firebase.auth();
|
var auth = firebase.auth();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user