Skip to content

Commit 6561f7d

Browse files
committed
format
1 parent a1099ca commit 6561f7d

5 files changed

Lines changed: 44 additions & 46 deletions

File tree

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<meta charset="utf-8">
2-
<meta name="viewport" content="width=device-width, initial-scale=1">
3-
<meta http-equiv="x-ua-compatible" content="ie=edge">
4-
<link rel="apple-touch-icon" href="apple-touch-icon.png">
5-
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
6-
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" site.Title .Title }}{{ end }}</title>
7-
{{ partialCached "head/css.html" . }}
8-
{{ partialCached "head/js.html" . }}
1+
<meta charset="utf-8">
2+
<meta name="viewport" content="width=device-width, initial-scale=1">
3+
<meta http-equiv="x-ua-compatible" content="ie=edge">
4+
<link rel="apple-touch-icon" href="apple-touch-icon.png">
5+
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
6+
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" site.Title .Title }}{{ end }}</title>
7+
{{- partialCached "head/css.html" . }}
8+
{{- partialCached "head/js.html" . }}
Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
{{ with resources.Get "app.min.sass" }}
2-
{{ $opts := dict "transpiler" "libsass"
3-
"outputStyle" "expanded"
4-
"targetPath" "css/app.min.css" }}
5-
{{ with . | toCSS $opts }}
6-
{{ if hugo.IsDevelopment }}
7-
<link rel="stylesheet" href="{{ .RelPermalink }}">
8-
{{ else }}
9-
{{ with . | minify | fingerprint }}
10-
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
11-
{{ end }}
12-
{{ end }}
13-
{{ end }}
14-
{{ end }}
15-
16-
17-
<link rel="stylesheet" type="text/css" href="/css/vendor/magnific-popup.css">
18-
<!-- Custom CSS -->
19-
<link rel="stylesheet" href="/css/custom.css" />
20-
<link rel="stylesheet" href="/css/vendor/prism.css" />
21-
<link rel="stylesheet" href="/css/vendor/component.css" />
1+
{{- with resources.Get "app.min.sass" }}
2+
{{- $opts := dict "transpiler" "libsass"
3+
"outputStyle" "expanded"
4+
"targetPath" "css/app.min.css" }}
5+
{{- with . | toCSS $opts }}
6+
{{- if hugo.IsDevelopment }}
7+
<link rel="stylesheet" href="{{ .RelPermalink }}">
8+
{{- else }}
9+
{{- with . | minify | fingerprint }}
10+
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
11+
{{- end }}
12+
{{- end }}
13+
{{- end }}
14+
{{- end }}
15+
<link rel="stylesheet" type="text/css" href="/css/vendor/magnific-popup.css">
16+
<!-- Custom CSS -->
17+
<link rel="stylesheet" href="/css/custom.css" />
18+
<link rel="stylesheet" href="/css/vendor/prism.css" />
19+
<link rel="stylesheet" href="/css/vendor/component.css" />

themes/restlet-framework/layouts/_partials/head/js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
}}
77
{{- with . | js.Build $opts }}
88
{{- if hugo.IsDevelopment }}
9-
<script src="{{ .RelPermalink }}"></script>
9+
<script src="{{ .RelPermalink }}"></script>
1010
{{- else }}
1111
{{- with . | fingerprint }}
12-
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
12+
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
1313
{{- end }}
1414
{{- end }}
1515
{{- end }}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<!DOCTYPE html>
22
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
33
<head>
4-
{{ partial "head.html" . }}
4+
{{- partial "head.html" . }}
55
</head>
66
<body class="framework-index">
77
<!--[if lte IE 9]>
88
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please
99
<a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
1010
<![endif]-->
11-
{{ partial "navbarTop.html" . }}
11+
{{- partial "navbarTop.html" . }}
1212
<main id="main" role="main">
13-
{{ partial "header.html" . }}
14-
{{ partial "contentView.html" . }}
13+
{{- partial "header.html" . }}
14+
{{- partial "contentView.html" . }}
1515
</main>
16-
{{ partial "footer.html" . }}
17-
{{ partial "scripts.html" . }}
16+
{{- partial "footer.html" . }}
17+
{{- partial "scripts.html" . }}
1818
</body>
1919
</html>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
33
<head>
4-
{{ partial "head.html" . }}
4+
{{ partial "head.html" . }}
55
</head>
66
<body class="static-nav documentation">
77
<!--[if lte IE 9]>
@@ -10,13 +10,13 @@
1010
<![endif]-->
1111
{{ partial "documentation/navbarTop.html" . }}
1212

13-
<main id="main" role="main">
14-
<div class="documentation-wrapper">
15-
{{ partial "documentation/outerNav.html" . }}
16-
{{ partial "documentation/contentView.html" . }}
17-
</div>
18-
</main>
19-
{{ partial "footer.html" . }}
20-
{{ partial "scripts.html" . }}
13+
<main id="main" role="main">
14+
<div class="documentation-wrapper">
15+
{{ partial "documentation/outerNav.html" . }}
16+
{{ partial "documentation/contentView.html" . }}
17+
</div>
18+
</main>
19+
{{ partial "footer.html" . }}
20+
{{ partial "scripts.html" . }}
2121
</body>
2222
</html>

0 commit comments

Comments
 (0)