diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4d144d..dd74081 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,6 @@ repos: rev: v2.4.1 hooks: - id: prettier + additional_dependencies: + - prettier@2.4.1 + - prettier-plugin-go-template@0.0.11 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..c99d7d5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "overrides": [ + { + "files": ["*.html"], + "options": { + "parser": "go-template" + } + } + ] +} diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 0967ef4..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/package.json b/package.json index 4df3655..370ed98 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "packageManager": "yarn@3.0.2", "devDependencies": { "eslint": "^7.32.0", - "prettier": "^2.4.1" + "prettier": "^2.4.1", + "prettier-plugin-go-template": "^0.0.11" } } diff --git a/themes/alejandro-angulo/static/css/highlight.css b/themes/alejandro-angulo/assets/css/highlight.css similarity index 100% rename from themes/alejandro-angulo/static/css/highlight.css rename to themes/alejandro-angulo/assets/css/highlight.css diff --git a/themes/alejandro-angulo/static/css/style.css b/themes/alejandro-angulo/assets/css/main.css similarity index 100% rename from themes/alejandro-angulo/static/css/style.css rename to themes/alejandro-angulo/assets/css/main.css diff --git a/themes/alejandro-angulo/static/js/keynav.js b/themes/alejandro-angulo/assets/js/keynav.js similarity index 100% rename from themes/alejandro-angulo/static/js/keynav.js rename to themes/alejandro-angulo/assets/js/keynav.js diff --git a/themes/alejandro-angulo/layouts/partials/footer.html b/themes/alejandro-angulo/layouts/partials/footer.html index 0380a4c..0dbba71 100644 --- a/themes/alejandro-angulo/layouts/partials/footer.html +++ b/themes/alejandro-angulo/layouts/partials/footer.html @@ -1 +1,4 @@ - +{{ $keynav := resources.Get "js/keynav.js" | minify | fingerprint }} diff --git a/themes/alejandro-angulo/layouts/partials/head.html b/themes/alejandro-angulo/layouts/partials/head.html index 978af26..313d4d7 100644 --- a/themes/alejandro-angulo/layouts/partials/head.html +++ b/themes/alejandro-angulo/layouts/partials/head.html @@ -1,10 +1,25 @@
- - - - - - {{ $title := print .Site.Title " | " .Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} -