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

View file

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