Better format link cards
This commit is contained in:
parent
f5631552e6
commit
2d8636d167
|
@ -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>
|
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue