Skip to content

Commit

Permalink
Slightly improve rendering of the blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillbobyrev committed Feb 19, 2025
1 parent 68bdd0c commit efcb0f4
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion archetypes/post.md → archetypes/blog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
+++
title = "{{ replace .Name '-' ' ' | title }}"
date = {{ .Date | time.Format "2006-01-02" }}
publishDate = {{ .Date | time.Format "2006-01-02" }}
draft = true
+++
4 changes: 4 additions & 0 deletions archetypes/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = "{{ replace .Name '-' ' ' | title }}"
publishDate = {{ .Date | time.Format "2006-01-02" }}
+++
4 changes: 1 addition & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ p>code {
}

time {
display: inline-block;
width: 7rem;
vertical-align: top;
font-style: italic;
}

/* Title and menu. */
Expand Down
2 changes: 1 addition & 1 deletion content/blog/analyzing-long-win-streaks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Analyzing long win streaks in online chess"
date = 2023-11-28
publishDate = 2023-11-28
images = ["/images/analyzing-long-win-streaks/cover.png"]
+++

Expand Down
2 changes: 1 addition & 1 deletion content/blog/anki.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Anki: The Ultimate Tool for Long-Term Learning"
date = 2025-01-02
publishDate = 2025-01-02
+++

Being a Software Engineer means constantly learning new things, and streamlining
Expand Down
2 changes: 1 addition & 1 deletion content/blog/modern-operating-systems.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Modern Operating Systems"
date = "2023-04-05T20:19:02-07:00"
publishDate = "2023-04-05T20:19:02-07:00"
draft = true
+++

Expand Down
7 changes: 0 additions & 7 deletions content/blog/operating-system-engineering.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/blog/probability4datascience.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = 'Best book on Probability and Statistics'
date = 2025-01-11
publishDate = 2025-01-11
draft = true
+++

Expand Down
2 changes: 1 addition & 1 deletion content/blog/python-visualizations.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "Creating beautiful visualizations in Python"
date = 2025-01-08
publishDate = 2025-01-08
+++

I recently started watching a lot of educational videos on YouTube and was
Expand Down
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ googleAnalytics = 'G-RHCZGDQQJR'
languageCode = 'en'
title = 'Kirill Bobyrev'
disableKinds = ['taxonomy', 'term']
enableGitInfo = true

[params]
description = 'Blog about Software Engineering and hobbies by Kirill Bobyrev'
Expand Down
9 changes: 8 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ <h1>

{{ if .Date }}
<p>
<time datetime="{{ .Date }}" pubdate>
<time datetime="{{ .PublishDate }}" pubdate>
{{ .Date | dateFormat site.Params.dateDisplayFormat }}
</time>
{{ if not (eq .Lastmod .PublishDate) }}
&mdash; Updated: <time datetime="{{ .Lastmod }}" pubdate>{{ .Lastmod | dateFormat site.Params.dateDisplayFormat
}}</time>
{{ end }}
{{ if gt .ReadingTime 5 }}
&mdash; {{ .ReadingTime }} minutes to read
{{ end }}
</p>
{{ end }}

Expand Down
1 change: 1 addition & 0 deletions layouts/notes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ul class="notes">
{{ range .Pages }}
<li>
<!-- TODO: Add a date and make sure it renders well on mobile devices. -->
<article>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</article>
Expand Down

0 comments on commit efcb0f4

Please sign in to comment.