Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit e55283e

Browse files
refactor: oppdater footer
1 parent 5c6c405 commit e55283e

File tree

6 files changed

+17
-26
lines changed

6 files changed

+17
-26
lines changed

site/data/discord.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"joinUrl": "https://discord.gg/mBsKjx7"
3+
}

site/data/footer.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

site/layouts/partials/footer.html

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,35 @@
44

55
<div class="measure-narrow center mb4">
66

7-
<img src="/img/logo.svg" alt="Kaldi logo" class="db w4 center mb4 br0">
8-
<p class="f3 lh-title light-gray b tc mb2">{{ .Site.Data.footer.title }}</p>
9-
<p>{{ .Site.Data.footer.blurb }}</p>
10-
11-
{{ partial "newsletter-form" . }}
7+
<img src="/nll-logo-horizontal.png" alt="NLL logo" class="db w4 center mb4 br0">
128

139
</div>
1410

1511
<div class="flex-ns justify-between">
1612

1713
<div>
18-
<h3 class="f4 b lh-title mb1 primary">Kaldi</h3>
14+
<h3 class="f4 b lh-title mb1 primary">NLL</h3>
1915
<ul class="mb3">
2016
<li><a href="/" class="link">Home</a></li>
21-
<li><a href="/products" class="link">Our products</a></li>
2217
<li><a href="/values" class="link">About</a></li>
2318
<li><a href="/post" class="link">Blog</a></li>
2419
<li><a href="/contact" class="link">Contact</a></li>
2520
</ul>
2621
</div>
2722

2823
<div>
29-
<h3 class="f4 b lh-title mb1 primary">Find out more</h3>
24+
<h3 class="f4 b lh-title mb1 primary">Join us</h3>
3025
<ul class="mb3">
31-
<li><a href="/post/jamaica-blue/" class="link">Latest offers</a></li>
32-
<li><a href="/contact" class="link">Schedule an appointment</a></li>
26+
<li><a href="{{ .Site.Data.discord.joinUrl }}" class="link">Discord</a></li>
3327
</ul>
3428
</div>
3529

3630
<div>
37-
<h3 class="f4 b lh-title mb2 primary">Social media</h3>
38-
<ul class="mhn2">
39-
{{ partial "social-icon" (dict "link" "#" "svg" "icons-facebook" "alt" "Kaldi on Facebook") }}
40-
{{ partial "social-icon" (dict "link" "#" "svg" "icons-twitter" "alt" "Kaldi on Twitter") }}
41-
{{ partial "social-icon" (dict "link" "#" "svg" "icons-instagram" "alt" "Kaldi on Instagram") }}
42-
{{ partial "social-icon" (dict "link" "#" "svg" "icons-vimeo" "alt" "Kaldi on Vimeo") }}
31+
<h3 class="f4 b lh-title mb2 primary">Contribute</h3>
32+
<ul class="mb3">
33+
<li><a href="/admin" class="link">Contribute content</a></li>
34+
<li><a href="https://github.com/nllcommunity" class="link">GitHub</a></li>
35+
<li><a href="https://gitlab.com/NorwegianLanguageLearning" class="link">GitLab</a></li>
4336
</ul>
4437
</div>
4538

site/layouts/partials/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- Logo -->
44
<a href="/" class="pa3 db mr4 h-100 w3 flex-none">
5-
<img src="/img/logo.svg" alt="Kaldi logo" class="br0 db mb0 w-100"/>
5+
<img src="/nll-logo-horizontal.png" alt="NLL logo" class="br0 db mb0 w-100"/>
66
</a>
77

88
<!-- Primary Nav -->

site/static/admin/config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ collections: # A list of collections the CMS should be able to edit
8585
- name: "site_settings"
8686
label: "Site Settings"
8787
files:
88-
- file: "site/data/footer.json"
89-
label: Footer
90-
name: footer
88+
- file: "site/data/discord.json"
89+
label: Discord
90+
name: discord
9191
fields:
92-
- {label: Title, name: title, widget: string}
93-
- {label: Blurb, name: blurb, widget: text}
92+
- {label: Join Link, name: joinUrl, widget: string}
9493
- file: "site/hugo.toml"
9594
label: Hugo Config
9695
name: config
4.67 KB
Loading

0 commit comments

Comments
 (0)