From 36dcc6805171d59f0105d985aee1ff7dbfaa5313 Mon Sep 17 00:00:00 2001 From: Seasawher Date: Sun, 22 Sep 2024 05:24:55 +0900 Subject: [PATCH] =?UTF-8?q?handlebars=20=E3=81=AE=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=9E=E3=83=83=E3=83=88=E3=82=92=E8=A1=8C=E3=81=86?= =?UTF-8?q?=20Fixes=20#858?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 3 +- .vscode/settings.json | 6 ++ theme/head.hbs | 24 +++-- theme/index.hbs | 182 +++++++++++++++++--------------- 4 files changed, 125 insertions(+), 90 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1e268c0f..909c3b24 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -24,7 +24,8 @@ "juggernautjp.less-toml", "usernamehw.errorlens", "piousdeer.horizon-theme-vscode-default-token-colors", - "EditorConfig.EditorConfig" + "EditorConfig.EditorConfig", + "mfeckies.handlebars-formatter" ] } } diff --git a/.vscode/settings.json b/.vscode/settings.json index e5587c30..23a61bff 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,12 @@ "editor.rulers": [80], }, + // Handlebars の設定 + "[handlebars]": { + "editor.defaultFormatter": "mfeckies.handlebars-formatter", + "editor.formatOnSave": true, + }, + // material icon theme の設定 "workbench.iconTheme": "material-icon-theme", "material-icon-theme.files.associations": { diff --git a/theme/head.hbs b/theme/head.hbs index 491757d5..0e200dde 100644 --- a/theme/head.hbs +++ b/theme/head.hbs @@ -1,10 +1,22 @@ -{{!-- フォントの設定 --}} - - - +{{! フォントの設定 }} + + + -{{!-- Google Analytics --}} - +{{! Google Analytics }} + - {{/if}} - - + + + + {{ title }} + {{#if is_print }} + + {{/if}} + {{#if base_url}} + + {{/if}} + + + + {{> head}} + + + + + + {{#if favicon_svg}} + + {{/if}} + {{#if favicon_png}} + + {{/if}} + + + + {{#if print_enable}} + + {{/if}} + + + + {{#if copy_fonts}} + + {{/if}} + + + + + + + + {{#each additional_css}} + + {{/each}} + + {{#if mathjax_support}} + + + {{/if}} + + +
@@ -218,15 +229,17 @@
- + +