File tree Expand file tree Collapse file tree 13 files changed +22
-20
lines changed Expand file tree Collapse file tree 13 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ file_template: ":filename:"
157
157
build :
158
158
preview_env :
159
159
- HUGO_ENV=staging
160
- - HUGO_VERSION=0.82.0
160
+ - HUGO_VERSION=0.132.1
161
161
preview_output_directory : public
162
162
preview_docker_image : forestryio/hugo:latest
163
163
mount_path : " /srv"
164
164
working_dir : " /srv"
165
165
instant_preview_command : hugo server --renderToDisk -d public
166
- version : 0.82.0
166
+ version : 0.132.1
Original file line number Diff line number Diff line change 28
28
- name : Setup Hugo
29
29
uses : peaceiris/actions-hugo@v2
30
30
with :
31
- hugo-version : " 0.82.0 "
31
+ hugo-version : " 0.132.1 "
32
32
extended : true
33
33
- name : Build Site
34
34
run : |
Original file line number Diff line number Diff line change 31
31
- name : Setup Hugo
32
32
uses : peaceiris/actions-hugo@v2
33
33
with :
34
- hugo-version : " 0.82.0 "
34
+ hugo-version : " 0.132.1 "
35
35
extended : true
36
36
- name : Build Site
37
37
run : |
Original file line number Diff line number Diff line change 51
51
* @return {boolean } true if mobile, false if desktop
52
52
*/
53
53
block . isMobile = function ( ) {
54
- var mobileDesktopBreakpoint = { { - . Site . Params . mobileDesktopBreakpoint - } } || 700 ;
54
+ var mobileDesktopBreakpoint = { { - . Params . mobileDesktopBreakpoint - } } || 700 ;
55
55
var winWidth = window . innerWidth || document . documentElement . clientWidth ;
56
56
if ( winWidth < mobileDesktopBreakpoint ) {
57
57
return true
Original file line number Diff line number Diff line change 4
4
// execute all SCSS files as template, so that scss files can contain hugo
5
5
// templating code if needed. * SITE IS PASSED AS THE CONTEXT *
6
6
7
- {{ $site := .Site }}
7
+ {{ $page := . }}
8
8
9
9
// ==== IMPORT ALL ASSET SCSS ====
10
10
// Use a slice of file names instead of ranging through the directory because
14
14
{{ $ext := " .scss" }}
15
15
{{ range $name := $scssFiles }}
16
16
{{ $assetPath := path.Join $scssAssetDir (print $name $ext ) }}
17
- {{ $asset := resources.Get $assetPath | resources.ExecuteAsTemplate (print $name " .scss" ) $.Site }}
17
+ {{ $asset := resources.Get $assetPath | resources.ExecuteAsTemplate (print $name " .scss" ) $page .Site }}
18
18
{{ $asset .Content | safe CSS }}
19
19
{{ end }}
20
20
25
25
// If the file is an .scss file, import it
26
26
{{ if or (strings .HasSuffix .Name "scss ") (strings .HasSuffix .Name "css ") }}
27
27
{{ $blockscss := path.Join $librariesdir .Name }}
28
- {{ $cssResource := readFile $blockscss | resources.FromString (print .Name " .scss" ) | resources.ExecuteAsTemplate (print .Name " 2.scss" ) $site }}
28
+ {{ $cssResource := readFile $blockscss | resources.FromString (print .Name " .scss" ) | resources.ExecuteAsTemplate (print .Name " 2.scss" ) $page .Site }}
29
29
{{ $cssResource .Content | safe CSS }}
30
30
{{ end }}
31
31
{{ end }}
44
44
// If the file is an .scss file, import it
45
45
{{ if (strings .HasSuffix .Name "scss ") }}
46
46
{{ $blockscss := path.Join $blocksubdir .Name }}
47
- {{ $cssResource := readFile $blockscss | resources.FromString (print .Name " .scss" ) | resources.ExecuteAsTemplate (print .Name " 2.scss" ) $site }}
47
+ {{ $cssResource := readFile $blockscss | resources.FromString (print .Name " .scss" ) | resources.ExecuteAsTemplate (print .Name " 2.scss" ) $page .Site }}
48
48
{{ $cssResource .Content | safe CSS }}
49
49
{{ end }}
50
50
{{ end }}
Original file line number Diff line number Diff line change 1
1
// The font directory relative to the location of the compiled CSS file
2
- {{- $site := .Site - }}
2
+ {{- $site := . - }}
3
3
4
4
{{- $fontsDir := $site .Params.fontsDirRelCss | default " ../fonts/" - }}
5
5
Original file line number Diff line number Diff line change 64
64
//
65
65
// Product theme colors
66
66
// ==========================================================================
67
- {{ $services := where $.Site .Pages " Type" " services" }}
67
+ {{ $services := where .Pages " Type" " services" }}
68
68
{{ $services := where $services " Params.service_color" " !=" nil }}
69
69
{{ range $service := $services }}
70
70
{{ $color := $service .Params.service_color }};
Original file line number Diff line number Diff line change 1
1
// ==== GLOBAL SPACING VARIABLES ====
2
2
// Screen width at which to switch from mobile view to desktop view
3
- $breakpoint : {{ .Site. Params.mobileDesktopBreakpoint }}px;
3
+ $breakpoint : {{ .Params.mobileDesktopBreakpoint }}px;
4
4
// Overwrite the responsive font size default (used by responsive-font-size.scss)
5
5
$rfs-breakpoint : $breakpoint ;
6
6
$default-border-radius : .25rem ;
Original file line number Diff line number Diff line change 55
55
<!-- Get the bundled javascript resources -->
56
56
{{- $js := resources.Get "js/main.js" | resources.ExecuteAsTemplate "main.js" . -}}
57
57
{{/* TODO: minifying the JS results in empty JS since update from 0.74.3 to 0.82.0. Do not minify for now. */}}
58
- {{/* {{- if not $page.Site .IsServer -}} */}}
58
+ {{/* {{- if not hugo .IsServer -}} */}}
59
59
{{/* {{- $js = $js | resources.Minify -}} */}}
60
60
{{/* {{- end -}} */}}
61
61
{{- $version := now.Format "2006-01-02_15.04.05_-0700" -}}
Original file line number Diff line number Diff line change 3
3
var homepageHeader = document . getElementById ( "homepage_header" ) ;
4
4
if ( homepageHeader ) {
5
5
6
- { { - $homepage := . Site . GetPage "/_index.md" - } }
6
+ { { - $homepage := . GetPage "/_index.md" - } }
7
7
{ { - $headerImages := $homepage . Params . header . images - } }
8
8
{ { - $headerImagePaths := slice - } }
9
9
{ { - range $headerImages - } }
You can’t perform that action at this time.
0 commit comments