rename and extend aside to spreadtheword section
parent
41dc73ae9d
commit
184c32a783
13
config.toml
13
config.toml
|
@ -85,13 +85,12 @@ googleAnalytics = ""
|
|||
category = "Category"
|
||||
buttonText = "Close"
|
||||
|
||||
# Aside section
|
||||
[params.aside]
|
||||
headline = "Get the Creative Theme for Hugo"
|
||||
|
||||
[params.aside.button]
|
||||
text = "Download now"
|
||||
link = "//github.com/digitalcraftsman/hugo-creative-theme"
|
||||
# Spreat the word section
|
||||
[params.spread]
|
||||
headline = "Spread the word!"
|
||||
text = "Obtain the coolest promotion material from [fsfe.org](https://fsfe.org/promo)"
|
||||
buttonText = "Share on Facebook"
|
||||
buttonLink = "https://facebook.com"
|
||||
|
||||
# Contact section
|
||||
[params.contact]
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
{{ partial "location.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.aside }}
|
||||
{{ partial "aside.html" . }}
|
||||
{{ if .Site.Params.spread }}
|
||||
{{ partial "spread.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.contact }}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{{ "<!-- ASIDE -->" | safeHTML }}
|
||||
<aside class="bg-dark">
|
||||
<div class="container text-center">
|
||||
<div class="call-to-action">
|
||||
{{ with .Site.Params.aside.headline }}<h2>{{ . }}</h2>{{ end }}
|
||||
{{ if and .Site.Params.aside.button.link .Site.Params.aside.button.text }}
|
||||
<a href="{{ .Site.Params.aside.button.link }}" class="btn btn-default btn-xl wow tada">{{ .Site.Params.aside.button.text }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
|
@ -0,0 +1,19 @@
|
|||
{{ "<!-- SPREAD -->" | safeHTML }}
|
||||
<section id="spread" class="bg-dark">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 text-center">
|
||||
{{ with .Site.Params.spread.headline }}
|
||||
<h2 class="section-heading">{{ . }}</h2>
|
||||
{{ end }}
|
||||
{{ if and .Site.Params.spread.headline .Site.Params.spread.text }}
|
||||
<hr class="light">
|
||||
{{ end }}
|
||||
{{ with .Site.Params.spread.text }}
|
||||
<p class="text-faded">{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
<a href="{{ .Site.Params.spread.buttonLink }}" class="btn btn-default btn-xl page-scroll">{{ .Site.Params.spread.buttonText }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
Loading…
Reference in New Issue