diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 39da63ce..40324b17 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,9 +51,8 @@ jobs: run: | hugo \ --cacheDir /tmp/hugo/cache \ - --minify - # Don't force a base URL, so relative links work everywhere - # --baseURL "${{ steps.pages.outputs.base_url }}/" + --minify \ + --baseURL "https://www.byjp.me" - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/config.toml b/config.toml index 9d281ae7..729d3d38 100644 --- a/config.toml +++ b/config.toml @@ -4,12 +4,6 @@ theme = "hello-friend-ng" PygmentsCodeFences = true PygmentsStyle = "monokai" -# googleAnalytics = "" -# disqusShortname = "" - -canonifyURLs = true -relativeURLs = true - enableRobotsTXT = true enableGitInfo = true enableEmoji = true diff --git a/themes/hello-friend-ng/layouts/partials/head.html b/themes/hello-friend-ng/layouts/partials/head.html index 8528f0c9..8a10f8cb 100644 --- a/themes/hello-friend-ng/layouts/partials/head.html +++ b/themes/hello-friend-ng/layouts/partials/head.html @@ -4,7 +4,6 @@ - @@ -12,7 +11,6 @@ - {{ block "title" . }} @@ -29,7 +27,7 @@ {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }} -<link rel="stylesheet" href="{{ $style.RelPermalink | absURL }}"> +<link rel="stylesheet" href="{{ $style.RelPermalink }}"> {{ range $val := $.Site.Params.customCSS }} {{ if gt (len $val) 0 }}