From f774d2689d2e3b48ef7b494f3f7f63ba74a66657 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Tue, 9 Apr 2024 19:25:48 +0800 Subject: [PATCH] fix the baseURL --- exampleSiteMultilingual/.gitignore | 2 +- exampleSiteMultilingual/.pre-commit-config.yaml | 11 +++++++++++ exampleSiteMultilingual/hugo.toml | 2 +- exampleSiteMultilingual/netlify.toml | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 exampleSiteMultilingual/.pre-commit-config.yaml diff --git a/exampleSiteMultilingual/.gitignore b/exampleSiteMultilingual/.gitignore index df410c6..21730f3 100644 --- a/exampleSiteMultilingual/.gitignore +++ b/exampleSiteMultilingual/.gitignore @@ -1,3 +1,3 @@ .hugo_build.lock public/ -resources/ \ No newline at end of file +resources/ diff --git a/exampleSiteMultilingual/.pre-commit-config.yaml b/exampleSiteMultilingual/.pre-commit-config.yaml new file mode 100644 index 0000000..3619705 --- /dev/null +++ b/exampleSiteMultilingual/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + # - id: end-of-file-fixer + - id: check-yaml + - id: check-toml + - id: check-added-large-files diff --git a/exampleSiteMultilingual/hugo.toml b/exampleSiteMultilingual/hugo.toml index 3d1041c..cd45a84 100644 --- a/exampleSiteMultilingual/hugo.toml +++ b/exampleSiteMultilingual/hugo.toml @@ -1,4 +1,4 @@ -baseURL = "https://hugo-theme-anubis2.netlify.app/" +baseURL = "/" languageCode = "en-us" defaultContentLanguage = "en" title = "Anubis2" diff --git a/exampleSiteMultilingual/netlify.toml b/exampleSiteMultilingual/netlify.toml index 8b1ea78..d7db734 100644 --- a/exampleSiteMultilingual/netlify.toml +++ b/exampleSiteMultilingual/netlify.toml @@ -5,4 +5,4 @@ command = "hugo --gc --minify" [context.production.environment] HUGO_VERSION = "0.115.4" HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" \ No newline at end of file +HUGO_ENABLEGITINFO = "true"