Compare commits

..

2 Commits

Author SHA1 Message Date
a178fe3036 fix index.md page break. idk what to do with it. so no index for now 2024-05-07 13:12:40 +03:00
7553211043 no posts? 2024-05-07 13:04:15 +03:00
4 changed files with 36 additions and 13 deletions

View File

@ -1,12 +0,0 @@
Hi, I'm Casual. Jack of all trades, master of none.
I write __short__ and clutterless aricles about:
- hacking
- technology
- productivity
 
---
 
## All posts

View File

@ -67,7 +67,7 @@ params:
style: dark-without-switcher style: dark-without-switcher
mainSections: [ "blog" ] # which sections should be on index/main page mainSections: [ "blog" ] # which sections should be on index/main page
sectionsWithFullContentOnListPage: [ "notes" ] # for which sections content should be displayed on list pages sectionsWithFullContentOnListPage: [ "notes" ] # for which sections content should be displayed on list pages
readMore: true # show read more button readMore: false # show read more button
readNextPosts: 5 # show 5 related posts, 0 by default readNextPosts: 5 # show 5 related posts, 0 by default
disableSummary: false disableSummary: false
toc: true # display Table of Contents toc: true # display Table of Contents

20
template.md Normal file
View File

@ -0,0 +1,20 @@
+++
title = 'HowTo DO SOMETHING
date = 2024-05-03
+++
<!-- &nbsp; -->
I forgot to write summary<!--more-->
{{< spoiler Spoiler >}}
I forgot to remove it from template
{{< /spoiler >}}
{{< source >}}
Random YouTube videos
My Experience
{{< /source >}}

View File

@ -0,0 +1,15 @@
{{ define "main" }}
<div class="homepage-content">
{{ .Content }}
</div>
<div class="articles h-feed">
{{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }}
{{ range .Site.RegularPages }}
{{ partial "post-summary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}