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 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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ with .Get 0 }}
|
||||
{{ $cardData := getJSON . }}
|
||||
|
||||
<div class="row">
|
||||
<div class="card-columns">
|
||||
{{ range $cardData }}
|
||||
{{ partial "linkCard" . }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue