Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit c0b5fe3

Browse files
authored
Merge pull request #218 from atsign-foundation/fix/compare-base-url-with-full-url
fix: Compare the base url with the full url
2 parents 09bda1f + 7f752f9 commit c0b5fe3

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

config/_default/config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Basic configuration
2-
baseurl: https://atsign.dev/
32
canonifyURLs: true
43
disableAliases: true
54
disableHugoGeneratorInject: true

layouts/docs/codelab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }} {{ $section := .CurrentSection }} {{ $page := .Page }}
22
{{ .Scratch.Set "class" "codelab" }}
33
{{ if eq .CurrentSection.Params.layout "codelab-list" }}
4-
{{ if ne (.Site.BaseURL) "docs.atsign.com" -}}
4+
{{ if ne (.Site.BaseURL) "https://docs.atsign.com" -}}
55
{{ $options := (dict "targetPath" "codelab.css" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
66
{{ $css := resources.Get "scss/codelab.scss" | toCSS $options -}}
77
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}">

layouts/partials/footer/script-footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
{{ $js := $slice | resources.Concat "main.js" -}}
6464

65-
{{ if ne (.Site.BaseURL) "docs.atsign.com" -}}
65+
{{ if ne (.Site.BaseURL) "https://docs.atsign.com" -}}
6666
{{ if .Site.Params.options.bootStrapJs -}}
6767
<script src="{{ $bs.RelPermalink }}" defer></script>
6868
{{ end -}}

layouts/partials/head/script-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ $alertInit := resources.Get "js/alert-init.js" | js.Build | minify -}}
77
<script>{{ $alertInit.Content | safeJS }}</script>
88
{{- end -}}
9-
{{ if eq (.Site.BaseURL) "docs.atsign.com" -}}
9+
{{ if eq (.Site.BaseURL) "https://docs.atsign.com" -}}
1010
{{ $matomo := resources.Get "js/matomo.js" | js.Build | minify -}}
1111
<script>{{ $matomo.Content | safeJS }}</script>
1212
{{ end -}}

layouts/robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
User-agent: *
2-
{{ if eq (.Site.BaseURL) "docs.atsign.com" -}}
2+
{{ if eq (.Site.BaseURL) "https://docs.atsign.com" -}}
33
Allow: /
44
{{ else -}}
55
Disallow: /

layouts_docs/_default/codelab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }} {{ $section := .CurrentSection }} {{ $page := .Page }}
22
{{ .Scratch.Set "class" "codelab" }}
33
{{ if eq .CurrentSection.Params.layout "codelab-list" }}
4-
{{ if ne (.Site.BaseURL) "docs.atsign.com" -}}
4+
{{ if ne (.Site.BaseURL) "https://docs.atsign.com" -}}
55
{{ $options := (dict "targetPath" "codelab.css" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
66
{{ $css := resources.Get "scss/codelab.scss" | toCSS $options -}}
77
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}">

0 commit comments

Comments
 (0)