diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-20 22:35:52 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-20 22:35:52 +0530 |
commit | d26ecb989f5e5b9e06b34c106a3d391fd2910524 (patch) | |
tree | 5b2f2391eb682881c90930c040f260854b3f1936 /layouts/partials |
First commit
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 10 | ||||
-rw-r--r-- | layouts/partials/head.html | 30 | ||||
-rw-r--r-- | layouts/partials/index_nav.html | 27 | ||||
-rw-r--r-- | layouts/partials/intro.html | 10 | ||||
-rw-r--r-- | layouts/partials/nav.html | 11 |
5 files changed, 88 insertions, 0 deletions
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 @@ +<footer> + <div id="gifs"> + {{ range .Site.Params.gifs}} + {{ . | safeHTML }} + {{ end }} + </div> + <div id="copyright"> + {{ .Site.Copyright | safeHTML }} + </div> +</footer> 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 @@ +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + <meta name="author" content="{{ .Site.Author.name }}"> + + <!-- conditionally load css, set title, description, etc --> + <!-- add or remove these if you want to have more types of pages --> + {{- if eq .Type "page" -}} + <meta name="description" content="{{ .Title }}"> + <meta name="robots" content="index, follow"> + <link rel="stylesheet" type="text/css" href="/css/index.css"> + <title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title> + {{ else if eq .Type "blog"}} + <meta name="description" content="{{ .Title }}"> + <meta name="robots" content="index, follow"> + <link rel="alternate" type="application/rss+xml" href="/blog/index.xml" title=""> + <link rel="stylesheet" type="text/css" href="/css/blog.css"> + <title>{{ .Title }} - {{ .Site.Params.blogTitle }}</title> + {{ else if eq .Type "lists"}} + <meta name="description" content="{{ .Title }}"> + <meta name="robots" content="index, follow"> + <link rel="stylesheet" type="text/css" href="/css/lists.css"> + <title>{{ .Title }} - {{ .Site.Params.listsTitle }}</title> + {{ else if eq .Type "docs"}} + <meta name="description" content="{{ .Title }}"> + <meta name="robots" content="index, follow"> + <link rel="stylesheet" type="text/css" href="/css/docs.css"> + <title>{{ .Title }} - {{ .Site.Params.docsTitle }}</title> + {{ end }} +</head> 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 @@ +<div id="image-and-links"> + <img id="my-image" src="{{ .Site.Params.mainPictureURL }}" alt="{{ .Site.Params.mainPictureAlt }}"> + <ul id="my-links"> + <li> + <a href="/blog/">Blog</a> + </li> + <li> + <a href="/lists/">Lists</a> + </li> + <li> + <a href="/docs/">Projects</a> + </li> + <li> + <a href="https://sns.mikunonaka.net/odysee">Odysee</a> + </li> + <li> + <a href="https://sns.mikunonaka.net/youtube">YouTube</a> + </li> + <li> + <a href="https://github.com/MikunoNaka">GitHub</a> + </li> + <li> + <a href="/contact/">Contact</a> + </li> + </ul> +</div> + 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 @@ +<div id="my-intro"> + <h1>Hello, World!</h1> + <p> + Thanks for using <a href="https://github.com/MikunoNaka/vidhukant-hugo">Vidhu Kant's Hugo Theme!</a> + <br/> + 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. + </p> + <h2>Also look at the example config.toml file for more variables you can set</h2> +</div> 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 @@ +<header> + <nav> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/contact/" class="{{ if eq "contact" . }}selected{{ end }}">Contact</a></li> + <li><a href="/blog/" class="{{ if eq "blog" . }}selected{{ end }}">Blog</a></li> + <li><a href="/lists/" class="{{ if eq "lists" . }}selected{{ end }}">Lists</a></li> + <li><a href="/docs/" class="{{ if eq "docs" . }}selected{{ end }}">Docs</a></li> + </ul> + </nav> +</header> |