This repository was archived by the owner on Feb 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-5
lines changed Expand file tree Collapse file tree 6 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ ProductionURLs :
2
+ - ' https://docs.atsign.com/'
3
+
1
4
# Theme Color for Chrome Browser
2
5
3
6
themeColor : ' #fff'
Original file line number Diff line number Diff line change 1
1
{{ define "main" }} {{ $section := .CurrentSection }} {{ $page := .Page }}
2
2
{{ .Scratch.Set "class" "codelab" }}
3
3
{{ if eq .CurrentSection.Params.layout "codelab-list" }}
4
- {{ if ne ( .Site.BaseURL) "https://docs.atsign.com" -}}
4
+ {{ if not (in .Site.Params.ProductionURLs (string .Site.BaseURL)) -}}
5
5
{{ $options := (dict "targetPath" "codelab.css" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
6
6
{{ $css := resources.Get "scss/codelab.scss" | toCSS $options -}}
7
7
< link rel ="stylesheet " href ="{{ $css.Permalink | relURL }} ">
Original file line number Diff line number Diff line change 62
62
63
63
{{ $js := $slice | resources.Concat "main.js" -}}
64
64
65
- {{ if ne ( .Site.BaseURL) "https://docs.atsign.com" -}}
65
+ {{ if not (in .Site.Params.ProductionURLs (string .Site.BaseURL)) -}}
66
66
{{ if .Site.Params.options.bootStrapJs -}}
67
67
< script src ="{{ $bs.RelPermalink }} " defer > </ script >
68
68
{{ end -}}
Original file line number Diff line number Diff line change 6
6
{{ $alertInit := resources.Get "js/alert-init.js" | js.Build | minify -}}
7
7
< script > { { $alertInit . Content | safeJS } } </ script >
8
8
{{- end -}}
9
- {{ if eq ( .Site.BaseURL) "https://docs.atsign.com" -}}
9
+ {{ if in .Site.Params.ProductionURLs (string .Site.BaseURL) -}}
10
10
{{ $matomo := resources.Get "js/matomo.js" | js.Build | minify -}}
11
11
< script > { { $matomo . Content | safeJS } } </ script >
12
12
{{ end -}}
Original file line number Diff line number Diff line change 1
1
User-agent: *
2
- {{ if eq ( .Site .BaseURL ) " https://docs.atsign.com" -}}
2
+ {{ if in .Site .Params . ProductionURLs ( string . Site . BaseURL ) - }}
3
3
Allow: /
4
4
{{ else - }}
5
5
Disallow: /
Original file line number Diff line number Diff line change 1
1
{{ define "main" }} {{ $section := .CurrentSection }} {{ $page := .Page }}
2
2
{{ .Scratch.Set "class" "codelab" }}
3
3
{{ if eq .CurrentSection.Params.layout "codelab-list" }}
4
- {{ if ne ( .Site.BaseURL) "https://docs.atsign.com" -}}
4
+ {{ if not (in .Site.Params.ProductionURLs (string .Site.BaseURL)) -}}
5
5
{{ $options := (dict "targetPath" "codelab.css" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
6
6
{{ $css := resources.Get "scss/codelab.scss" | toCSS $options -}}
7
7
< link rel ="stylesheet " href ="{{ $css.Permalink | relURL }} ">
You can’t perform that action at this time.
0 commit comments