Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaey55 <saey55@users.noreply.github.com>2018-10-17 20:19:36 +0300
committerGitHub <noreply@github.com>2018-10-17 20:19:36 +0300
commitc180e5da7ae44eb3d0838e6e051c0442b46eaac8 (patch)
tree774fcaa48fb332d48b28a58aba3e2d74a4ab50bd
parentff097ac3143b3e0840c2f2a55738971ace510d27 (diff)
parent0cd882a6cc9e4fa23890bf3e6369d0e478a9ce13 (diff)
Merge pull request #32 from rpalmite/patch-1
make the intro button optional
-rwxr-xr-xlayouts/partials/intro.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html
index ec6d410..667d5f3 100755
--- a/layouts/partials/intro.html
+++ b/layouts/partials/intro.html
@@ -9,7 +9,9 @@
<i class="fh5co-intro-icon {{ .icon }}"></i>
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
+ {{ if .button}}
<p><a href="{{ .url }}" class="btn btn-primary">{{ .button}}</a></p>
+ {{ end }}
</div>
</div>
{{ end }}
@@ -23,4 +25,4 @@
</div>
{{ end }}
</div>
- </section> \ No newline at end of file
+ </section>