aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-20 22:35:52 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-20 22:35:52 +0530
commitd26ecb989f5e5b9e06b34c106a3d391fd2910524 (patch)
tree5b2f2391eb682881c90930c040f260854b3f1936 /layouts/index.html
First commit
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html32
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 }}