cleanup templates:

- move out shared functions to shared templates
  - remove useless classes
  - simplify
  - various cleanups & enhancements
This commit is contained in:
2023-07-24 12:02:51 +02:00
parent f66ed70c82
commit 18a823cb6a
37 changed files with 298 additions and 393 deletions

View File

@ -126,18 +126,11 @@
<div class="row mb-2">
<div class="col-12">
<i class="mdi mdi-fountain-pen-tip me-2"></i>
{{ range $index, $elements := where (where $.Site.RegularPages "Type" "author") "File.BaseFileName" "in" .author }}
{{ if ne $index 0 }}, {{ end }}
{{ if .Params.simplified }}
{{ .Title }}
{{ else }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
{{ partial "authors" (dict "Site" $.Site "author" .author)}}
</div>
</div>
<h4 class="card-title text-truncate" onclick="$('#{{ md5 .title }}').modal('show');">{{ .title }}</h4>
<p class="card-text" onclick="$('#{{ md5 .title }}').modal('show');">{{ .content | markdownify | plainify | truncate 100 }}</p>
<p class="card-text" onclick="$('#{{ md5 .title }}').modal('show');">{{ partial "summary" .content }}</p>
<button type="button" class="btn btn-primary btn-sm mt-auto align-self-start" onclick="$('#{{ md5 .title }}').modal('show');">Mehr anzeigen</button>
</div>
</div>