diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2021-06-01 11:04:53 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2021-06-01 11:04:53 +0300 |
commit | e31a93dbd364626483246043e718e6a48c8d3eca (patch) | |
tree | 3f660a85c491bd1d72e9951f21d476c163080fdf | |
parent | 4685e0da5808cb3cc8a63fc78774b840883a4e32 (diff) |
added partial cached and new notice on elemnt page
-rw-r--r-- | exampleSite/content/installation/elements/_index.en.md | 4 | ||||
-rw-r--r-- | exampleSite/content/installation/elements/_index.fr.md | 4 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | 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 >}} + <hr> #### 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 >}} + <hr> #### 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 @@ {{ "<!-- header -->" | safeHTML }} <header class="banner {{if .Site.Params.banner.bg_image}}overlay bg-cover{{else}}bg-primary{{end}}" data-background="{{ .Site.Params.banner.bg_image | absURL }}"> {{ partial "navigation.html" . }} - {{ partial "banner.html" . }} + {{ partialCached "banner.html" . }} </header> {{ "<!-- /header -->" | safeHTML }} {{ else }} {{ "<!-- header -->" | safeHTML }} <header class="shadow-bottom sticky-top bg-white"> - {{ partial "navigation.html" . }} + {{ partialCached "navigation.html" . }} </header> {{ "<!-- /header -->" | safeHTML }} {{ end }} {{ block "main" . }}{{ end }} - {{ partial "footer.html" . }} + {{ partialCached "footer.html" . }} </body> </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 }` }} -<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}><p>{{ .Inner | markdownify }}</p></div> +<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}><p>{{ .Inner | markdownify }}</p></div>
\ No newline at end of file |