aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-12 19:44:46 -0400
committertdro <tdro@noreply.example.com>2022-10-12 19:44:46 -0400
commit55fa91d7f24a3cee6a42a3d2c64bc6f3df76a7dc (patch)
tree6a319e1ac385f99d118d2dc80380d0bdd5f1118b /themes/default/layouts/_default
parent05ff3effd89f3b75443bfcfce4455902c783d27f (diff)
downloadcanory-55fa91d7f24a3cee6a42a3d2c64bc6f3df76a7dc.tar.gz
canory-55fa91d7f24a3cee6a42a3d2c64bc6f3df76a7dc.tar.bz2
canory-55fa91d7f24a3cee6a42a3d2c64bc6f3df76a7dc.zip
themes/default/layouts/_default/summary: Use data-expires attribute
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/summary.html47
1 files changed, 24 insertions, 23 deletions
diff --git a/themes/default/layouts/_default/summary.html b/themes/default/layouts/_default/summary.html
index 7ccaa12..e5b1154 100644
--- a/themes/default/layouts/_default/summary.html
+++ b/themes/default/layouts/_default/summary.html
@@ -1,31 +1,32 @@
{{- $limit := gt .WordCount 75 -}}
{{- 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 }}
>
- {{ if .ExpiryDate }}<micro-expires>{{ end }}
- <micro-summary {{ if .Draft }}draft{{ end }} title="{{- partial "meta-title.html" . -}}">
- <micro-thumbnail>
- {{ 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" }}{{ end }}
- {{- partial "function-content.html" .Content | safeHTML -}}
- {{ if .Params.unsafe }}{{ partial "card-unsafe.html" "end" }}{{ end }}
- <micro-tags>{{ partial "meta-tags.html" . }}</micro-tags>
- </micro-content>
- </micro-summary>
- {{ if .ExpiryDate }}</micro-expires>{{ end }}
+ <micro-summary title="{{- partial "meta-title.html" . -}}">
+ <micro-thumbnail>
+ {{ 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" }}{{ end }}
+ {{- partial "function-content.html" .Content | safeHTML -}}
+ {{ if .Params.unsafe }}{{ partial "card-unsafe.html" "end" }}{{ end }}
+ <micro-tags>{{ partial "meta-tags.html" . }}</micro-tags>
+ </micro-content>
+ </micro-summary>
</micro-card>