Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pbjorklund committed Nov 9, 2024
1 parent d507252 commit 198ba31
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 31 deletions.
Binary file removed Attachments/Pasted image 20230806071755.png
Binary file not shown.
Binary file removed Attachments/Pasted image 20230806071802.png
Binary file not shown.
Binary file removed Attachments/Pasted image 20230806071814.png
Binary file not shown.
Binary file removed Attachments/Pasted image 20230806071843.png
Binary file not shown.
Binary file removed Attachments/Pasted image 20230806071855.png
Binary file not shown.
Binary file removed Attachments/Pasted image 20230806071912.png
Binary file not shown.
8 changes: 4 additions & 4 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
baseurl = "https://www.pbjorklund.com"
title = "Continuously Learning"
title = "Patrik Björklund"
theme = "hugo-coder"
languagecode = "en"
defaultcontentlanguage = "en"

paginate = 20
paginate = 4

disqusShortname = "pbjorklund"

[markup.highlight]
style = "github-dark"

[params]
author = "Patrik Björklund"
info = "Business, Productivity, Endurance"
author = "Patrik"
info = "Hello 👋, I'm Patrik"
description = "Patriks thoughts"
keywords = "blog,business,productivity"
avatarurl = "images/avatar.jpg"
Expand Down
45 changes: 37 additions & 8 deletions layouts/partials/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,51 @@
{{ partialCached "home/avatar.html" . }}

{{ partialCached "home/author.html" . }}

{{ partialCached "home/social.html" . }}
</div>
</section>

{{ partialCached "home/extensions.html" . }}

<section class="container list">
{{ .Content }}
<ul>
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}
{{- end -}}
</ul>
<section class="container list">
{{ .Content }}
{{- range .Paginator.Pages }}
<article class="post">
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink }}">
{{ .Title }}
</a>
</h1>
<div class="post-meta">
<div class="date">
<span class="posted-on">
<i class="fa fa-calendar" aria-hidden="true"></i>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
</time>
</span>
<span class="reading-time">
<i class="fa fa-clock-o" aria-hidden="true"></i>
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
</div>
</header>

<div class="post-content">
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
{{ end }}
{{ .Content }}
</div>

{{ partial "pagination.html" . }}
</article>
{{- end }}

{{ partial "pagination.html" . }}
</section>
</section>
</div>
</section>
21 changes: 21 additions & 0 deletions layouts/posts/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ define "title" }}
{{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }}
{{ end }}

{{ define "content" }}
<section class="container list">
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ title (i18n (lower .Title)) | default .Title }}
</a>
</h1>
</header>
{{ .Content }}
<ul>
{{- range .Site.RegularPages -}}
{{- .Render "li" -}}
{{- end -}}
</ul>
</section>
{{ end }}
49 changes: 49 additions & 0 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container post">
<article>
<header>
<div class="post-title">
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ .Title }}
</a>
</h1>
</div>
<div class="post-meta">
<div class="date">
<span class="posted-on">
<i class="fa fa-calendar" aria-hidden="true"></i>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
</time>
</span>
<span class="reading-time">
<i class="fa fa-clock-o" aria-hidden="true"></i>
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div>
</header>

<div class="post-content">
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
{{ end }}
{{ .Content }}
</div>


<footer>
{{ partial "posts/series.html" . }}
</footer>
</article>

{{ partial "posts/math.html" . }}
</section>
{{ end }}
2 changes: 0 additions & 2 deletions layouts/shortcodes/typeform.html

This file was deleted.

17 changes: 0 additions & 17 deletions nothing-temporary.md

This file was deleted.

5 changes: 5 additions & 0 deletions static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ body.colorscheme-dark pre {
overflow-wrap: break-word;
max-width: 100%;
overflow: auto;
}


.content header h1 {
margin-bottom: 15px !important;
}

0 comments on commit 198ba31

Please sign in to comment.