feat: add SCSS styles and HTML templates for blog layout
This commit is contained in:
committed by
Evrard Van Espen (aider)
parent
2d9eabc53f
commit
fdccf7d0ac
22
templates/parts/index.html
Normal file
22
templates/parts/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<section id="posts">
|
||||
<h2 class="section-title">~ Posts</h2>
|
||||
{{ range .Posts }}
|
||||
<div class="article">
|
||||
<a href="{{ .PathHtml }}">
|
||||
<article>
|
||||
<p class="date">{{ .DateStr }}</p>
|
||||
<div class="right">
|
||||
<h3>{{ .Title }}</h3>
|
||||
<p class="description">{{ .Description }}</p>
|
||||
<p class="reading-time">{{ .ReadTime }} minutes read</p>
|
||||
<div class="article-tags">
|
||||
{{ range .Tags }}
|
||||
<div class="tag">{{ . }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</section>
|
||||
Reference in New Issue
Block a user