Gus Esquivel
8 years ago
3 changed files with 12 additions and 10 deletions
@ -1,10 +1,10 @@ |
|||||||
<a class="tile tile-link" href="{{ .url }}" data-groups='{{ if .tags }}{{ delimit .tags "," }}{{ end }}'> |
<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" |
<div class="tile-box" |
||||||
data-title='{{ .name }}' |
data-title='{{ .Link.name }}' |
||||||
data-url='{{ .url }}' |
data-url='{{ .Link.url }}' |
||||||
{{ if .bg_color }}data-bg-color='{{ .bg_color }}'{{ end -}} |
{{ if .Link.bg_color }}data-bg-color='{{ .Link.bg_color | safeCSS }}'{{ end -}} |
||||||
{{ if .txt_color }}data-txt-color='{{ .txt_color }}'{{ end -}} |
{{ if .Link.txt_color }}data-txt-color='{{ .Link.txt_color | safeCSS }}'{{ end -}} |
||||||
{{ if .img }}data-img='{{ .img }}'{{ end -}}> |
{{ if .Link.img }}data-img='{{ .Link.img }}'{{ end -}}> |
||||||
{{ if .img }}<img class="logo" src="{{ .img }}"></img>{{ else }}{{ .name }}{{ end }}</div> |
{{ if .Link.img }}<img class="logo" src="{{ .Link.img }}"></img>{{ else }}{{ .Link.name }}{{ end }}</div> |
||||||
<div class="tile-title">{{ .name }}</div> |
<div class="tile-title">{{ .Link.name }}</div> |
||||||
</a> |
</a> |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
<div class="tile-container">{{ range .Site.Data.links.tiles }} |
<div class="tile-container">{{$jump := .Site.Params.OpenLinksInNewWindow | default true }}{{ range .Site.Data.links.tiles }} |
||||||
{{ partial "tile.html" . }}{{ end }} |
{{ partial "tile.html" (dict "Link" . "Jump" $jump)}}{{ end }} |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue