From 56faea4956d0dbf05ad75bbafca81aa90d09771d Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Sat, 6 Apr 2024 19:42:00 +0200 Subject: Add ontology --- layouts/_default/baseof.html | 6 ++++-- layouts/_default/list.md | 1 - layouts/blog/single.html | 13 ++++++++++++ layouts/home/list.html | 32 +++++++++++++++------------- layouts/partials/ld/person.html | 45 ++++++++++++++++++++++++++++++++++++++++ layouts/partials/ld/post.html | 26 +++++++++++++++++++++++ layouts/partials/ld/website.html | 8 +++++++ 7 files changed, 114 insertions(+), 17 deletions(-) delete mode 100644 layouts/_default/list.md create mode 100644 layouts/blog/single.html create mode 100644 layouts/partials/ld/person.html create mode 100644 layouts/partials/ld/post.html create mode 100644 layouts/partials/ld/website.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 40f8a22..b06b789 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,13 +17,15 @@ - {{ $stylesheetOptions := dict "transpiler" "libsass" }} + {{- $stylesheetOptions := dict "transpiler" "libsass" }} {{ $mainStylesheet := resources.Get "css/base.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }} - {{ $darkStylesheet := resources.Get "css/dark.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }} + {{- $darkStylesheet := resources.Get "css/dark.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }} + {{ block "head_extras" . }} + {{ end }} diff --git a/layouts/_default/list.md b/layouts/_default/list.md deleted file mode 100644 index a4ec683..0000000 --- a/layouts/_default/list.md +++ /dev/null @@ -1 +0,0 @@ -{{ .Content|markdownify}} \ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..58c2ba5 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,13 @@ +{{ define "head_extras" }} + {{ partial "ld/post.html" . }} +{{ end }} + +{{ define "main" }} +

{{ .Title }}

+

+ {{ if gt .Date.Unix 0 }} + + {{ end }} +

+{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/home/list.html b/layouts/home/list.html index 4389e28..b2c5925 100644 --- a/layouts/home/list.html +++ b/layouts/home/list.html @@ -1,20 +1,24 @@ +{{ define "head_extras" }} + {{ partial "ld/website.html" . }} +{{ end }} + {{ define "main" }} -{{- .Content }} + {{- .Content }} -{{ with .Site.GetPage "section" "blog" }} - + {{ with .Site.GetPage "section" "blog" }} + - -{{ end }} {{ end}} \ No newline at end of file diff --git a/layouts/partials/ld/person.html b/layouts/partials/ld/person.html new file mode 100644 index 0000000..f329ae7 --- /dev/null +++ b/layouts/partials/ld/person.html @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/layouts/partials/ld/post.html b/layouts/partials/ld/post.html new file mode 100644 index 0000000..c4d0ae4 --- /dev/null +++ b/layouts/partials/ld/post.html @@ -0,0 +1,26 @@ + \ No newline at end of file diff --git a/layouts/partials/ld/website.html b/layouts/partials/ld/website.html new file mode 100644 index 0000000..2abab83 --- /dev/null +++ b/layouts/partials/ld/website.html @@ -0,0 +1,8 @@ + \ No newline at end of file -- cgit v1.3