Add more meta data and move scripts to site #3
2 changed files with 20 additions and 22 deletions
|
|
@ -9,31 +9,27 @@
|
|||
</title>
|
||||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
{{ partial "head/scripts.html" . }}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap"
|
||||
rel="stylesheet" />
|
||||
{{ if not .IsHome }}
|
||||
|
||||
<!-- Meta data-->
|
||||
{{- if .Description }}
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
<meta property="og:description" content="{{ .Description }}" />
|
||||
{{- end }}
|
||||
{{- if .Params.MetaKeywords }}
|
||||
<meta name="kaywords" content="{{ .Params.MetaKeywords }}" />
|
||||
{{- end }}
|
||||
{{- if .Params.MetaAuthor }}
|
||||
<meta name="author" content="{{ .Params.MetaAuthor }}" />
|
||||
{{- end }}
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="language" content="{{ (page.Language.LanguageCode | default (site.LanguageCode | default "en")) }}" />
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:url" content="{{ .RelPermalink }}" />
|
||||
<meta property="og:description" content="{{ .Description }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
{{ end }}
|
||||
{{ if eq .Name "Contact" }}
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script
|
||||
id="zammad_form_script"
|
||||
src="https://help.sr2.uk/assets/form/form.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#zammad-feedback-form").ZammadForm({
|
||||
agreementMessage: {{ site.Params.feedback.agreementMessage }},
|
||||
messageSubmit:{{ site.Params.feedback.messageSubmit }},
|
||||
messageThankYou:{{ site.Params.feedback.messageThankYou }},
|
||||
showTitle: false,
|
||||
noCSS: true,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
2
layouts/_partials/head/scripts.html
Normal file
2
layouts/_partials/head/scripts.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!-- Use this file to add additional scripts you might need -->
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue