Add more hugo templates

This commit is contained in:
Balakrishnan Balasubramanian 2023-05-31 13:35:32 -04:00
parent 03ec17230c
commit 603d1d05e3
11 changed files with 103 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
hugo/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.hugo_build.lock
/public/

View File

@ -1,3 +1,3 @@
baseURL: http://example.org/
baseURL: http://blog.balki.me/
languageCode: en-us
title: My New Hugo Site
title: Balki's Blog

11
hugo/content/index.md Normal file
View File

@ -0,0 +1,11 @@
---
title: "Home"
date: 2023-05-31T09:14:56-04:00
draft: false
---
Welcome to Balki's Blog
-----------------------
I am Balakrishnan Balasubramanian (a) balki. Nothing much here. Checkout the nav bar above for interesting stuff.

View File

@ -0,0 +1,12 @@
---
title: "First Post"
date: 2023-05-30T22:31:45-04:00
draft: true
---
## Blogging with Hugo
Hello world
So far good! :)

View File

@ -0,0 +1,39 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;">
<title>
{{ block "title" . }}
{{ .Site.Title }}
{{ end }}
</title>
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link href="/assets/bootstrap.min.css" rel="stylesheet" >
<script src="/assets/bootstrap.min.js" defer></script>
</head>
<body>
<nav>
<ul class="nav">
<li class="nav-item"><a class="nav-link" href="/"> Home </a></li>
<li class="nav-item"><a class="nav-link" href="https://blog.balki.me"> Blog </a></li>
<li class="nav-item"><a class="nav-link" href="/stuff.html"> Stuff </a></li>
<li class="nav-item"><a class="nav-link" href="https://gitea.balki.me/balki/blog"> Source </a></li>
</ul>
</nav>
<div class="container" >
<main>
{{ block "main" . }}
{{ end }}
</main>
</div>
</body>
</html>

View File

@ -0,0 +1,9 @@
{{ define "main" }}
<h1>Posts</h1>
{{ range .Pages }}
<article>
<h2>{{ .Title }}</h2>
{{ .Content }}
</article>
{{ end }}
{{ end }}

View File

@ -0,0 +1,9 @@
{{ define "title" }}
{{ .Title }} &ndash; {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}

6
hugo/static/assets/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

7
hugo/static/assets/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long