pagefind update
This commit is contained in:
parent
3d9ef1a3bc
commit
4c2a3e0f30
|
@ -9,7 +9,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"precommit": "node hooks/precommit.js",
|
"precommit": "node hooks/precommit.js",
|
||||||
"postdeploy": "node hooks/postdeploy.js",
|
"postdeploy": "node hooks/postdeploy.js",
|
||||||
"search": "echo 'executing Hugo+Pagefind (locally)...' && /opt/homebrew/bin/hugo && /Users/wgroeneveld/.cargo/bin/pagefind --source docs --bundle-dir ../static/_pagefind"
|
"search": "echo 'executing Hugo+Pagefind (locally)...' && hugo && /usr/local/bin/pagefind --source docs --bundle-dir ../static/_pagefind && hugo serve"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{ $url = (printf "%s%s" .Page.Permalink $url) }}
|
{{ $url = (printf "%s%s" .Page.Permalink $url) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a href="{{ $url | absURL }}" class="lbox">
|
<a href="{{ $url | absURL }}" class="lbox">
|
||||||
<img src="{{ $url | absURL }}" loading="lazy" class="img-responsive"{{ with .Text }} alt="{{ . }}"{{ end }}{{ with .Title}} title="{{ . }}" alt="{{ . }}"{{ end }}>
|
<img src="{{ $url | absURL }}" loading="lazy" class="img-responsive"{{ with .Text }} alt="{{ . }}"{{ end }}{{ with .Title}} title="{{ . }}" alt="{{ . }}"{{ end }} data-pagefind-index-attrs="title">
|
||||||
</a>
|
</a>
|
||||||
{{ with .Title }}
|
{{ with .Title }}
|
||||||
<figcaption>{{ . }}</figcaption>
|
<figcaption>{{ . }}</figcaption>
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="content-column" data-pagefind-body>
|
<div class="content-column">
|
||||||
{{ partial "mobile_nav_toggle.html" . }}
|
{{ partial "mobile_nav_toggle.html" . }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<article class="h-entry">
|
<article class="h-entry" data-pagefind-body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<h1 class="p-name" data-pagefind-meta="title">{{ .Title }}</h1>
|
<h1 class="p-name" data-pagefind-meta="title">{{ .Title }}</h1>
|
||||||
{{ if isset $.Params "date" }}
|
{{ if isset $.Params "date" }}
|
||||||
|
@ -58,13 +57,11 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{ partial "single-comments" . }}
|
|
||||||
{{ partial "single-mentions" . }}
|
|
||||||
<hr/>
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
{{ partial "single-comments" . }}
|
||||||
|
{{ partial "single-mentions" . }}
|
||||||
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue