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

theme-buttons.html « partials « layouts - github.com/gohugoio/hugoThemesSite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: efc4c5d520e14e54d4caafc602c3a1ae137b43da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ $buttonClasses := "bg-accent-color br2 hover-bg-primary-color hover-light-gray link ph3 pv2 white"}}
<div class="mt4">
    {{ with .Params.source}}
    <a class="{{ $buttonClasses }}" href="{{ . }}"><i class="fa fa-download"></i> Download</a>
    {{ end }}

    {{ 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>