Zolaに関する覚え書き

静的サイトジェネレーターZolaに関する覚え書き

画像の管理の仕方

static/imageにある画像は例えば以下のようにアクセス可能

![画像1](/static/image/237-200x300.jpg)

VSCode設定メモ

tasks.json

neocitiesにPushするタスク

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "push to neocities",
            "type": "shell",
            "command": "neocities push public",
            "dependsOn": [
                "zola build"
            ],
            "presentation": {
                "showReuseMessage": false
            }
        },
        {
            "label": "zola build",
            "type": "shell",
            "command": "zola build",
            "presentation": {
                "showReuseMessage": false
            }
        }
    ]
}

settings.json

パスを通してシェルのデフォルトをPowershellに

{
    "terminal.integrated.defaultProfile.windows": "PowerShell",
    "terminal.integrated.env.windows": {
        "PATH":"D:\\path\\to\\zola_folder;${env:PATH}"
    }
}