mirror of
https://github.com/Aroy-Art/Aroy-Art-Site.git
synced 2024-12-26 06:34:22 +01:00
Added layouts
This commit is contained in:
parent
59191b68e7
commit
43904f5080
1 changed files with 27 additions and 0 deletions
27
layouts/partials/fragments/sample-custom-fragment.html
Normal file
27
layouts/partials/fragments/sample-custom-fragment.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{{- $fragment := .self.Params -}}
|
||||
{{- $name := strings.TrimSuffix ".md" (replace .self.Name "/index.md" "") -}}
|
||||
{{- $bg := $fragment.background | default "secondary" }}
|
||||
<section id="{{ $name }}">
|
||||
<div class="overlay container-fluid
|
||||
{{- printf " bg-%s" $bg -}}
|
||||
">
|
||||
<div class="container py-5">
|
||||
<div class="row">
|
||||
<div class="col text-center
|
||||
{{- if eq $bg "dark" -}}
|
||||
{{- printf " text-%s" "light" -}}
|
||||
{{- else -}}
|
||||
{{- printf " text-%s" "dark" -}}
|
||||
{{- end -}}
|
||||
">
|
||||
<h4>Custom fragments</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<h5>Introducing custom fragments</h5>
|
||||
<p>This is a custom fragments. Dynamically loaded since there was a call for it in the index content directory.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
Loading…
Reference in a new issue