basic blog
This commit is contained in:
parent
603d1d05e3
commit
1013f0a5a2
@ -8,4 +8,6 @@ Welcome to Balki's Blog
|
||||
-----------------------
|
||||
|
||||
|
||||
I am Balakrishnan Balasubramanian (a) balki. Nothing much here. Checkout the nav bar above for interesting stuff.
|
||||
I am Balakrishnan Balasubramanian (a) balki.
|
||||
|
||||
Nothing much here. Checkout the nav bar above for interesting stuff.
|
@ -10,3 +10,8 @@ Hello world
|
||||
|
||||
So far good! :)
|
||||
|
||||
<!--more-->
|
||||
|
||||
```vim
|
||||
:call term_list()[0]->term_sendkeys(getline('.') .. "\<CR>")
|
||||
```
|
||||
|
@ -19,16 +19,18 @@
|
||||
|
||||
<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" >
|
||||
<aside>
|
||||
<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>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
|
@ -1,9 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1>Posts</h1>
|
||||
{{ range .Pages }}
|
||||
<article>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
<h1>Posts</h1>
|
||||
{{ range .Pages }}
|
||||
{{ partial "postcard" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,9 +1,10 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<article>
|
||||
<h1 class="display-3 text-center">{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
10
hugo/layouts/index.html
Normal file
10
hugo/layouts/index.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
{{ range .Pages }}
|
||||
{{ partial "postcard" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
6
hugo/layouts/partials/postcard.html
Normal file
6
hugo/layouts/partials/postcard.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<a href="{{ .RelPermalink }}" ><h2 class="card-title">{{ .Title }}</h2></a>
|
||||
<p class="card-text"> {{ .Summary }} </p>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user