aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-11-18 17:33:34 -0500
committertdro <tdro@noreply.example.com>2022-11-18 17:33:34 -0500
commitd7df1c7a2850c0cff38f309882564782b49186f1 (patch)
tree45bfd493bfeadbda7d1e044b605bc18b0284c4ed /themes/default/layouts/_default
parentd3e45e2a19fd66f6c807368ee9abc59b975fe4fb (diff)
downloadcanory-d7df1c7a2850c0cff38f309882564782b49186f1.tar.gz
canory-d7df1c7a2850c0cff38f309882564782b49186f1.tar.bz2
canory-d7df1c7a2850c0cff38f309882564782b49186f1.zip
themes/default/layouts/shortcodes: Generalize content warnings with disclose short code
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/summary.html22
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>