From f5f1587da0c30fa78d432f5f7dd260ecf1696e30 Mon Sep 17 00:00:00 2001 From: Urko Date: Thu, 15 Jun 2023 13:32:55 +0200 Subject: [PATCH] set minimal template for aae association --- archetypes/default.md | 6 +++ layouts/404.html | 14 +++++++ layouts/_default/baseof.html | 7 ++++ layouts/_default/list.html | 39 ++++++++++++++++++ layouts/_default/list.json | 10 +++++ layouts/_default/single.html | 27 ++++++++++++ layouts/_default/terms.html | 13 ++++++ layouts/index.html | 32 +++++++++++++++ layouts/partials/footer.html | 8 ++++ layouts/partials/head.html | 57 ++++++++++++++++++++++++++ layouts/partials/header.html | 9 ++++ layouts/partials/mathjax_support.html | 16 ++++++++ layouts/partials/twitter_cards.html | 31 ++++++++++++++ static/img/avatar-border.svg | 22 ++++++++++ static/img/logo.svg | 31 ++++++++++++++ static/img/search.png | Bin 0 -> 2221 bytes 16 files changed, 322 insertions(+) create mode 100644 archetypes/default.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/list.json create mode 100644 layouts/_default/single.html create mode 100644 layouts/_default/terms.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/mathjax_support.html create mode 100644 layouts/partials/twitter_cards.html create mode 100644 static/img/avatar-border.svg create mode 100644 static/img/logo.svg create mode 100644 static/img/search.png diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..67a0a2a --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ dateFormat "2006-01-02T15:04:05Z07:00" .Date }} +draft: true +images: [] +--- diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..4430417 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,14 @@ + + + {{ partial "head.html" . }} + + {{ partial "header.html" . }} +
+
+

404 page not found.

+

Go Home

+
+
+ {{ partial "footer.html" . }} + + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..0ab5755 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,7 @@ + + + {{ partial "head.html" . }} + + {{ block "main" . }}{{ end }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..cacec96 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,39 @@ +{{ define "main"}} +

{{ .Title }}

+ {{ partial "header.html" . }} + + + +
+ +
+ +
+ +
+ {{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}} + {{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }} + {{ if (ne $index 0) }} +
+ {{ end }} +

{{ .Key }}

+ {{ range .Pages }} +

{{ .Title }}

+ {{ end }} + {{ end }} +
+ {{ partial "footer.html" . }} + {{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }} + {{ $mark := resources.Get "js/jquery.mark.es6.min.js" }} + {{ $lunr := resources.Get "js/lunr.js" }} + {{ $search := resources.Get "js/search.js" }} + {{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }} + +{{ end }} diff --git a/layouts/_default/list.json b/layouts/_default/list.json new file mode 100644 index 0000000..dc748c1 --- /dev/null +++ b/layouts/_default/list.json @@ -0,0 +1,10 @@ +[{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }} + { + "ref": "{{ $page.Permalink }}", + "title": {{ $page.Title | jsonify }}, + "section": "{{ $page.Section }}", + "tags": {{ $page.Params.tags | jsonify }}, + "date" : {{ $page.Date.Format "2006.01.02" | jsonify }}, + "body": {{ $page.Plain | jsonify }} + } +{{ end }}] diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..687718a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,27 @@ +{{ define "main"}} +

{{ .Title }}

+ {{ partial "header.html" . }} + {{ if not .Date.IsZero }} + + {{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}} +

{{ .Date.Format $singlePageDateFormat }}

+ {{ end }} + + {{ if .Param "tags" }} +
+ +
+ {{ end }} + +
+ {{ .Content }} +
+ {{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..e729689 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,13 @@ +{{ define "main"}} +

{{ .Title }}

+ {{ partial "header.html" . }} + +
+ +
+ {{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..96d90e4 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,32 @@ + + + {{- partial "head.html" . -}} + +
+
+
+ +
+ {{ .Site.Params.avatarDescription }} + +
+ +

{{ .Site.Params.Author }}

+
+ +

+ {{ .Site.Params.description | safeHTML }} +

+ + +
+
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e34ad37 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,8 @@ + +{{- range .Site.Params.custom_js -}} + +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..76bfaf8 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,57 @@ + + + {{ if eq .Title .Site.Title }} + {{ .Site.Title }} + {{ else }} + {{ .Title }} - {{ .Site.Title }} + {{ end }} + + + + + + + + + {{ $style := resources.Get "css/style.css" }} + {{ $markdown := resources.Get "css/markdown.css" }} + {{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }} + {{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }} + + {{ $styleDark := resources.Get "css/style-dark.css" }} + {{ $markdownDark := resources.Get "css/markdown-dark.css" }} + {{ $cssDark := slice $styleDark $markdownDark | resources.Concat "style-dark.css" | resources.Minify | resources.Fingerprint }} + + + + + {{ range .Site.Params.custom_css }} + + {{ end }} + + {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} + {{/*- template "_internal/opengraph.html" . -*/}} + {{/*- template "_internal/google_news.html" . -*/}} + {{/*- template "_internal/schema.html" . -*/}} + {{/*- partial "twitter_cards.html" . -*/}} + + + {{ `` | safeHTML }} + + {{ `` | safeHTML }} + + + {{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}} + {{ template "_internal/google_analytics_async.html" . }} + {{- end -}} + + + {{ if or .Params.math .Site.Params.math }} + {{ partial "mathjax_support.html" . }} + {{ end }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..5938fe2 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,9 @@ +
+ +
+ {{ .Site.Params.avatarDescription }} + +
+ +

{{ .Site.Params.Author }}

+
diff --git a/layouts/partials/mathjax_support.html b/layouts/partials/mathjax_support.html new file mode 100644 index 0000000..cae9723 --- /dev/null +++ b/layouts/partials/mathjax_support.html @@ -0,0 +1,16 @@ + + diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html new file mode 100644 index 0000000..794ba92 --- /dev/null +++ b/layouts/partials/twitter_cards.html @@ -0,0 +1,31 @@ + +{{- with $.Params.images -}} + + +{{ else -}} +{{- $images := $.Resources.ByType "image" -}} +{{- $featured := $images.GetMatch "*feature*" -}} +{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} +{{- with $featured -}} + + +{{- else -}} +{{- with $.Site.Params.images -}} + + +{{ else -}} + + +{{- end -}} +{{- end -}} +{{- end }} + + +{{ with .Site.Social.twitter -}} + +{{ end -}} +{{ range .Site.Authors }} +{{ with .twitter -}} + +{{ end -}} +{{ end -}} diff --git a/static/img/avatar-border.svg b/static/img/avatar-border.svg new file mode 100644 index 0000000..699cdad --- /dev/null +++ b/static/img/avatar-border.svg @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/static/img/logo.svg b/static/img/logo.svg new file mode 100644 index 0000000..b72848f --- /dev/null +++ b/static/img/logo.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + diff --git a/static/img/search.png b/static/img/search.png new file mode 100644 index 0000000000000000000000000000000000000000..399944453a4f48887e7580145af45deeecd48db0 GIT binary patch literal 2221 zcmb_eYitx%6y8cLlnoVSAr)wx4ibwpJ2U&3of*1dyIb3pZYgCG7VyD5?(9ywJ2Rb` z?rw{rim$YQ#2-H53xlFI#s-6=hKCd>=pUaEqw+|V1QTom1;GX|cxSu20W3&}lbM}6 z_kQ=B^PThEd$+r}sea1jnUifc+muj4um!#y)-$OD{%-89m;zs=TEhy%X0uPTo+8_8 zZ3QU9tFR!3c%2j`kRAf@F;0>qJYI4>;vz^NPIz&G!U&QjXx2p{xeJBfbWvhkf)C|< z!7o1=H%*Pj@pL-vOuL<`9>Yn7VQ|8QyIdGVU`B^xav4l9=Hx8|fg$L!X3DC9SQa^6 zZ8!ZWjC71bQY)BMj9i*v!te~I;iQwWC}n}7P{3*JdLrvw6mXCLNuZbp#F7Q97FSKx zh^yBzT^PQ~0ZeT;T<|e&EXicSg<;mEAdOr?#zh;E4h`Tfz);(D0o0{nm~$*P8XM37 zXR3NcRTKF_HRnS{0s*TqG*T7j1X;0o%)4S12y!OyqZR@q35=j4R_R>uet=+Df*6B_ zRZ*5Y{skpHteavz-m9QcHzH?p{|OcaR#NpO2U*KWE(UN-iJ?d#mux^ys5*2EqjO)` z9|{DTbyboRaKLD(uSG(20g7ZO3UfKhY`Ebt8&V9DQv?tS`car6r!0#sM-c)|d3_k^ zp(V`Yp-7A-7%%3fB!VFXH$yXHbm9D`nRf+YeV zqPcE)oDAF?gE6z|IDkfPpo=k>p-N_&(?LxPX6xp}hhL9@!KH2-zu==>UY-{)pPTk! z9v4qzyo;tVit*C0dT!FgNO}I_#_wZEGB4I!jz5=RA&)6r^)M7%{dfyvV0!Nc*#M4PQ>Qz%#yp*MbX zXi?lzm7f)O=6>HNB98}6+exKvrb zEc#2sP{iRV#)|hX3{QP$Wd4Z?-+bTe)6P8o>z<<>7mxZDocfAl-+W=m51sM;!-p=` zw^cm5x`_GL7jjK)m47p-ZVel|MbpIx?i<%K?WsOszEc++odDxaDm?eB_A+MFMnd+eTl)(?$VgyQ$>=^t(1vHa?3+iZgTCIt zbNt!~j}5g{OqJgK{H;xY2xMx=-#1h{w|hPFb|*dXVfn6esk3(+6UjNRmUXQ>`AP5E zyH8xGJU3E%`;U)?);`$S_BJt%?VrOq< Q+WJEgs%r}N)vjLm4}bOMssI20 literal 0 HcmV?d00001