mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Show lists with content
This commit is contained in:
+3
-1
@@ -49,9 +49,11 @@ googleAnalytics = "UA-136337666-1"
|
|||||||
|
|
||||||
# Metadata mostly used in document's head
|
# Metadata mostly used in document's head
|
||||||
description = "Hey there, my name is Maik de Kruif, I create websites, bots and other kinds of software. At the moment, I'm still studying computer science at Avans University of Applied Sciences. I am also a big fan of open-source software, which is why you'll find many of my projects on Github. And last but not least, I love playing around with cyber-security related stuff."
|
description = "Hey there, my name is Maik de Kruif, I create websites, bots and other kinds of software. At the moment, I'm still studying computer science at Avans University of Applied Sciences. I am also a big fan of open-source software, which is why you'll find many of my projects on Github. And last but not least, I love playing around with cyber-security related stuff."
|
||||||
keywords = ""
|
keywords = "" # TODO: Add keywords!!!
|
||||||
images = [""]
|
images = [""]
|
||||||
|
|
||||||
|
showReadingTimeInList = false
|
||||||
|
|
||||||
homeSubtitle = "Maik de Kruif (maik_dev)"
|
homeSubtitle = "Maik de Kruif (maik_dev)"
|
||||||
|
|
||||||
# Prefix of link to the git commit detail page. GitInfo must be enabled.
|
# Prefix of link to the git commit detail page. GitInfo must be enabled.
|
||||||
|
|||||||
@@ -1,35 +1,72 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|
||||||
<main class="posts">
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
|
|
||||||
{{ if .Content }}
|
<main class="posts">
|
||||||
<div class="content">{{ .Content }}</div>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range $paginator.Pages.GroupByDate "2006" }}
|
{{ if .Content }}
|
||||||
<div class="posts-group">
|
<div class="content">{{ .Content }}</div>
|
||||||
<div class="post-year">{{ .Key }}</div>
|
{{ end }}
|
||||||
|
|
||||||
<ul class="posts-list">
|
<div class="posts-list">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li class="post-item">
|
<div class="post">
|
||||||
<a href="{{.Permalink}}">
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
||||||
<span class="post-title">{{.Title}}</span>
|
<div class="post-meta">
|
||||||
<span class="post-day">
|
{{ if .Date }}
|
||||||
{{ if .Site.Params.dateformShort }}
|
<span class="post-date">
|
||||||
{{ .Date.Format .Site.Params.dateformShort }}
|
{{ .Date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
|
||||||
{{ else }}
|
</span>
|
||||||
{{ .Date.Format "Jan 2"}}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
{{ with .Params.Author }}<span class="post-author">{{ $.Site.Params.WrittenBy | default "Written by" }}
|
||||||
</a>
|
{{ . }}</span>{{ end }}
|
||||||
</li>
|
{{ if $.Site.Params.ShowReadingTimeInList }}
|
||||||
{{ end }}
|
<span class="post-read-time">— {{ .ReadingTime }}
|
||||||
</ul>
|
{{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{ if .Params.tags }}
|
||||||
|
<span class="post-tags">
|
||||||
|
{{ range .Params.tags }}
|
||||||
|
#<a href="{{ (urlize (printf "tags/%s" . )) | absURL }}/">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Params.Cover }}
|
||||||
|
<figure class="post-cover">
|
||||||
|
{{ if .Params.UseRelativeCover }}
|
||||||
|
<img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}"
|
||||||
|
alt="{{ .Title | plainify | default " " }}" />
|
||||||
|
{{ else }}
|
||||||
|
<img src="{{ .Params.Cover | absURL }}" alt="{{ .Title | plainify | default " " }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Params.CoverCaption }}
|
||||||
|
<figcaption class="center">{{ .Params.CoverCaption | markdownify }}</figcaption>
|
||||||
|
{{ end }}
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
|
{{ with .Description }}
|
||||||
|
{{ . | markdownify }}
|
||||||
|
{{ else }}
|
||||||
|
{{ if .Truncated }}
|
||||||
|
{{ .Summary | markdownify }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ if not .Params.hideReadMore }}
|
||||||
|
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
|
||||||
|
→</a></div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
Reference in New Issue
Block a user