mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: add feature end of post flag support (#236)
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
> Snapshot: <>
|
||||
|
||||
- :sparkles: Feat: add feature post reward support ([#216](https://github.com/hugo-fixit/FixIt/issues/216))
|
||||
- :sparkles: Feat: add feature post reward support ([#216](https://github.com/hugo-fixit/FixIt/issues/216), @Lruihao[#234](https://github.com/hugo-fixit/FixIt/pull/234))
|
||||
- :sparkles: Feat: add feature end of post flag support ([#236](https://github.com/hugo-fixit/FixIt/issues/236))
|
||||
- :sparkles: Feat: add params to close wordcount and readingTime in post ([#209](https://github.com/hugo-fixit/FixIt/issues/209))
|
||||
- :truck: Feat: migrate parameter `params.autoBookmark` to `params.page.autoBookmark` ([#55](https://github.com/hugo-fixit/FixIt/issues/55))
|
||||
- :zap: Perf: optimize close comment feature when the post has expired ([#204](https://github.com/hugo-fixit/FixIt/issues/204))
|
||||
|
||||
@@ -78,6 +78,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
#content[data-end-flag]:not([data-password])::after {
|
||||
content: attr(data-end-flag);
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: $global-font-secondary-color;
|
||||
font-size: 15px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.content {
|
||||
> h1,
|
||||
> h2 {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -342,6 +342,8 @@
|
||||
wordCount = true
|
||||
# FixIt 0.2.17 | NEW whether to enable readingTime
|
||||
readingTime = true
|
||||
# FixIt 0.2.17 | NEW end of post flag
|
||||
endFlag = ""
|
||||
|
||||
# FixIt 0.2.15 | NEW Repost config
|
||||
[params.page.repost]
|
||||
|
||||
+1
-1
Submodule docs updated: e78b9cd88c...4826c17d67
@@ -176,11 +176,10 @@
|
||||
(substr $base64EncodeContent $saltLen)
|
||||
-}}
|
||||
{{- end -}}
|
||||
<div
|
||||
class="content"
|
||||
id="content"
|
||||
{{ with $params.password }}data-password="{{ md5 $params.password }}"{{ end }}
|
||||
{{ with $params.password }}data-content="{{ $content }}"{{ end }}
|
||||
<div class="content" id="content"
|
||||
{{- with $params.endFlag }} data-end-flag="{{ . }}"{{- end -}}
|
||||
{{- with $params.password }} data-password="{{ md5 . }}"{{- end -}}
|
||||
{{- with $params.password }} data-content="{{ $content }}"{{- end -}}
|
||||
>
|
||||
{{- if not $params.password -}}
|
||||
{{- /* Expiration Reminder */ -}}
|
||||
|
||||
Reference in New Issue
Block a user