mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-04-07 07:12:28 +00:00
Compare commits
3 Commits
16cae0ddcb
...
6654b9665c
Author | SHA1 | Date | |
---|---|---|---|
6654b9665c | |||
bcc7736af2 | |||
f91c80ddaf |
@ -15,6 +15,7 @@ sections:
|
|||||||
link: # /<section>/
|
link: # /<section>/
|
||||||
icon: # localpath from assets/icons/ w/o ext
|
icon: # localpath from assets/icons/ w/o ext
|
||||||
# ...
|
# ...
|
||||||
|
vaultPageLink: # /<somename.md>/
|
||||||
notice:
|
notice:
|
||||||
|
|
||||||
# generator settings, no need to edit
|
# generator settings, no need to edit
|
||||||
|
6
init/import-environment.sh
Normal file → Executable file
6
init/import-environment.sh
Normal file → Executable file
@ -1,10 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
if [ ! -f "../../themes/yrzam/init/import-environment.sh" ]; then
|
[ -d ./themes/yrzam ] && cd ./themes/yrzam
|
||||||
echo "Wrong path" >&2
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
VARS=$(printenv | \
|
VARS=$(printenv | \
|
||||||
grep -E 'THEME_.*' | \
|
grep -E 'THEME_.*' | \
|
||||||
|
15
init/sign.sh
Executable file
15
init/sign.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
[ -d ../../themes ] && cd ../..
|
||||||
|
|
||||||
|
rm -rf public
|
||||||
|
hugo
|
||||||
|
cd public
|
||||||
|
|
||||||
|
find . -type f -exec sha256sum {} \; | \
|
||||||
|
sed -E 's/(\w*) \.\//\1 /' | \
|
||||||
|
gpg -so index.sig --batch --yes
|
||||||
|
|
||||||
|
cp -f index.sig ../static
|
@ -1,7 +1,6 @@
|
|||||||
{{ $hook_ctx := . }}
|
|
||||||
{{ with .Page.Resources.Get .Destination | resources.Copy (replaceRE "([^/]*)$" "_$1" (path.Join .Page.Path .Destination)) | fingerprint }}
|
{{ with .Page.Resources.Get .Destination | resources.Copy (replaceRE "([^/]*)$" "_$1" (path.Join .Page.Path .Destination)) | fingerprint }}
|
||||||
<figure>
|
<figure>
|
||||||
<a href="{{ .RelPermalink }}"><img src="{{ .RelPermalink }}"></a>
|
<a href="{{ .RelPermalink }}"><img src="{{ .RelPermalink }}"></a>
|
||||||
{{- with $hook_ctx.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
|
{{- with $.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -4,10 +4,12 @@
|
|||||||
{{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
|
{{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
|
||||||
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
|
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
|
||||||
{{ partial "taxo_of_single.html" . }}
|
{{ partial "taxo_of_single.html" . }}
|
||||||
|
{{ if .Lastmod }}
|
||||||
<div class="pub-date">
|
<div class="pub-date">
|
||||||
mtime={{ .Lastmod.Format .Site.Params.dateFormat }}
|
mtime={{ .Lastmod.Format .Site.Params.dateFormat }}
|
||||||
archived={{ default false .Params.archived }}
|
archived={{ default false .Params.archived }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@ -30,8 +32,11 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "footer" -}}
|
{{- define "footer" -}}
|
||||||
<!--div class="content post">
|
<div class="content post">
|
||||||
<a href="">download</a> |
|
{{ with .Site.GetPage .Site.Home.Params.vaultPageLink}}
|
||||||
<a href="{{ relURL "/verification/" }}">verify</a>
|
{{ if not (.Eq $.Page) }}
|
||||||
</div-->
|
<a href="{{ .RelPermalink }}">save or verify</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user