File tree Expand file tree Collapse file tree 8 files changed +37
-3
lines changed
Expand file tree Collapse file tree 8 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ id = "G-HX135VWX9B"
6767languageName = " English"
6868# Weight used for sorting.
6969weight = 1
70+ direction = " ltr"
7071[languages .en .params ]
7172title = " Layer5"
7273description = " Product Documentation"
Original file line number Diff line number Diff line change 11<!doctype html>
2- < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " class ="no-js ">
2+ < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " dir =" {{ .Site.Language.Direction }} " class ="no-js ">
33 < head >
44 {{ partial "head.html" . }}
55 </ head >
Original file line number Diff line number Diff line change 33 itemscope
44 itemtype ="http://schema.org/WebPage "
55 lang ="{{ .Site.Language.Lang }} "
6+ dir ="{{ .Site.Language.Direction }} "
67 class ="no-js "
78>
89 < head >
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " class ="no-js ">
2+ < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " dir =" {{ .Site.Language.Direction }} " class ="no-js ">
33
44< head >
55 {{ partial "head.html" . }}
Original file line number Diff line number Diff line change 1+ {{ $scssMain := "scss/main.scss" -}}
2+ {{ $css := resources.Get $scssMain
3+ | toCSS (dict "enableSourceMap" (not hugo.IsProduction)) -}}
4+
5+ {{/* NOTE: we only apply `postCSS` in production or for RTL languages. This
6+ makes it snappier to develop in Chrome, but it may look sub-optimal in other
7+ browsers. */ -}}
8+
9+ {{ if eq .Site.Language.Direction "rtl" -}}
10+ {{ $css = $css
11+ | postCSS (dict "use" "autoprefixer rtlcss" "noMap" true)
12+ | resources.Copy (replace $scssMain "." ".rtl.") -}}
13+ {{ else if hugo.IsProduction -}}
14+ {{ $css = $css | postCSS -}}
15+ {{ end -}}
16+
17+ {{ if hugo.IsProduction -}}
18+ {{ $css = $css | minify | fingerprint -}}
19+ < link rel ="preload " href ="{{ $css.RelPermalink }} " as ="style " integrity ="{{ $css.Data.Integrity }} " crossorigin ="anonymous ">
20+ {{ end -}}
21+
22+ {{ with $css -}}
23+ < link href ="{{ .RelPermalink }} " rel ="stylesheet "
24+ {{- with .Data.Integrity }} integrity ="{{ . }} " crossorigin ="anonymous "{{ end -}}
25+ >
26+ {{ else -}}
27+ {{ errorf "Resource not found or error building CSS: %s" $scssMain -}}
28+ {{ end -}}
29+
30+ {{- /**/ -}}
Original file line number Diff line number Diff line change 33 itemscope
44 itemtype ="http://schema.org/WebPage "
55 lang ="{{ .Site.Language.Lang }} "
6+ dir ="{{ .Site.Language.Direction }} "
67 class ="no-js "
78>
89 < head >
Original file line number Diff line number Diff line change 33 itemscope
44 itemtype ="http://schema.org/WebPage "
55 lang ="{{ .Site.Language.Lang }} "
6+ dir ="{{ .Site.Language.Direction }} "
67 class ="no-js "
78>
89 < head >
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " class ="no-js ">
2+ < html itemscope itemtype ="http://schema.org/WebPage " lang ="{{ .Site.Language.Lang }} " dir =" {{ .Site.Language.Direction }} " class ="no-js ">
33
44< head >
55 {{ partial "head.html" . }}
You can’t perform that action at this time.
0 commit comments