Better format link cards
This commit is contained in:
parent
f5631552e6
commit
2d8636d167
|
@ -1,14 +1,11 @@
|
||||||
<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">
|
<div class="card-body">
|
||||||
<a href="{{ .URL }}" target="_blank">{{ .title }}</a>
|
<p><a class="card-link" href="{{ .URL }}" target="_blank">Link</a></p>
|
||||||
</h4>
|
|
||||||
<div class="card-body">
|
|
||||||
|
|
||||||
{{ if isset . "description" }}
|
{{ if isset . "description" }}
|
||||||
<p>{{ .description | markdownify }}</p>
|
<p>{{ .description | markdownify }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</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