From 3e2ac9f85227e148d82bb94a453aa591682a9a30 Mon Sep 17 00:00:00 2001 From: Sojon Date: Sat, 5 Aug 2023 10:01:15 +0600 Subject: [PATCH] fixed button-issue in features section closed #23 --- exampleSite/go.mod | 1 + layouts/index.html | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 2449f5f..4c5623f 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -25,4 +25,5 @@ require ( github.com/gethugothemes/hugo-modules/tab v0.0.0-20230731024856-cab17e406beb // indirect github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230731024856-cab17e406beb // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20230731024856-cab17e406beb // indirect + github.com/zeon-studio/hugoplate v0.0.0-20230731041653-56544f9e8606 // indirect ) diff --git a/layouts/index.html b/layouts/index.html index c46a08b..1f432f9 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,7 +16,7 @@ {{ if .enable }} {{ .label }} - + {{ end }} {{ end }} @@ -59,6 +59,14 @@ {{ end }} + {{ with .button }} + {{ if .enable }} + + {{ .label }} + + + {{ end }} + {{ end }}