added partial cached and new notice on elemnt page

This commit is contained in:
somratpro 2021-06-01 14:04:53 +06:00
parent 4685e0da58
commit e31a93dbd3
4 changed files with 12 additions and 4 deletions

View file

@ -94,6 +94,10 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam nihil enim maxime
This is a simple info. This is a simple info.
{{< /notice >}} {{< /notice >}}
{{< notice warning >}}
This is a simple warning.
{{< /notice >}}
<hr> <hr>
#### Tab #### Tab

View file

@ -94,6 +94,10 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam nihil enim maxime
This is a simple info. This is a simple info.
{{< /notice >}} {{< /notice >}}
{{< notice warning >}}
This is a simple warning.
{{< /notice >}}
<hr> <hr>
#### Tab #### Tab

View file

@ -7,18 +7,18 @@
{{ "<!-- header -->" | safeHTML }} {{ "<!-- 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 }}"> <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 "navigation.html" . }}
{{ partial "banner.html" . }} {{ partialCached "banner.html" . }}
</header> </header>
{{ "<!-- /header -->" | safeHTML }} {{ "<!-- /header -->" | safeHTML }}
{{ else }} {{ else }}
{{ "<!-- header -->" | safeHTML }} {{ "<!-- header -->" | safeHTML }}
<header class="shadow-bottom sticky-top bg-white"> <header class="shadow-bottom sticky-top bg-white">
{{ partial "navigation.html" . }} {{ partialCached "navigation.html" . }}
</header> </header>
{{ "<!-- /header -->" | safeHTML }} {{ "<!-- /header -->" | safeHTML }}
{{ end }} {{ end }}
{{ block "main" . }}{{ end }} {{ block "main" . }}{{ end }}
{{ partial "footer.html" . }} {{ partialCached "footer.html" . }}
</body> </body>
</html> </html>