diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..fcdb58a --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,32 @@ +{{ define "main" }} +<div class="section" id="section-1"> + <div class="section-child"> + {{- partial "index_nav.html" . -}} + <!-- The first section of the page will be loaded with partial intro.html --> + <!-- and/or .Site.Params.indexContent variable in your hugo config file. --> + <!-- While the second section will be generated by content/_index.md file --> + <!-- basically, the first section is more permanent, --> + <!-- while you can regularly and easily change the second section --> + + {{ if .Site.Params.indexContent }} + {{ .Site.Params.indexContent | safeHTML }} + {{ else }} + {{- partial "intro.html" . -}} + {{ end }} + </div> +</div> + +<div class="section" id="section-2"> + <div class="section-child"> + <div id="other-content"> + {{ .Content }} + </div> + <div class="img-l"> + <!-- remove the <a> tag if the image shouldn't be a hyperlink --> + <a href="{{ .Params.imgLink }}"> + <img src="{{ .Params.img }}" alt="{{ .Params.imgAlt }}"/> + </a> + </div> + </div> +</div> +{{ end }} |