mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 19:05:41 +01:00
Use proper canonical links
This commit is contained in:
parent
db7f50f33b
commit
e2fc502e89
3 changed files with 3 additions and 12 deletions
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
@ -51,9 +51,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
hugo \
|
hugo \
|
||||||
--cacheDir /tmp/hugo/cache \
|
--cacheDir /tmp/hugo/cache \
|
||||||
--minify
|
--minify \
|
||||||
# Don't force a base URL, so relative links work everywhere
|
--baseURL "https://www.byjp.me"
|
||||||
# --baseURL "${{ steps.pages.outputs.base_url }}/"
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -4,12 +4,6 @@ theme = "hello-friend-ng"
|
||||||
PygmentsCodeFences = true
|
PygmentsCodeFences = true
|
||||||
PygmentsStyle = "monokai"
|
PygmentsStyle = "monokai"
|
||||||
|
|
||||||
# googleAnalytics = ""
|
|
||||||
# disqusShortname = ""
|
|
||||||
|
|
||||||
canonifyURLs = true
|
|
||||||
relativeURLs = true
|
|
||||||
|
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
|
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
|
||||||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" class="p-summary"/>
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" class="p-summary"/>
|
||||||
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
||||||
<meta name="robots" content="noodp" />
|
|
||||||
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
||||||
<link rel="canonical" href="{{ .Permalink }}" class="u-url"/>
|
<link rel="canonical" href="{{ .Permalink }}" class="u-url"/>
|
||||||
|
|
||||||
|
@ -12,7 +11,6 @@
|
||||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
|
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
|
||||||
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
|
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
|
||||||
<link rel="webmention" href="https://webmention.io/www.byjp.me/webmention" />
|
<link rel="webmention" href="https://webmention.io/www.byjp.me/webmention" />
|
||||||
<link rel="microsub" href="https://aperture.p3k.io/microsub/884" />
|
|
||||||
|
|
||||||
{{ block "title" . }}
|
{{ block "title" . }}
|
||||||
<title>
|
<title>
|
||||||
|
@ -29,7 +27,7 @@
|
||||||
|
|
||||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
||||||
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
|
{{ $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 }}
|
{{ range $val := $.Site.Params.customCSS }}
|
||||||
{{ if gt (len $val) 0 }}
|
{{ if gt (len $val) 0 }}
|
||||||
|
|
Loading…
Reference in a new issue