Added post and theme

pull/1/head
Darshil Chanpura 2021-06-28 21:59:44 +05:30
parent 17b301e057
commit a9de2628ad
10 changed files with 92 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "themes/etch"]
path = themes/etch
url = https://github.com/LukasJoswiak/etch.git

View File

@ -1,4 +1,4 @@
MIT License Copyright (c) <year> <copyright holders>
MIT License Copyright (c) 2021 Darshil Chanpura <dtchanpura@protonmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

39
config.toml Normal file
View File

@ -0,0 +1,39 @@
baseURL = "https://til.dcpri.me/"
languageCode = "en-us"
title = "Today I learned"
theme = "etch"
enableInlineShortcodes = true
pygmentsCodeFences = true
pygmentsUseClasses = true
[params]
description = "today I learned posts"
copyright = "Copyright © 2021 Darshil Chanpura"
dark = "auto"
highlight = true
mainSections = ["posts"]
[menu]
[[menu.main]]
identifier = "posts"
name = "Posts"
title = "Posts"
url = "/"
weight = 10
[[menu.main]]
identifier = "about"
name = "About"
title = "About"
url = "/about/"
weight = 20
[permalinks]
posts = "/posts/:title/"
[markup.goldmark.renderer]
# Allow HTML in Markdown
# unsafe = true
[markup.tableOfContents]
ordered = true

3
content/_index.md Normal file
View File

@ -0,0 +1,3 @@
---
title: "Home"
---

7
content/about/index.md Normal file
View File

@ -0,0 +1,7 @@
---
title: "About"
date: 2021-06-27T14:01:56+05:30
draft: false
---
This site will usually have what I have I learned over the years.

31
content/posts/kernel.md Normal file
View File

@ -0,0 +1,31 @@
---
title: "I baked my own Kernel"
date: 2021-06-27T13:13:41+05:30
draft: false
tags: ["til"]
---
From the time I started using Linux, I had a wish to build my own kernel, making sure that there's no dependency on package repository to add or remove a module.
My main goal was to do it for Raspberry Pi and make have minimal required module built and enabled.
I came across a [gokrazy](https://gokrazy.org) project by [Michael Stapelberg](https://github.com/stapelberg). The main purpose of that project was to make sure the Go apps are installed as binary and can be supervised and monitored via Web Page. I tried to use a lot of things there but I had some problems and not a lot of time on hand, but the [kernel](https://github.com/gokrazy/kernel) package was amazing, it was an automated build tool that gets latest kernel and builds it.
I tried to get some parts of it from there and changed few parameters here and there and got my own kernel with few tweaks like support for btrfs, thermal for Pi4, etc. That is how it looks.
```sh
# before
$ cat /proc/version
Linux version 5.11.4-1-ARCH (builduser@leming) (aarch64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Sun Mar 7 23:46:10 UTC 2021
# after
$ cat /proc/version
Linux version 5.12.13-v1-dcprime (gokr-build@lt01) (aarch64-linux-gnu-gcc (Debian 6.3.0-18) 6.3.0 20170516, GNU ld (GNU Binutils for Debian) 2.28) #1 SMP PREEMPT Sat Jun 26 20:13:55 UTC 2021
```
As it can be seen from the versions above, the package has not been updated in the Arch Repository from about 4 months, so getting a newer kernel would have been difficult or delayed any way.
The installation as of now is like a workaround, creating the image is done, copying it is also working except the drivers and other stuff.
The latest kernel image is available from https://kernel.dcpri.me

View File

@ -1,8 +0,0 @@
<html>
<head>
<title>Today I Learned</title>
</head>
<body>
<h1>Today I Learned</h1>
</body>
</html>

1
themes/etch Submodule

@ -0,0 +1 @@
Subproject commit b2941c2fcf93031c5ca8d1bf4e9c781d321c21f7