From e31a93dbd364626483246043e718e6a48c8d3eca Mon Sep 17 00:00:00 2001 From: somratpro Date: Tue, 1 Jun 2021 14:04:53 +0600 Subject: [PATCH] added partial cached and new notice on elemnt page --- exampleSite/content/installation/elements/_index.en.md | 4 ++++ exampleSite/content/installation/elements/_index.fr.md | 4 ++++ layouts/_default/baseof.html | 6 +++--- layouts/shortcodes/notice.html | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/installation/elements/_index.en.md b/exampleSite/content/installation/elements/_index.en.md index 72e9d6a..eda0faf 100644 --- a/exampleSite/content/installation/elements/_index.en.md +++ b/exampleSite/content/installation/elements/_index.en.md @@ -94,6 +94,10 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam nihil enim maxime This is a simple info. {{< /notice >}} +{{< notice warning >}} + This is a simple warning. +{{< /notice >}} +
#### Tab diff --git a/exampleSite/content/installation/elements/_index.fr.md b/exampleSite/content/installation/elements/_index.fr.md index ac55fa8..487946d 100644 --- a/exampleSite/content/installation/elements/_index.fr.md +++ b/exampleSite/content/installation/elements/_index.fr.md @@ -94,6 +94,10 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam nihil enim maxime This is a simple info. {{< /notice >}} +{{< notice warning >}} + This is a simple warning. +{{< /notice >}} +
#### Tab diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b8cfb07..759ed91 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,18 +7,18 @@ {{ "" | safeHTML }} {{ "" | safeHTML }} {{ else }} {{ "" | safeHTML }}
- {{ partial "navigation.html" . }} + {{ partialCached "navigation.html" . }}
{{ "" | safeHTML }} {{ end }} {{ block "main" . }}{{ end }} - {{ partial "footer.html" . }} + {{ partialCached "footer.html" . }} \ No newline at end of file diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index 3000289..0b03907 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -1,3 +1,3 @@ {{ $_hugo_config := `{ "version": 1 }` }} -

{{ .Inner | markdownify }}

+

{{ .Inner | markdownify }}

\ No newline at end of file