95 lines
1.9 KiB
Markdown
95 lines
1.9 KiB
Markdown
---
|
|
type: "topic"
|
|
assigned: ""
|
|
created: "2024-01-06T01:25:36.062Z"
|
|
updated: "2024-01-06T01:25:36.062Z"
|
|
---
|
|
|
|
# Hugo
|
|
|
|
## Link
|
|
|
|
- [gohugo](https://gohugo.io)
|
|
|
|
## Install
|
|
|
|
```PowerShell
|
|
winget install Hugo.Hugo.Extended
|
|
```
|
|
|
|
## Run
|
|
|
|
```bash
|
|
l:
|
|
cd git
|
|
hugo new site quickstart
|
|
cd quickstart
|
|
git init
|
|
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
|
echo "theme = 'ananke'" >> hugo.toml
|
|
code-insiders .
|
|
hugo server
|
|
```
|
|
|
|
## Work
|
|
|
|
```bash
|
|
hugo new posts/my-first-post.md
|
|
hugo server --buildDrafts
|
|
hugo server -D
|
|
```
|
|
|
|
## Themes
|
|
|
|
- [hugo-blog-awesome](https://github.com/hugo-sid/hugo-blog-awesome.git)
|
|
|
|
```bash
|
|
git submodule add https://github.com/hugo-sid/hugo-blog-awesome.git themes/hugo-blog-awesome
|
|
```
|
|
|
|
## Support
|
|
|
|
- [digital-garden-jekyll-template](https://github.com/maximevaillancourt/digital-garden-jekyll-template.git)
|
|
- [How to Set Up a Digital Garden With Obsidian For Free](https://www.youtube.com/watch?v=kg-9n_A4Tf0&list=WL&index=53&t=40s)
|
|
|
|
```bash
|
|
l:
|
|
cd git
|
|
git clone https://github.com/maximevaillancourt/digital-garden-jekyll-template.git
|
|
cd digital-garden-jekyll-template
|
|
```
|
|
|
|
- [Obsidian Export](https://github.com/zoni/obsidian-export)
|
|
|
|
- [Obsidian Export Windows](https://github.com/zoni/obsidian-export/releases/download/v22.11.0/obsidian-export_Windows-x64_64.exe)
|
|
|
|
```bash
|
|
mkdir "L:\Git\quartz\content\cyberpunk-red"
|
|
"C:\Users\phares\AppData\Local\IFXApps\obsidian-export\obsidian-export_Windows-x64_64.exe" "D:\Documents\Notes\Cyberpunk-Red\TTRPG\Cyberpunk Red" "L:\Git\quartz\content\cyberpunk-red"
|
|
```
|
|
|
|
```html
|
|
{{if $.Site.Data.config.enableTable}}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{{ range $k, $v := .Params }}
|
|
<td>
|
|
{{ $k }}
|
|
</td>
|
|
{{ end }}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
{{ range $k, $v := .Params }}
|
|
<td>
|
|
{{ $v }}
|
|
</td>
|
|
{{ end }}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{{end}}
|
|
```
|