Compare commits

..

No commits in common. "6654b9665c8747a123b1660aa99293506883c17c" and "16cae0ddcb498cec851965b7d305d059b3f02fd9" have entirely different histories.

5 changed files with 10 additions and 28 deletions

View File

@ -15,7 +15,6 @@ sections:
link: # /<section>/
icon: # localpath from assets/icons/ w/o ext
# ...
vaultPageLink: # /<somename.md>/
notice:
# generator settings, no need to edit

6
init/import-environment.sh Executable file → Normal file
View File

@ -1,8 +1,10 @@
#!/bin/sh
set -e
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 | \
grep -E 'THEME_.*' | \

View File

@ -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

View File

@ -1,6 +1,7 @@
{{ $hook_ctx := . }}
{{ with .Page.Resources.Get .Destination | resources.Copy (replaceRE "([^/]*)$" "_$1" (path.Join .Page.Path .Destination)) | fingerprint }}
<figure>
<a href="{{ .RelPermalink }}"><img src="{{ .RelPermalink }}"></a>
{{- with $.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
{{- with $hook_ctx.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{ end }}

View File

@ -4,12 +4,10 @@
{{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
{{ if .Description }}<p>{{ .Description }}</p>{{ end }}
{{ partial "taxo_of_single.html" . }}
{{ if .Lastmod }}
<div class="pub-date">
mtime={{ .Lastmod.Format .Site.Params.dateFormat }}
archived={{ default false .Params.archived }}
</div>
{{ end }}
</div>
{{- end -}}
@ -32,11 +30,8 @@
{{- end -}}
{{- define "footer" -}}
<div class="content post">
{{ with .Site.GetPage .Site.Home.Params.vaultPageLink}}
{{ if not (.Eq $.Page) }}
<a href="{{ .RelPermalink }}">save or verify</a>
{{ end }}
{{ end }}
</div>
<!--div class="content post">
<a href="">download</a> |
<a href="{{ relURL "/verification/" }}">verify</a>
</div-->
{{- end -}}