diff options
Diffstat (limited to 'themes/default/layouts/_default/summary.html')
-rw-r--r-- | themes/default/layouts/_default/summary.html | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/themes/default/layouts/_default/summary.html b/themes/default/layouts/_default/summary.html index 356d0d9..0bf77a8 100644 --- a/themes/default/layouts/_default/summary.html +++ b/themes/default/layouts/_default/summary.html @@ -1,16 +1,9 @@ -{{- $wordLimit := gt .WordCount 75 -}} {{- $content := partial "function-content.html" . | safeHTML -}} {{- $expired := and .ExpiryDate (ge now.Unix .ExpiryDate.Unix) -}} -{{- $limit := and $wordLimit (not $expired) -}} - -{{- if $limit -}} - <input hidden type="checkbox" id="expand-{{ partial "card-id.html" . }}" /> -{{- end -}} <micro-card id="{{ partial "card-id.html" . }}" {{ if .Weight }}pinned{{ end }} - {{ if $limit }}limit{{ end }} {{ if .Draft }}draft{{ end }} {{ if .ExpiryDate }}data-expires{{ end }} > @@ -19,23 +12,10 @@ {{ partial "profile-picture.html" . }} </micro-thumbnail> <micro-content> - {{ if $limit }} - <micro-overlay> - <micro-expand> - <label for="expand-{{ partial "card-id.html" . }}">Click to Show</label> - </micro-expand> - </micro-overlay> - {{ end }} <micro-metadata> {{ partial "card-meta-header.html" . }} </micro-metadata> - {{ if .Params.unsafe }} - {{ partial "card-unsafe.html" "begin" }} - {{- $content -}} - {{ partial "card-unsafe.html" "end" }} - {{ else }} - {{- $content -}} - {{ end }} + {{- $content -}} <micro-tags>{{ partial "meta-tags.html" . }}</micro-tags> </micro-content> </micro-summary> |