Skip to content

Commit 06eb4e4

Browse files
committed
Make html indentation consistent
1 parent 8a27a7c commit 06eb4e4

File tree

6 files changed

+62
-63
lines changed

6 files changed

+62
-63
lines changed

404.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
---
55

66
<style type="text/css" media="screen">
7-
.container {
8-
margin: 10px auto;
9-
max-width: 600px;
10-
text-align: center;
11-
}
12-
h1 {
13-
margin: 30px 0;
14-
font-size: 4em;
15-
line-height: 1;
16-
letter-spacing: -1px;
17-
}
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
13+
h1 {
14+
margin: 30px 0;
15+
font-size: 4em;
16+
line-height: 1;
17+
letter-spacing: -1px;
18+
}
1819
</style>
1920

2021
<div class="container">
21-
<h1>404</h1>
22+
<h1>404</h1>
2223

23-
<p><strong>Page not found :(</strong></p>
24-
<p>The requested page could not be found.</p>
24+
<p><strong>Page not found :(</strong></p>
25+
<p>The requested page could not be found.</p>
2526
</div>

_includes/google-analytics.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<script>
2-
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
3-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
2+
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
3+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
77

8-
ga('create', '{{ site.google_analytics }}', 'auto');
9-
ga('send', 'pageview');
10-
}
8+
ga('create', '{{ site.google_analytics }}', 'auto');
9+
ga('send', 'pageview');
10+
}
1111
</script>
12-

_includes/head.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<head>
2-
<meta charset="utf-8">
3-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<meta name="viewport" content="width=device-width, initial-scale=1">
5-
{%- seo -%}
6-
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
7-
{%- feed_meta -%}
8-
{%- if jekyll.environment == 'production' and site.google_analytics -%}
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{%- seo -%}
6+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
7+
{%- feed_meta -%}
8+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
99
{%- include google-analytics.html -%}
10-
{%- endif -%}
10+
{%- endif -%}
1111
</head>

_layouts/default.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
{%- include head.html -%}
4+
<body>
5+
{%- include header.html -%}
36

4-
{%- include head.html -%}
7+
<main id="main-content" aria-label="Content">
8+
{{ content }}
9+
</main>
510

6-
<body>
7-
{%- include header.html -%}
8-
9-
<main id="main-content" aria-label="Content">
10-
{{ content }}
11-
</main>
12-
13-
{%- include footer.html -%}
14-
{% include js.html %}
15-
</body>
11+
{%- include footer.html -%}
12+
{% include js.html %}
13+
</body>
1614
</html>

_layouts/page.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
---
44
<article>
55

6-
<header>
7-
<h1>{{ page.title | escape }}</h1>
8-
</header>
6+
<header>
7+
<h1>{{ page.title | escape }}</h1>
8+
</header>
99

10-
<div>
11-
{{ content }}
12-
</div>
10+
<div>
11+
{{ content }}
12+
</div>
1313

1414
</article>

_layouts/post.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
---
44
<article itemscope itemtype="http://schema.org/BlogPosting">
55

6-
<header>
7-
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
6+
<header>
7+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
88

9-
<p>
10-
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11-
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
12-
{{ page.date | date: date_format }}
13-
</time>
9+
<p>
10+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
12+
{{ page.date | date: date_format }}
13+
</time>
1414

15-
{%- if page.author -%}
16-
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
17-
{%- endif -%}</p>
18-
</header>
15+
{%- if page.author -%}
16+
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
17+
{%- endif -%}
18+
</p>
19+
</header>
1920

20-
<div itemprop="articleBody">
21-
{{ content }}
22-
</div>
21+
<div itemprop="articleBody">
22+
{{ content }}
23+
</div>
2324

24-
<a href="{{ page.url | relative_url }}" hidden></a>
25+
<a href="{{ page.url | relative_url }}" hidden></a>
2526
</article>

0 commit comments

Comments
 (0)