forked from sr2/hugo-sr2
Compare commits
No commits in common. "938f5efabde46140b42e91eaadd9d6c691361448" and "8a6a4ad43cb1a93587f80cee5e0501cdf1016b66" have entirely different histories.
938f5efabd
...
8a6a4ad43c
7 changed files with 26 additions and 70 deletions
30
README.md
30
README.md
|
|
@ -1,30 +0,0 @@
|
|||
SR2's Hugo Theme
|
||||
================
|
||||
|
||||
|
||||
[](https://hosted.weblate.org/engage/sr2/)
|
||||
[](https://opensource.org/licenses/BSD-2-Clause)
|
||||
|
||||
A Hugo theme created for SR2, with some simple page and blog layouts.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
* [SR2 Communications](https://www.sr2.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2.uk/))
|
||||
* [SR2 Professional Services](https://www.sr2pro.uk/) ([Source Code](https://guardianproject.dev/sr2/www.sr2pro.uk/))
|
||||
* [499-501 Union Street (Management) Limited](https://www.499501.com/) ([Source Code](https://guardianproject.dev/sr2/www.499501.com/))
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
The theme is created to support multiple languages.
|
||||
Translations of strings in the themes are managed on Weblate.
|
||||
|
||||
<a href="https://hosted.weblate.org/engage/sr2/">
|
||||
<img src="https://hosted.weblate.org/widget/sr2/hugo-sr2/multi-auto.svg" alt="Translation status" />
|
||||
</a>
|
||||
|
||||
Licence & Copyright
|
||||
-------------------
|
||||
|
||||
© SR2 Communications Limited. See [LICENCE](./LICENCE) for details of the BSD 2 clause licence.
|
||||
|
|
@ -1,10 +1,3 @@
|
|||
Published = 'Published'
|
||||
Updated = 'Updated'
|
||||
By = 'By %s'
|
||||
'Show larger map' = 'Show larger map'
|
||||
Telephone = 'Telephone'
|
||||
Email = 'Email'
|
||||
Fax = 'Fax'
|
||||
'Address' = 'Address'
|
||||
'Our Team' = 'Our Team'
|
||||
'Contact Us' = 'Contact Us'
|
||||
|
|
|
|||
3
i18n/se.toml
Normal file
3
i18n/se.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Published = 'Publicerad'
|
||||
By = 'Av %s'
|
||||
'Show larger map' = 'Visa större karta'
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
Published = 'Publicerad'
|
||||
Updated = 'Ändrad'
|
||||
By = 'Av %s'
|
||||
'Show larger map' = 'Visa större karta'
|
||||
Telephone = 'Telefon'
|
||||
Email = 'Epost'
|
||||
Fax = 'Fax'
|
||||
'Our Team' = 'Vårt Team'
|
||||
'Contact Us' = 'Kontakta oss'
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
Published = "tenpo toki"
|
||||
By = "tan %s"
|
||||
'Show larger map' = "o suli e sitelen ma"
|
||||
|
|
@ -9,27 +9,31 @@
|
|||
</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" />
|
||||
|
||||
<!-- Meta data-->
|
||||
{{- if .Description }}
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
{{ if not .IsHome }}
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:url" content="{{ .RelPermalink }}" />
|
||||
<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:type" content="website" />
|
||||
|
||||
<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 }}
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
<!-- Use this file to add additional scripts you might need -->
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue