diff --git a/content/archives/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md b/content/blog/archives/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md similarity index 100% rename from content/archives/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md rename to content/blog/archives/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md diff --git a/content/archives/2021-07-09-cryptography.md b/content/blog/archives/2021-07-09-cryptography.md similarity index 100% rename from content/archives/2021-07-09-cryptography.md rename to content/blog/archives/2021-07-09-cryptography.md diff --git a/content/archives/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md b/content/blog/archives/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md similarity index 100% rename from content/archives/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md rename to content/blog/archives/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md diff --git a/content/archives/2021-08-06-hardware-security.md b/content/blog/archives/2021-08-06-hardware-security.md similarity index 100% rename from content/archives/2021-08-06-hardware-security.md rename to content/blog/archives/2021-08-06-hardware-security.md diff --git a/content/archives/2021-08-06-security-of-iot.md b/content/blog/archives/2021-08-06-security-of-iot.md similarity index 100% rename from content/archives/2021-08-06-security-of-iot.md rename to content/blog/archives/2021-08-06-security-of-iot.md diff --git a/content/archives/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md b/content/blog/archives/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md similarity index 100% rename from content/archives/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md rename to content/blog/archives/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md diff --git a/content/archives/2021-10-23-insaeng-dubeonjjae-silpae.md b/content/blog/archives/2021-10-23-insaeng-dubeonjjae-silpae.md similarity index 100% rename from content/archives/2021-10-23-insaeng-dubeonjjae-silpae.md rename to content/blog/archives/2021-10-23-insaeng-dubeonjjae-silpae.md diff --git a/content/archives/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md b/content/blog/archives/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md similarity index 100% rename from content/archives/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md rename to content/blog/archives/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md diff --git a/content/archives/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md b/content/blog/archives/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md similarity index 100% rename from content/archives/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md rename to content/blog/archives/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md diff --git a/content/archives/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md b/content/blog/archives/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md similarity index 100% rename from content/archives/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md rename to content/blog/archives/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md diff --git a/content/archives/2021-10-30-yangjadeulyi-teuraenjiseuteo.md b/content/blog/archives/2021-10-30-yangjadeulyi-teuraenjiseuteo.md similarity index 100% rename from content/archives/2021-10-30-yangjadeulyi-teuraenjiseuteo.md rename to content/blog/archives/2021-10-30-yangjadeulyi-teuraenjiseuteo.md diff --git a/content/archives/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md b/content/blog/archives/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md similarity index 100% rename from content/archives/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md rename to content/blog/archives/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md diff --git a/content/archives/2023-10-26-vae의-손실-함수.md b/content/blog/archives/2023-10-26-vae의-손실-함수.md similarity index 100% rename from content/archives/2023-10-26-vae의-손실-함수.md rename to content/blog/archives/2023-10-26-vae의-손실-함수.md diff --git a/content/archives/2023-10-28-nuclear-reactor.md b/content/blog/archives/2023-10-28-nuclear-reactor.md similarity index 100% rename from content/archives/2023-10-28-nuclear-reactor.md rename to content/blog/archives/2023-10-28-nuclear-reactor.md diff --git a/content/blog/archives/_index.md b/content/blog/archives/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/blogs/2021-01-28-what-i-wanted-to-do.md b/content/blog/blogs/2021-01-28-what-i-wanted-to-do.md similarity index 100% rename from content/blogs/2021-01-28-what-i-wanted-to-do.md rename to content/blog/blogs/2021-01-28-what-i-wanted-to-do.md diff --git a/content/blogs/2021-06-20-siheomeul-iljuil-apdugo.md b/content/blog/blogs/2021-06-20-siheomeul-iljuil-apdugo.md similarity index 100% rename from content/blogs/2021-06-20-siheomeul-iljuil-apdugo.md rename to content/blog/blogs/2021-06-20-siheomeul-iljuil-apdugo.md diff --git a/content/blogs/2021-09-11-what-i-want-to-do.md b/content/blog/blogs/2021-09-11-what-i-want-to-do.md similarity index 100% rename from content/blogs/2021-09-11-what-i-want-to-do.md rename to content/blog/blogs/2021-09-11-what-i-want-to-do.md diff --git a/content/blogs/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md b/content/blog/blogs/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md similarity index 100% rename from content/blogs/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md rename to content/blog/blogs/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md diff --git a/content/blogs/2021-10-23-datacenter.md b/content/blog/blogs/2021-10-23-datacenter.md similarity index 100% rename from content/blogs/2021-10-23-datacenter.md rename to content/blog/blogs/2021-10-23-datacenter.md diff --git a/content/blogs/2021-10-23-gaeinjeongbo-privacy.md b/content/blog/blogs/2021-10-23-gaeinjeongbo-privacy.md similarity index 100% rename from content/blogs/2021-10-23-gaeinjeongbo-privacy.md rename to content/blog/blogs/2021-10-23-gaeinjeongbo-privacy.md diff --git a/content/blogs/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md b/content/blog/blogs/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md similarity index 100% rename from content/blogs/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md rename to content/blog/blogs/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md diff --git a/content/blogs/2021-10-23-how-i-wanted-to-do.md b/content/blog/blogs/2021-10-23-how-i-wanted-to-do.md similarity index 100% rename from content/blogs/2021-10-23-how-i-wanted-to-do.md rename to content/blog/blogs/2021-10-23-how-i-wanted-to-do.md diff --git a/content/blogs/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md b/content/blog/blogs/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md similarity index 100% rename from content/blogs/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md rename to content/blog/blogs/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md diff --git a/content/blogs/2021-12-01-daehag-ibsiga-handangye-namassda.md b/content/blog/blogs/2021-12-01-daehag-ibsiga-handangye-namassda.md similarity index 100% rename from content/blogs/2021-12-01-daehag-ibsiga-handangye-namassda.md rename to content/blog/blogs/2021-12-01-daehag-ibsiga-handangye-namassda.md diff --git a/content/blogs/2021-12-21-godeunghaggyo-dolabogi.md b/content/blog/blogs/2021-12-21-godeunghaggyo-dolabogi.md similarity index 100% rename from content/blogs/2021-12-21-godeunghaggyo-dolabogi.md rename to content/blog/blogs/2021-12-21-godeunghaggyo-dolabogi.md diff --git a/content/blogs/2022-04-14-gyoyug-silpae.md b/content/blog/blogs/2022-04-14-gyoyug-silpae.md similarity index 100% rename from content/blogs/2022-04-14-gyoyug-silpae.md rename to content/blog/blogs/2022-04-14-gyoyug-silpae.md diff --git a/content/blogs/2023-05-06-about-usb-c-and-dp-alt-mode.md b/content/blog/blogs/2023-05-06-about-usb-c-and-dp-alt-mode.md similarity index 100% rename from content/blogs/2023-05-06-about-usb-c-and-dp-alt-mode.md rename to content/blog/blogs/2023-05-06-about-usb-c-and-dp-alt-mode.md diff --git a/content/blogs/2023-10-23-git-mirror-self-hosting.md b/content/blog/blogs/2023-10-23-git-mirror-self-hosting.md similarity index 100% rename from content/blogs/2023-10-23-git-mirror-self-hosting.md rename to content/blog/blogs/2023-10-23-git-mirror-self-hosting.md diff --git a/content/blogs/2024-05-19-May19.md b/content/blog/blogs/2024-05-19-May19.md similarity index 100% rename from content/blogs/2024-05-19-May19.md rename to content/blog/blogs/2024-05-19-May19.md diff --git a/content/blog/blogs/_index.md b/content/blog/blogs/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/posts/1970-01-01-ABI.md b/content/blog/posts/1970-01-01-ABI.md similarity index 100% rename from content/posts/1970-01-01-ABI.md rename to content/blog/posts/1970-01-01-ABI.md diff --git a/content/posts/1970-01-01-DBus.md b/content/blog/posts/1970-01-01-DBus.md similarity index 100% rename from content/posts/1970-01-01-DBus.md rename to content/blog/posts/1970-01-01-DBus.md diff --git a/content/posts/1970-01-01-Drivers.md b/content/blog/posts/1970-01-01-Drivers.md similarity index 100% rename from content/posts/1970-01-01-Drivers.md rename to content/blog/posts/1970-01-01-Drivers.md diff --git a/content/posts/1970-01-01-PHY.md b/content/blog/posts/1970-01-01-PHY.md similarity index 100% rename from content/posts/1970-01-01-PHY.md rename to content/blog/posts/1970-01-01-PHY.md diff --git a/content/posts/1970-01-01-Sandboxing.md b/content/blog/posts/1970-01-01-Sandboxing.md similarity index 100% rename from content/posts/1970-01-01-Sandboxing.md rename to content/blog/posts/1970-01-01-Sandboxing.md diff --git a/content/posts/1970-01-01-TIL.md b/content/blog/posts/1970-01-01-TIL.md similarity index 100% rename from content/posts/1970-01-01-TIL.md rename to content/blog/posts/1970-01-01-TIL.md diff --git a/content/posts/2023-11-11-Linux-Kernel-sys_fork.md b/content/blog/posts/2023-11-11-Linux-Kernel-sys_fork.md similarity index 100% rename from content/posts/2023-11-11-Linux-Kernel-sys_fork.md rename to content/blog/posts/2023-11-11-Linux-Kernel-sys_fork.md diff --git a/content/posts/2023-11-22-kernel-bootloader.md b/content/blog/posts/2023-11-22-kernel-bootloader.md similarity index 100% rename from content/posts/2023-11-22-kernel-bootloader.md rename to content/blog/posts/2023-11-22-kernel-bootloader.md diff --git a/content/posts/2023-11-26-kernel-creation-of-new-process.md b/content/blog/posts/2023-11-26-kernel-creation-of-new-process.md similarity index 100% rename from content/posts/2023-11-26-kernel-creation-of-new-process.md rename to content/blog/posts/2023-11-26-kernel-creation-of-new-process.md diff --git a/content/posts/2023-11-26-kernel-pty-and-tty.md b/content/blog/posts/2023-11-26-kernel-pty-and-tty.md similarity index 100% rename from content/posts/2023-11-26-kernel-pty-and-tty.md rename to content/blog/posts/2023-11-26-kernel-pty-and-tty.md diff --git a/content/posts/2024-03-26-playing-with-snu-app.md b/content/blog/posts/2024-03-26-playing-with-snu-app.md similarity index 100% rename from content/posts/2024-03-26-playing-with-snu-app.md rename to content/blog/posts/2024-03-26-playing-with-snu-app.md diff --git a/content/posts/2024-07-18-installing-openwrt-on-iptime-ax2004m.md b/content/blog/posts/2024-07-18-installing-openwrt-on-iptime-ax2004m.md similarity index 100% rename from content/posts/2024-07-18-installing-openwrt-on-iptime-ax2004m.md rename to content/blog/posts/2024-07-18-installing-openwrt-on-iptime-ax2004m.md diff --git a/content/posts/2024-07-18-operating-personal-as.md b/content/blog/posts/2024-07-18-operating-personal-as.md similarity index 100% rename from content/posts/2024-07-18-operating-personal-as.md rename to content/blog/posts/2024-07-18-operating-personal-as.md diff --git a/content/blog/posts/_index.md b/content/blog/posts/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/themes/plain/layouts/_default/baseof.html b/themes/plain/layouts/_default/baseof.html index 59ac914..f2e2eaf 100644 --- a/themes/plain/layouts/_default/baseof.html +++ b/themes/plain/layouts/_default/baseof.html @@ -31,20 +31,44 @@ - - {{ if .IsHome }} -
- -

{{ .Site.Title }}

-
-
- {{ end }} -
- {{- block "main" . }}{{- end }} -
- - + +{{ if .IsHome }} + {{- partial "home.html" . -}} +{{ else }} + {{ if eq .Page.Path "blog" }} +
+ +

{{ .Site.Title }}

+
+
+ {{ else if not .Page.IsPage }} +
+ {{ $path := .Page.File.Dir }} + {{ $segments := split $path "/" }} + + {{ $currentPath := "" }} + {{ range $index, $element := $segments }} + {{ if ne $element "" }} + {{ if $index }} + / + {{ end }} + {{ $currentPath = printf "%s/%s" $currentPath $element }} + + {{ $element }} + + {{ end }} + {{ end }} + / + +
+ {{ end }} +
+ {{- block "main" . }}{{- end }} +
+ +{{ end }} + diff --git a/themes/plain/layouts/_default/list.html b/themes/plain/layouts/_default/list.html index 92faba5..9a01557 100644 --- a/themes/plain/layouts/_default/list.html +++ b/themes/plain/layouts/_default/list.html @@ -1,27 +1,20 @@ {{ define "main" }} - - {{- $pages := union .RegularPages .Sections }} - - {{- if .IsHome }} - {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} - {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} - {{- end }} - - - -{{- if .IsHome }} - - -{{- end }} + + {{- $pages := union .RegularPages .Sections }} + {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} + {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} + +
©morgan.kr
Toggle Darkmode
diff --git a/themes/plain/layouts/partials/home.html b/themes/plain/layouts/partials/home.html new file mode 100644 index 0000000..e2c605f --- /dev/null +++ b/themes/plain/layouts/partials/home.html @@ -0,0 +1,33 @@ + + +
+
+

Morgan J.

+

Average Linux user

+ + + +
+ PGP + Git + Blog + Net +
+
+
\ No newline at end of file diff --git a/themes/plain/layouts/partials/style.html b/themes/plain/layouts/partials/style.html index 032665d..6c67e2f 100644 --- a/themes/plain/layouts/partials/style.html +++ b/themes/plain/layouts/partials/style.html @@ -76,6 +76,21 @@ font-size: 14px; } + .subhead { + margin: 10px 0; + padding-bottom: 12px; + padding-top: 18px; + color: var(--title-color); + font-size: 18px; + font-weight: bold; + text-decoration: none; + } + + .subhead a { + color: inherit; + text-decoration: inherit; + } + .title { color: var(--title-color); text-decoration: none;