Browse Source

Lots of org changes and some new content

master
Kim Grytøyr 2 months ago
parent
commit
228c2e6f3d
Signed by: Kim Grytøyr <kim@grytoyr.io> GPG Key ID: 759EF8C94E0B45B7
41 changed files with 196 additions and 20 deletions
  1. 11
    1
      config.toml
  2. 12
    0
      content/diary/2020-03-10-diary.md
  3. 22
    0
      content/feeds.md
  4. 10
    0
      content/links/2020-03-09-tot.md
  5. 28
    0
      content/moo.md
  6. 48
    0
      content/notes/2020-03-10-entries-split.md
  7. 0
    8
      content/post/2019-11-19-first-go-at-brewing-beer.md
  8. 0
    0
      content/posts/2014-07-08-going-static.md
  9. 0
    0
      content/posts/2014-07-09-case-sensitivty-problem-with-git-in-os-x.md
  10. 0
    0
      content/posts/2014-09-03-opening-sublime-text-from-the-command-line.md
  11. 0
    0
      content/posts/2015-06-14-locationpicker.js.md
  12. 0
    0
      content/posts/2015-06-14-using-launchctl-on-mac-osx-10-10.markdown
  13. 0
    0
      content/posts/2015-06-20-my-mutt-setup.md
  14. 0
    0
      content/posts/2015-06-21-mutt-tips-and-tricks.md
  15. 0
    0
      content/posts/2015-06-21-note-taking-workflow-with-alfred-app.md
  16. 0
    0
      content/posts/2015-08-09-basic-usage-of-git-svn.md
  17. 0
    0
      content/posts/2015-08-09-deleteing-rows-with-a-left-join-in-mysql.markdown
  18. 0
    0
      content/posts/2015-08-09-useful-git-tips.md
  19. 0
    0
      content/posts/2016-01-21-creating-a-bootable-usb-stick-on-os-x.md
  20. 0
    0
      content/posts/2016-01-21-trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42.md
  21. 0
    0
      content/posts/2016-01-31-resizing-windows-on-linux.md
  22. 0
    0
      content/posts/2016-10-28-useful-vim-plugins.md
  23. 0
    0
      content/posts/2017-04-13-moving-to-hugo.md
  24. 0
    0
      content/posts/2017-07-30-ludum-dare-39.md
  25. 0
    0
      content/posts/2018-02-09-ubuntu-sudo-nopasswd.md
  26. 0
    0
      content/posts/2018-02-12-basic-server-setup-ubuntu.md
  27. 0
    0
      content/posts/2018-06-15-vim-encoding.md
  28. 0
    0
      content/posts/2018-10-01-whitelist-email-addresses.md
  29. 0
    0
      content/posts/2018-10-03-pretty-print-json-mac.md
  30. 0
    0
      content/posts/2019-02-19-sublime-text-3-plugin.md
  31. 0
    0
      content/posts/2019-11-25-visual-studio-code-keybindings.md
  32. 0
    0
      content/posts/3D-book-model.md
  33. 0
    0
      content/posts/ludum-dare-38.md
  34. BIN
      static/images/diary/2020/vestvatn1.jpg
  35. BIN
      static/images/signature.png
  36. 7
    2
      themes/hugo-cactus-theme/layouts/_default/single.html
  37. 3
    2
      themes/hugo-cactus-theme/layouts/partials/latest-posts.html
  38. 1
    1
      themes/hugo-cactus-theme/layouts/partials/nav.html
  39. 23
    5
      themes/hugo-cactus-theme/layouts/partials/post-list.html
  40. 7
    0
      themes/hugo-cactus-theme/layouts/partials/tabs.html
  41. 24
    1
      themes/hugo-cactus-theme/static/css/style.css

+ 11
- 1
config.toml View File

@@ -1,5 +1,5 @@
# Site settings
baseurl = "/"
baseurl = "https://kim.grytoyr.io/"
themesDir = "./themes"
languageCode = "en-us"
title = "Kim Grytøyr"
@@ -11,7 +11,13 @@ googleAnalytics = ""
# Disable comments by leaving disqusShortname empty
disqusShortname = ""

[permalinks]
posts = "/posts/:year/:month/:title/"
links = "/links/:year/:month/:title/"
notes = "/notes/:year/:month/:title/"

[params]
siteURL = "https://kim.grytoyr.io/"
name = "Kim Grytøyr"
description = "Personal website for Kim Grytøyr."
bio = "Programmer - Tech enthusiast"
@@ -30,6 +36,7 @@ disqusShortname = ""
# Navigation links
home = ""
about = ""
feeds = ""
subscribe = ""
# Pagination links
olderPosts = ""
@@ -49,6 +56,9 @@ disqusShortname = ""
# The social icons can be styled differently if you use mono as font - circle, rounded, or empty
socialIconStyle = "circle"

[markup.goldmark.renderer]
unsafe = true

# Add additional social link entries underneath
[social]
twitter = "https://www.twitter.com/kimgrytoyr"

+ 12
- 0
content/diary/2020-03-10-diary.md View File

@@ -0,0 +1,12 @@
---
categories: diary
date: 2020-03-08T12:40:00Z
published: true
title: "Sunday, March 8, 2020"
slug: 2020/03/08
hasImage: true
---

Today I visited [Vestvatn alpinanlegg](https://vestvatn.no).

{{< figure src="/images/diary/2020/vestvatn1.jpg" title="The family slope at Vestvatn alpinanlegg" >}}

+ 22
- 0
content/feeds.md View File

@@ -0,0 +1,22 @@
+++
date = "2020-03-10T06:28:48+02:00"
description = "Information about RSS feeds."
title = "RSS feeds"
+++

These are the relevant RSS feeds for this website.

**Everything:**
[{{< param "siteURL" >}}index.xml]({{< param "siteURL" >}}index.xml)

**Posts:**
[{{< param "siteURL" >}}posts/index.xml]({{< param "siteURL" >}}posts/index.xml)

**Links:**
[{{< param "siteURL" >}}links/index.xml]({{< param "siteURL" >}}links/index.xml)

**Notes:**
[{{< param "siteURL" >}}notes/index.xml]({{< param "siteURL" >}}notes/index.xml)

**Diary:**
[{{< param "siteURL" >}}diary/index.xml]({{< param "siteURL" >}}diary/index.xml)

+ 10
- 0
content/links/2020-03-09-tot.md View File

@@ -0,0 +1,10 @@
---
categories: links
date: 2020-03-09T10:40:00Z
published: true
title: "Tot by the Iconfactory"
link: https://tot.rocks/
url: /links/2020/03/09/tot-by-the-iconfactory
---

I like the concept of this app.

+ 28
- 0
content/moo.md View File

@@ -0,0 +1,28 @@
+++
date = "2017-04-13T01:28:48+02:00"
description = "About me and this site."
title = "About"
+++


You are now viewing my personal website. Here's a list of topics you can expect to find posts about on this site:

- Programming
- Linux
- Technology in general
- Flight simulation (X-plane)
- Game development (Unity, Blender)

## Me

<div class="h-card">
<img src="../images/avatar.png" class="u-image" style="border-radius: 50%; float: right;" />
<ul>
<li><strong>Name:</strong> <span class="p-name"><span class="p-given-name">Kim</span> <span class="p-family-name">Grytøyr</span></span></li>
<li><strong>Occupation:</strong> <span class="p-job-title">Software developer</span></li>
<li><strong>Location:</strong> <span class="p-locality">Bodø</span>, <span class="p-region">Norway</span></li>
<li><strong>Nickname:</strong> <span class="p-nickname">kimgrytoyr</span></li>
<li><strong>E-mail:</strong> <a class="u-email" href="mailto:kim@grytoyr.io">kim@grytoyr.io</a></li>
<li><strong>Phone:</strong> <a class="p-tel" href="tel:+4721405770">+47 21 40 57 70</a></li>
</ul>
</div>

+ 48
- 0
content/notes/2020-03-10-entries-split.md View File

@@ -0,0 +1,48 @@
---
categories: notes
date: 2020-03-10T10:40:00Z
published: true
title: "Entries.split()"
description: "Divide and conquer."
link: https://tot.rocks/
---

> **Note**: All the changes mentioned below are subject to change at any time as this is an ongoing process.

I have decided to divide the entries on this website into four different categories:

- Posts
- Links
- Notes
- Diary


## Posts
A post is a blog entry. It is **about** something, and most likely it's about something related to technology.

## Links
A link is just a link to another website without any further explanation. Technically the entry will have a description, but that description is very short and only visible in the RSS feed.

## Notes
A note could be pretty much anything. It could be meta information about the blog, like this entry, or a note on something I read online. No rules.

## Diary
More personal updates about what I've been up to lately. With images and stuff.

## RSS feeds
I know for a fact that at least one person is subscribing to my RSS feed. From now on I will probably post things more often, but those things can also be less interesting than they used to be – if possible. Because of this, I've also created five different RSS feeds that you can choose from:

**Everything:**
[{{< param "siteURL" >}}index.xml]({{< param "siteURL" >}}index.xml)

**Posts:**
[{{< param "siteURL" >}}posts/index.xml]({{< param "siteURL" >}}posts/index.xml)

**Links:**
[{{< param "siteURL" >}}links/index.xml]({{< param "siteURL" >}}links/index.xml)

**Notes:**
[{{< param "siteURL" >}}notes/index.xml]({{< param "siteURL" >}}notes/index.xml)

**Diary:**
[{{< param "siteURL" >}}diary/index.xml]({{< param "siteURL" >}}diary/index.xml)

+ 0
- 8
content/post/2019-11-19-first-go-at-brewing-beer.md View File

@@ -1,8 +0,0 @@
+++
date = "2019-11-19T12:29:00+02:00"
description = "How our first go at brewing beer went."
title = "First go at brewing beer"
tags = ["beer", "brewing"]
+++

This post will eventually contain a post-mortem of me and my colleague's first go at brewing our own beer.

content/post/2014-07-08-going-static.md → content/posts/2014-07-08-going-static.md View File


content/post/2014-07-09-case-sensitivty-problem-with-git-in-os-x.md → content/posts/2014-07-09-case-sensitivty-problem-with-git-in-os-x.md View File


content/post/2014-09-03-opening-sublime-text-from-the-command-line.md → content/posts/2014-09-03-opening-sublime-text-from-the-command-line.md View File


content/post/2015-06-14-locationpicker.js.md → content/posts/2015-06-14-locationpicker.js.md View File


content/post/2015-06-14-using-launchctl-on-mac-osx-10-10.markdown → content/posts/2015-06-14-using-launchctl-on-mac-osx-10-10.markdown View File


content/post/2015-06-20-my-mutt-setup.md → content/posts/2015-06-20-my-mutt-setup.md View File


content/post/2015-06-21-mutt-tips-and-tricks.md → content/posts/2015-06-21-mutt-tips-and-tricks.md View File


content/post/2015-06-21-note-taking-workflow-with-alfred-app.md → content/posts/2015-06-21-note-taking-workflow-with-alfred-app.md View File


content/post/2015-08-09-basic-usage-of-git-svn.md → content/posts/2015-08-09-basic-usage-of-git-svn.md View File


content/post/2015-08-09-deleteing-rows-with-a-left-join-in-mysql.markdown → content/posts/2015-08-09-deleteing-rows-with-a-left-join-in-mysql.markdown View File


content/post/2015-08-09-useful-git-tips.md → content/posts/2015-08-09-useful-git-tips.md View File


content/post/2016-01-21-creating-a-bootable-usb-stick-on-os-x.md → content/posts/2016-01-21-creating-a-bootable-usb-stick-on-os-x.md View File


content/post/2016-01-21-trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42.md → content/posts/2016-01-21-trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42.md View File


content/post/2016-01-31-resizing-windows-on-linux.md → content/posts/2016-01-31-resizing-windows-on-linux.md View File


content/post/2016-10-28-useful-vim-plugins.md → content/posts/2016-10-28-useful-vim-plugins.md View File


content/post/2017-04-13-moving-to-hugo.md → content/posts/2017-04-13-moving-to-hugo.md View File


content/post/2017-07-30-ludum-dare-39.md → content/posts/2017-07-30-ludum-dare-39.md View File


content/post/2018-02-09-ubuntu-sudo-nopasswd.md → content/posts/2018-02-09-ubuntu-sudo-nopasswd.md View File


content/post/2018-02-12-basic-server-setup-ubuntu.md → content/posts/2018-02-12-basic-server-setup-ubuntu.md View File


content/post/2018-06-15-vim-encoding.md → content/posts/2018-06-15-vim-encoding.md View File


content/post/2018-10-01-whitelist-email-addresses.md → content/posts/2018-10-01-whitelist-email-addresses.md View File


content/post/2018-10-03-pretty-print-json-mac.md → content/posts/2018-10-03-pretty-print-json-mac.md View File


content/post/2019-02-19-sublime-text-3-plugin.md → content/posts/2019-02-19-sublime-text-3-plugin.md View File


content/post/2019-11-25-visual-studio-code-keybindings.md → content/posts/2019-11-25-visual-studio-code-keybindings.md View File


content/post/3D-book-model.md → content/posts/3D-book-model.md View File


content/post/ludum-dare-38.md → content/posts/ludum-dare-38.md View File


BIN
static/images/diary/2020/vestvatn1.jpg View File


BIN
static/images/signature.png View File


+ 7
- 2
themes/hugo-cactus-theme/layouts/_default/single.html View File

@@ -1,6 +1,6 @@
{{ partial "head.html" . }}
<body>
{{ partial "nav.html" . }}
{{ partial "nav.html" . }}

<section id="wrapper">
<article class="post">
@@ -20,6 +20,9 @@
</header>
<section id="post-body">
{{ .Content }}
<img class="signature" src="/images/signature.png" alt="My signature" />
<p class="post-date">{{ .Date.Format "January 2, 2006" }}</p>
<hr />
</section>
<section id="post-verification">
<p>You can verify that this post was written by me by pasting <a href="https://src.grytoyr.io/kim/kim.grytoyr.io/raw/branch/master/signed/{{ .File.LogicalName }}.txt">the signature</a> into <a href="https://keybase.io/verify">keybase.io/verify</a>.</p>
@@ -40,7 +43,9 @@

{{ template "_internal/disqus.html" . }}

{{ partial "latest-posts.html" . }}
{{ if (ne $.Type "page") }}
{{ partial "latest-posts.html" . }}
{{ end }}
{{ partial "footer.html" . }}
</section>


+ 3
- 2
themes/hugo-cactus-theme/layouts/partials/latest-posts.html View File

@@ -1,12 +1,13 @@
<ul id="post-list" class="archive readmore">
<h3>{{ with .Site.Params.readMore }}{{ . }}{{ else }}Read more{{ end }}</h3>
<h3>{{ with .Site.Params.readMore }}{{ . }}{{ else }}Continue reading{{ end }}</h3>

{{ $pages := where .Site.Pages "Kind" "page" }}
{{ $pages := where $pages "Type" $.Page.Type }}
{{ range first 10 (where $pages "Params.hidden" "ne" "true") }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if and (ne $url "about/") }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "January 2, 2006" }}</aside></a>
</li>
{{ end }}
{{ end }}

+ 1
- 1
themes/hugo-cactus-theme/layouts/partials/nav.html View File

@@ -9,6 +9,6 @@
{{ end }}

{{ if .Site.Params.enableRSS }}
<a class="cta" href="{{ .Site.RSSLink }}">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
<a class="cta" href="{{ .Site.BaseURL }}feeds">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
{{ end }}
</nav>

+ 23
- 5
themes/hugo-cactus-theme/layouts/partials/post-list.html View File

@@ -1,11 +1,29 @@
{{ partial "tabs.html" . }}
<ul id="post-list">
{{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if ne $url "about/" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2, '06" }}</aside></a>
<a href='{{ .Permalink }}'>{{ .Title }} <h2>{{ .Description | markdownify }}</h2></a>
</li>
{{ if eq .Type "links" }}
<li>
<a href='{{ .Params.link }}'><aside class="dates">{{ .Date.Format "Jan 2, '06" }}<br />🔗</aside></a>
<a href='{{ .Params.link }}'>«{{ .Title }}» <h2>{{ .Params.link }}</h2></a>
</li>
{{ else if eq .Type "posts" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2, '06" }}<br />📄</aside></a>
<a href='{{ .Permalink }}'>{{ .Title }} <h2>{{ .Description | markdownify }}</h2></a>
</li>
{{ else if eq .Type "notes" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2, '06" }}<br />📝</aside></a>
<a href='{{ .Permalink }}'>{{ .Title }} <h2>{{ .Description | markdownify }}</h2></a>
</li>
{{ else if eq .Type "diary" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2, '06" }}<br />📘{{ if (.Param "hasImage") "eq" "true" }}📷{{ end }}</aside></a>
<a href='{{ .Permalink }}'>{{ .Title }} <h2>Diary entry.</h2></a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>

+ 7
- 0
themes/hugo-cactus-theme/layouts/partials/tabs.html View File

@@ -0,0 +1,7 @@
<ul id="tabs" class="clearfix">
<li{{ if $.Page.IsHome }} class="active"{{ end }}><a href="/">All</a></li>
<li{{ if eq $.Page.Type "posts" }} class="active"{{ end }}><a href="/posts/">Posts</a></li>
<li{{ if eq $.Page.Type "links" }} class="active"{{ end }}><a href="/links/">Links</a></li>
<li{{ if eq $.Page.Type "notes" }} class="active"{{ end }}><a href="/notes/">Notes</a></li>
<li{{ if eq $.Page.Type "diary" }} class="active"{{ end }}><a href="/diary/">Diary</a></li>
</ul>

+ 24
- 1
themes/hugo-cactus-theme/static/css/style.css View File

@@ -7,6 +7,12 @@ figcaption h4 {
text-align: center;
}

/* Signature */
img.signature {
margin-top: 40px;
width: 150px;
}

/* Clearfix */
.clearfix:after {
content: "";
@@ -94,7 +100,7 @@ h2 {
}

.profile #header {
padding-bottom: 40px;
padding-bottom: 20px;
text-align: center;
position: relative;
}
@@ -386,6 +392,22 @@ img {
width: 48px;
}

/*=========================================
Tabs
=========================================== */
ul#tabs {
text-align: center;
}
ul#tabs li {
display: inline-block;
list-style-type: none;
padding: 10px;
}

ul#tabs li.active a {
color: #666;
}

/*=========================================
Post List
=========================================== */
@@ -421,6 +443,7 @@ Post List
top: 1px;
font: 300 17px/1.8 "Helvetica Neue",helvetica,Arial,sans-serif;
color: #bbb;
text-align: right;
}

#post-list-footer {

Loading…
Cancel
Save