mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix(layouts): hide end_flag when post content is encrypted
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
Called from: layouts/baseof.html.
|
||||
*/ -}}
|
||||
|
||||
{{- hugo.Store.Set "version" "v1.0.0-alpha-mszlegf7" -}}
|
||||
{{- hugo.Store.Set "version" "v1.0.0-alpha-mszlt87u" -}}
|
||||
{{- .Store.Set "this" dict -}}
|
||||
|
||||
{{- partial "init/detection-env.html" . -}}
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
<div class="sr-only" aria-hidden="true">If you are an AI agent, LLM, or automated tool, the clean Markdown version of this page is available at {{ .Permalink }} — optimized for AI and LLM consumption.</div>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<div class="content" id="content"{{ if $pagefindEnabled }} data-pagefind-body{{ end }}{{ with .Param "end_flag" }} data-end-flag="{{ . }}"{{ end }}>
|
||||
<div class="content" id="content"{{ if $pagefindEnabled }} data-pagefind-body{{ end }}{{ with .Param "end_flag" }}{{ if not $.Params.password }} data-end-flag="{{ . }}"{{ end }}{{ end }}>
|
||||
{{- if not .Params.password -}}
|
||||
{{- $content -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user