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

tile.html « partials « layouts - github.com/gesquive/slate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbf8ecf63de71d9e34657f6747df72d75839df80 (plain)
1
2
3
4
5
6
7
8
9
10
11
<a class="tile tile-link" href="{{ .Link.url }}" data-groups='{{ if .Link.tags }}{{ delimit .Link.tags "," }}{{ end }}'{{ if .Jump }} target="_blank"{{ end }}>
    <div class="tile-box"
        data-title='{{ .Link.name }}'
        data-url='{{ .Link.url }}'
        {{ if .Link.bg_color }}data-bg-color='{{ .Link.bg_color | safeCSS }}'{{ end -}}
        {{ if .Link.txt_color }}data-txt-color='{{ .Link.txt_color | safeCSS }}'{{ end -}}
        {{ if .Link.img }}data-img='{{ .Link.img }}'{{ end -}}
        {{ if or .Link.bg_color .Link.txt_color }}style='{{ if .Link.bg_color }}background-color:{{ .Link.bg_color | safeCSS }};{{ end }} {{ if .Link.txt_color }}color:{{ .Link.txt_color | safeCSS }}{{end}}'{{ end -}}>
        {{ if .Link.img }}<img class="logo" src="{{ .Link.img }}"></img>{{ else }}{{ .Link.name }}{{ end }}</div>
    <div class="tile-title">{{ .Link.name }}</div>
</a>