mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-04-18 03:39:09 +00:00
Compare commits
No commits in common. "6654b9665c8747a123b1660aa99293506883c17c" and "16cae0ddcb498cec851965b7d305d059b3f02fd9" have entirely different histories.
6654b9665c
...
16cae0ddcb
@ -15,7 +15,6 @@ 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
Executable file → Normal file
6
init/import-environment.sh
Executable file → Normal file
@ -1,8 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
[ -d ./themes/yrzam ] && cd ./themes/yrzam
|
if [ ! -f "../../themes/yrzam/init/import-environment.sh" ]; then
|
||||||
|
echo "Wrong path" >&2
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
VARS=$(printenv | \
|
VARS=$(printenv | \
|
||||||
grep -E 'THEME_.*' | \
|
grep -E 'THEME_.*' | \
|
||||||
|
15
init/sign.sh
15
init/sign.sh
@ -1,15 +0,0 @@
|
|||||||
#!/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,6 +1,7 @@
|
|||||||
|
{{ $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 $.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
|
{{- with $hook_ctx.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -4,12 +4,10 @@
|
|||||||
{{ 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 -}}
|
||||||
|
|
||||||
@ -32,11 +30,8 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "footer" -}}
|
{{- define "footer" -}}
|
||||||
<div class="content post">
|
<!--div class="content post">
|
||||||
{{ with .Site.GetPage .Site.Home.Params.vaultPageLink}}
|
<a href="">download</a> |
|
||||||
{{ if not (.Eq $.Page) }}
|
<a href="{{ relURL "/verification/" }}">verify</a>
|
||||||
<a href="{{ .RelPermalink }}">save or verify</a>
|
</div-->
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user