add blog post, blog UI still hidden

This commit is contained in:
2024-10-22 14:54:54 +03:00
parent 9664764db5
commit a094570ce0
5 changed files with 108 additions and 22 deletions
+3 -1
View File
@@ -60,7 +60,9 @@
<li><a href="/cv">
<h5>CV</h5>
</a></li>
<!-- <li><a href="/blog" class="contrast">Blog</a></li> -->
<!-- <li><a href="/blog">
<h5>Blog</h5>
</a></li> -->
</ul>
</nav>
</header>
+10
View File
@@ -0,0 +1,10 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
<a href="{{ .RelPermalink }}">{{ .Title }} {{ .Date | time.Format "January 2, 2006" }}</a>
</p>
{{ end }}
{{ end }}
+1
View File
@@ -1,3 +1,4 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}