From d26ecb989f5e5b9e06b34c106a3d391fd2910524 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 20 Sep 2022 22:35:52 +0530 Subject: First commit --- layouts/partials/footer.html | 10 ++++++++++ layouts/partials/head.html | 30 ++++++++++++++++++++++++++++++ layouts/partials/index_nav.html | 27 +++++++++++++++++++++++++++ layouts/partials/intro.html | 10 ++++++++++ layouts/partials/nav.html | 11 +++++++++++ 5 files changed, 88 insertions(+) create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/index_nav.html create mode 100644 layouts/partials/intro.html create mode 100644 layouts/partials/nav.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..fabde24 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..565da2b --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,30 @@ + + + + + + + + {{- if eq .Type "page" -}} + + + + {{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }} + {{ else if eq .Type "blog"}} + + + + + {{ .Title }} - {{ .Site.Params.blogTitle }} + {{ else if eq .Type "lists"}} + + + + {{ .Title }} - {{ .Site.Params.listsTitle }} + {{ else if eq .Type "docs"}} + + + + {{ .Title }} - {{ .Site.Params.docsTitle }} + {{ end }} + diff --git a/layouts/partials/index_nav.html b/layouts/partials/index_nav.html new file mode 100644 index 0000000..6d372d1 --- /dev/null +++ b/layouts/partials/index_nav.html @@ -0,0 +1,27 @@ + + diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html new file mode 100644 index 0000000..39f4a9a --- /dev/null +++ b/layouts/partials/intro.html @@ -0,0 +1,10 @@ +
+

Hello, World!

+

+ Thanks for using Vidhu Kant's Hugo Theme! +
+ Edit the vidhukant-hugo/layouts/partials/intro.html file or set params.indexContent to some html which will be shown here! + For the second section of this page, edit your content/_index.md file. +

+

Also look at the example config.toml file for more variables you can set

+
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..fc951bd --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,11 @@ +
+ +
-- cgit v1.2.3