Compare commits
No commits in common. "main" and "main" have entirely different histories.
24 changed files with 32 additions and 226 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -24,5 +24,3 @@ _gen
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
.hugo_build.lock
|
|
||||||
|
|
|
||||||
22
LICENCE
22
LICENCE
|
|
@ -1,22 +0,0 @@
|
||||||
Copyright 2021-2026 SR2 Communications Limited.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY
|
|
||||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
||||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
|
||||||
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
||||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
||||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
||||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGE.
|
|
||||||
31
README.md
31
README.md
|
|
@ -1,31 +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/))
|
|
||||||
* [Dynamic5 AB](https://dynamic5.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.
|
|
||||||
|
|
@ -51,10 +51,6 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
@media (max-width: v.$bp_mobile) {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-method__name {
|
.contact-method__name {
|
||||||
|
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
@use "hugo:vars" as v;
|
|
||||||
|
|
||||||
|
|
||||||
@media(min-width: v.$bp_mobile) {
|
|
||||||
.datapage {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datapage__content {
|
|
||||||
order: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datapage__data {
|
|
||||||
order: 2;
|
|
||||||
min-width: 350px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.datapage__datacard {
|
|
||||||
background-color: white;
|
|
||||||
box-shadow: 0 1.5rem 4rem rgba(22,28,45,0.05) !important;
|
|
||||||
padding: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.datapage__datacard {
|
|
||||||
address {
|
|
||||||
white-space: preserve-breaks;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
color: v.$color_tertiary;
|
|
||||||
font-variant: small-caps;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.datapage__content {
|
|
||||||
img {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
.flex-section {
|
.flex-section {
|
||||||
margin: 48px 95px;
|
margin: 48px 95px;
|
||||||
|
|
||||||
@media (max-width: v.$bp_mobile) {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-section__title {
|
.flex-section__title {
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,6 @@ footer {
|
||||||
justify-items: end;
|
justify-items: end;
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
img {
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,6 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: v.$max_content_width;
|
max-width: v.$max_content_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: v.$bp_mobile) {
|
|
||||||
padding: 10px 20px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.full-section__content {
|
.full-section__content {
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,10 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
&>div {
|
&>div {
|
||||||
|
flex: 0 0 50%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: calc(v.$max_content_width / 2);
|
max-width: calc(v.$max_content_width / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: v.$bp_mobile) {
|
|
||||||
& > div {
|
|
||||||
flex: 0 0 50%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.half-section__content {
|
.half-section__content {
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
@media (max-width: v.$bp_mobile) {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-member__photo {
|
.team-member__photo {
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
|
@ -1,10 +1,3 @@
|
||||||
Published = 'Published'
|
Published = 'Published'
|
||||||
Updated = 'Updated'
|
|
||||||
By = 'By %s'
|
By = 'By %s'
|
||||||
'Show larger map' = 'Show larger map'
|
'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'
|
||||||
10
i18n/sv.toml
10
i18n/sv.toml
|
|
@ -1,10 +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"
|
|
||||||
Address = "Adress"
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
Published = "tenpo toki"
|
|
||||||
By = "tan %s"
|
|
||||||
'Show larger map' = "o suli e sitelen ma"
|
|
||||||
Updated = "tenpo ante"
|
|
||||||
Telephone = "nanpa pi toki weka"
|
|
||||||
Email = "sitelen kon"
|
|
||||||
Fax = "nanpa pi sitelen weka"
|
|
||||||
Address = "nimi ma"
|
|
||||||
"Our Team" = "kulupu pali mi"
|
|
||||||
"Contact Us" = "o toki e mi"
|
|
||||||
|
|
@ -31,11 +31,8 @@
|
||||||
{{ if .icon }}
|
{{ if .icon }}
|
||||||
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
|
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .text }}
|
{{ .text }}</a
|
||||||
{{ if .status }}
|
>
|
||||||
<span class="status-indicator"></span>
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
|
||||||
{{ else if .caption }}
|
{{ else if .caption }}
|
||||||
<div class="footer__menu__caption">{{ .caption }}</div>
|
<div class="footer__menu__caption">{{ .caption }}</div>
|
||||||
{{ else if .logo }}
|
{{ else if .logo }}
|
||||||
|
|
@ -71,11 +68,8 @@
|
||||||
{{ if .icon }}
|
{{ if .icon }}
|
||||||
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
|
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .text }}
|
{{ .text }}</a
|
||||||
{{ if .status }}
|
>
|
||||||
<span class="status-indicator"></span>
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
|
||||||
{{ else if .caption }}
|
{{ else if .caption }}
|
||||||
<div class="footer__menu__caption">{{ .caption }}</div>
|
<div class="footer__menu__caption">{{ .caption }}</div>
|
||||||
{{ else if .logo }}
|
{{ else if .logo }}
|
||||||
|
|
|
||||||
|
|
@ -9,27 +9,31 @@
|
||||||
</title>
|
</title>
|
||||||
{{ partialCached "head/css.html" . }}
|
{{ partialCached "head/css.html" . }}
|
||||||
{{ partialCached "head/js.html" . }}
|
{{ partialCached "head/js.html" . }}
|
||||||
{{ partial "head/scripts.html" . }}
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap"
|
||||||
rel="stylesheet" />
|
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:title" content="{{ .Title }}" />
|
||||||
<meta property="og:url" content="{{ .RelPermalink }}" />
|
<meta property="og:url" content="{{ .RelPermalink }}" />
|
||||||
|
<meta property="og:description" content="{{ .Description }}" />
|
||||||
<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 -->
|
|
||||||
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
{{ define "main" }}
|
|
||||||
|
|
||||||
<h1 class="page__title">{{ .Title }}</h1>
|
|
||||||
|
|
||||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
|
||||||
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
|
|
||||||
<div class="page__date">
|
|
||||||
{{ T "Updated" }}
|
|
||||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
|
||||||
</div>
|
|
||||||
<div class="datapage">
|
|
||||||
<div class="datapage__data">
|
|
||||||
<div class="datapage__datacard">
|
|
||||||
<h3>{{ T "Location Details" }}</h3>
|
|
||||||
<h4>{{ T "Address" }}</h4>
|
|
||||||
<address>{{ .Params.address }}</address>
|
|
||||||
<h4>
|
|
||||||
{{ T "Telephone" }}
|
|
||||||
</h4>
|
|
||||||
<p>
|
|
||||||
<a href="tel:{{ .Params.telephone }}">{{ .Params.telephone }}</a>
|
|
||||||
</p>
|
|
||||||
<h4 class="fw-bold text-uppercase text-gray-700 mb-2">
|
|
||||||
GLN
|
|
||||||
</h4>
|
|
||||||
<p>
|
|
||||||
{{ with resources.Get (printf "/images/gln/%s.png" .Params.gln) }}
|
|
||||||
<img src="{{ .RelPermalink }}" alt="{{ .Params.gln }}" style="width: 100%;">
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="datapage__content">
|
|
||||||
|
|
||||||
{{ .Content }}
|
|
||||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue