diff options
Diffstat (limited to 'layouts/partials/theme-buttons.html')
-rw-r--r-- | layouts/partials/theme-buttons.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/theme-buttons.html b/layouts/partials/theme-buttons.html index f0fdd98..efc4c5d 100644 --- a/layouts/partials/theme-buttons.html +++ b/layouts/partials/theme-buttons.html @@ -7,10 +7,17 @@ {{ with .Params.demo }} <a class="{{ $buttonClasses }}" href="{{ . }}"><i class="fa fa-road"></i> Demo</a> {{ end }} - + {{ $noHomePage := . }} + {{ with .Site.Params.noHomePage }} + {{ range . }} + {{ $noHomePage = . }} + {{ end }} + {{ end }} + {{ if not (in .Permalink $noHomePage) }} {{ with .Params.homepage}} <a class="{{ $buttonClasses }}" href="{{.}}"><i class="fa fa-home"></i> Homepage</a> {{ end }} + {{ end }} </div> |