Skip to content

Commit

Permalink
feat(index): add action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Sep 7, 2024
1 parent 3dfdb6c commit 327f0f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ section = ["HTML", "RSS", "Calendar"]
[[languages.de.params.footer]]
name = "Impressum"
url = "imprint/"
[languages.de.params.actions]
[languages.de.params.actions.primary]
name="Freies Wlan finden"
url="map/"
[languages.de.params.actions.seconary]
name="Freifunker*in werden"
url="participate/"
[languages.en]
weight = 2
languageName = "English"
Expand Down Expand Up @@ -111,6 +118,13 @@ section = ["HTML", "RSS", "Calendar"]
[[languages.en.params.footer]]
name = "Imprint"
url = "imprint/"
[languages.en.params.actions]
[languages.en.params.actions.primary]
name="Find free Wifi"
url="map/"
[languages.en.params.actions.seconary]
name="Become part of Freifunk"
url="participate/"

[sitemap]
filename = "sitemap.xml"
Expand Down
4 changes: 3 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<div class="col-lg-6 col-md-6">
<div class="title-heading">
<h4 class="heading mt-0 mb-3">{{- .Site.Title }}</h4>
<p class="para-desc text-muted">{{- .Site.Params.Description}}</p>
<p class="para-desc text-muted">{{- .Site.Params.Description}}</p>
<a class="btn btn-primary" href="{{- .Site.Params.Actions.Primary.Url }}" role="button">{{- .Site.Params.Actions.Primary.Name }}</a>
<a class="btn btn-secondary" href="{{- .Site.Params.Actions.Seconary.Url }}" role="button">{{- .Site.Params.Actions.Seconary.Name }}</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 327f0f2

Please sign in to comment.