Better format link cards

This commit is contained in:
NeilBrommer 2018-06-12 11:56:45 -07:00
parent f5631552e6
commit 2d8636d167
2 changed files with 8 additions and 11 deletions

View file

@ -1,9 +1,7 @@
<div class="col-md-4 mb-3"> <div class="card">
<div class="card full-height"> <h4 class="card-header">{{ .title }}</h4>
<h4 class="card-header">
<a href="{{ .URL }}" target="_blank">{{ .title }}</a>
</h4>
<div class="card-body"> <div class="card-body">
<p><a class="card-link" href="{{ .URL }}" target="_blank">Link</a></p>
{{ if isset . "description" }} {{ if isset . "description" }}
<p>{{ .description | markdownify }}</p> <p>{{ .description | markdownify }}</p>
@ -11,4 +9,3 @@
</div> </div>
</div> </div>
</div>

View file

@ -1,7 +1,7 @@
{{ with .Get 0 }} {{ with .Get 0 }}
{{ $cardData := getJSON . }} {{ $cardData := getJSON . }}
<div class="row"> <div class="card-columns">
{{ range $cardData }} {{ range $cardData }}
{{ partial "linkCard" . }} {{ partial "linkCard" . }}
{{ end }} {{ end }}