mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 03:22:33 -06:00
This commit is contained in:
parent
54d63fa4fc
commit
2ffe55a86a
2 changed files with 15 additions and 3 deletions
|
@ -166,7 +166,7 @@ function executeQuery(term) {
|
||||||
<div class="-mb-1 text-lg font-bold">
|
<div class="-mb-1 text-lg font-bold">
|
||||||
${title}
|
${title}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm text-neutral-500 dark:text-neutral-400">${value.item.section}<span class="px-2 text-primary-500">·</span>${value.item.date}</span></div>
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">${value.item.section}<span class="px-2 text-primary-500">·</span>${value.item.date? value.item.date : ""}</span></div>
|
||||||
<div class="text-sm italic">${value.item.summary}</div>
|
<div class="text-sm italic">${value.item.summary}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">→</div>
|
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">→</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- range $pages -}}
|
{{- range $pages -}}
|
||||||
{{- $section := .Site.GetPage "section" .Section -}}
|
{{- $section := .Site.GetPage "section" .Section -}}
|
||||||
|
{{- if .Date -}}
|
||||||
{{- $index = $index | append (dict
|
{{- $index = $index | append (dict
|
||||||
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
|
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
|
||||||
"title" (.Title | emojify | safeJS)
|
"title" (.Title | emojify | safeJS)
|
||||||
|
@ -15,5 +16,16 @@
|
||||||
"externalUrl" .Params.externalUrl
|
"externalUrl" .Params.externalUrl
|
||||||
"type" .Type
|
"type" .Type
|
||||||
) -}}
|
) -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $index = $index | append (dict
|
||||||
|
"title" (.Title | emojify | safeJS)
|
||||||
|
"section" ($section.Title | emojify | safeJS)
|
||||||
|
"summary" (.Summary | safeJS)
|
||||||
|
"content" (.Plain | safeJS)
|
||||||
|
"permalink" .RelPermalink
|
||||||
|
"externalUrl" .Params.externalUrl
|
||||||
|
"type" .Type
|
||||||
|
) -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $index | jsonify -}}
|
{{- $index | jsonify -}}
|
Loading…
Reference in a new issue