Merge pull request #2 from seigler/master

Bounty "Center images on cards and wrap text"
This commit is contained in:
Andy Freer 2020-03-11 20:56:18 +00:00 committed by GitHub
commit ea198269a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{{ define "text" }} {{ define "text" }}
<p class="f6 lh-copy mw5 mt2 mb0 mid-gray" style="word-break: break-all"> <p class="f6 lh-copy mt2 mb0 mid-gray" style="hyphens: auto; -webkit-hyphens: auto;">
{{- markdownify . -}} {{- markdownify . -}}
</p> </p>
{{ end }} {{ end }}
@ -31,7 +31,7 @@
<div class="dt w-100 mt1"> <div class="dt w-100 mt1">
<div class="dtc"> <div class="dtc">
<a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}"> <a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}">
<h1 class="f5 mw5 f4-ns mv0">{{- .title -}}</h1> <h1 class="f5 f4-ns mv0">{{- .title -}}</h1>
</a> </a>
</div> </div>
</div> </div>
@ -49,15 +49,15 @@
{{- end -}} {{- end -}}
{{- if isset . "hash" -}} {{- if isset . "hash" -}}
<div class="mt2 mw5"> <div class="mt2">
{{ template "hash" .hash }} {{ template "hash" .hash }}
</div> </div>
{{- end -}} {{- end -}}
{{- if isset . "picture" -}} {{- if isset . "picture" -}}
<div class="mt2 mw5"> <div class="mt2 tc">
<a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}"> <a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}">
<img class="br2" src="{{ .picture | relURL }}" > <img class="br2" src="{{ .picture | relURL }}" style="max-height: 20em" >
</a> </a>
</div> </div>
{{ end }} {{ end }}