This commit is contained in:
falsycat 2023-02-24 12:03:46 +09:00
parent d91a34577e
commit 1d0a63ba5b
7 changed files with 36 additions and 4 deletions

View File

@ -32,6 +32,28 @@ tags: [note, info-tech, web]
- まだ[qemu](note/info-tech/qemu.md)上のマシンへのOSインストール作業ができていないのでまた今度試す
- なるべくホストマシンは汚したくない(切実)
## カスタマイズ
### Recent Notesの表示数を変更する
1. `layouts/partials/recent.html`の`first 3 $notes`を変更する
### トップページにグローバルグラフを表示する
1. `data/graphConfig.yaml`の`enableGlobalGraph`を`true`にする
### 記事にRelated Notesを表示する
1. `layouts/partials/recent.html`を作成
2. `layouts/_default/single.html`の好きな位置に`{{partial "related.html" .}}`を挿入
3. `i18n/en.toml`に`related_notes`の翻訳を追加
layouts/partials/recent.html
```html
<div class="content-list">
<h2>{{ i18n "related_notes" }}</h2>
{{$notes := .Site.RegularPages.Related .}}
{{partial "page-list.html" (first 3 $notes)}}
</div>
```
## 所感
- 扱いやすい[Obsidian](note/info-tech/obsidian.md)で執筆して,[Quartz](https://github.com/jackyzha0/quartz)でいい感じに公開ができた
- 執筆のためにリポジトリをcloneしなければならないため記事数が増えた時の複数PCの同期コストが問題になりそう

View File

@ -1,9 +1,10 @@
---
title: qemu
title: qemuについて
tags: [note, info-tech, tool, virtualization]
---
- 個人的にqemuはコマンドラインベースのVirtualBoxと思っている
## 概要
- コマンドラインベースのVirtualBoxと思っている
- 今のところM2チップのMacbook ProでLinuxを使うための最善手
- M1/M2向けVirtualBoxはまだ開発者プレビューしかなくまともに使えなかった

View File

@ -1,7 +1,7 @@
# if true, a Global Graph will be shown on home page with full width, no backlink.
# A different set of Local Graphs will be shown on sub pages.
# if false, Local Graph will be default on every page as usual
enableGlobalGraph: false
enableGlobalGraph: true
### Local Graph ###

View File

@ -52,6 +52,9 @@ other = "Icon to open search"
[recent_notes]
other = "Recent Notes"
[related_notes]
other = "Related Notes"
[first_3_notes]
other = "first 3 {{ .notes }}"

View File

@ -27,6 +27,7 @@
</ul>
{{partial "toc.html" .}}
{{partial "textprocessing.html" . }}
{{partial "related.html" .}}
</article>
{{partial "footer.html" .}}
</div>

View File

@ -7,6 +7,6 @@
https://gohugo.io/content-management/related/
-->
{{$notes := .Site.RegularPages.ByLastmod.Reverse}}
{{partial "page-list.html" (first 3 $notes)}}
{{partial "page-list.html" (first 10 $notes)}}
</div>

View File

@ -0,0 +1,5 @@
<div class="content-list">
<h2>{{ i18n "related_notes" }}</h2>
{{$notes := .Site.RegularPages.Related .}}
{{partial "page-list.html" (first 3 $notes)}}
</div>