Skip to content

Commit

Permalink
html: Sanitize indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Jun 13, 2024
1 parent 55d9b99 commit 75854fd
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 147 deletions.
26 changes: 13 additions & 13 deletions _layouts/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="about">
<h1 class="page-heading">{{ page.title }}</h1>
<img src="{{ page.profile_picture.src | relative_url }}" alt="{{ page.profile_picture.alt }}" class="profile-pic" />
{{ content }}
</div>
</div>
<div class="page-content">
<div class="wrapper">
<div class="about">
<h1 class="page-heading">{{ page.title }}</h1>
<img src="{{ page.profile_picture.src | relative_url }}" alt="{{ page.profile_picture.alt }}" class="profile-pic" />
{{ content }}
</div>
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
44 changes: 22 additions & 22 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="blog">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
<ul class="blog-post-list">
{% for post in site.posts %}
<li>
<time class="blog-post-date" datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%b %d, %Y" }}</time>
<a href="{{ post.url | replace:".html","" | prepend: site.baseurl }}" class="blog-post-title">
{{ post.title }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="page-content">
<div class="wrapper">
<div class="blog">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
<ul class="blog-post-list">
{% for post in site.posts %}
<li>
<time class="blog-post-date" datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%b %d, %Y" }}</time>
<a href="{{ post.url | replace:".html","" | prepend: site.baseurl }}" class="blog-post-title">
{{ post.title }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
20 changes: 10 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
24 changes: 12 additions & 12 deletions _layouts/freelance.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="freelance">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
</div>
</div>
<div class="page-content">
<div class="wrapper">
<div class="freelance">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
</div>
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
106 changes: 53 additions & 53 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,65 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="post">
<div class="page-content">
<div class="wrapper">
<div class="post">

<header class="post-header">
{%- if page.draft %}
{% include draft-banner.html %}
{%- endif %}
<h1 class="post-title">
{%- if page.headline_formatted_title %}
{{ page.headline_formatted_title | newline_to_br }}
{%- else %}
{{ page.title }}
{%- endif %}
</h1>
<header class="post-header">
{%- if page.draft %}
{% include draft-banner.html %}
{%- endif %}
<h1 class="post-title">
{%- if page.headline_formatted_title %}
{{ page.headline_formatted_title | newline_to_br }}
{%- else %}
{{ page.title }}
{%- endif %}
</h1>

{%- if page.subtitle %}
<h1 class="post-subtitle">{{ page.subtitle }}</h1>
{%- endif %}
<p class="post-meta">
<time class="post-date" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date_to_long_string: "ordinal" }}
</time>
{%- if page.modified_date -%}
~
<time class="post-date" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
{{ page.modified_date | date_to_long_string: "ordinal" }}
</time>
{%- endif -%}
{%- if page.authors -%}
• {% for author in page.authors %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
{% if page.meta %} • {{ page.meta }}{% endif %}
</p>
</header>
{%- if page.subtitle %}
<h1 class="post-subtitle">{{ page.subtitle }}</h1>
{%- endif %}
<p class="post-meta">
<time class="post-date" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date_to_long_string: "ordinal" }}
</time>
{%- if page.modified_date -%}
~
<time class="post-date" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
{{ page.modified_date | date_to_long_string: "ordinal" }}
</time>
{%- endif -%}
{%- if page.authors -%}
• {% for author in page.authors %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
{% if page.meta %} • {{ page.meta }}{% endif %}
</p>
</header>

<article class="post-content">
{{ content }}
</article>
<article class="post-content">
{{ content }}
</article>

{%- if page.draft %}
{% include draft-banner.html %}
{%- endif %}
</div>
{%- if page.license %}
{% include cc-by-4.0.html %}
{%- endif %}
</div>
{%- if page.draft %}
{% include draft-banner.html %}
{%- endif %}
</div>
{%- if page.license %}
{% include cc-by-4.0.html %}
{%- endif %}
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
24 changes: 12 additions & 12 deletions _layouts/software.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="software">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
</div>
</div>
<div class="page-content">
<div class="wrapper">
<div class="software">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
</div>
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>
50 changes: 25 additions & 25 deletions _layouts/work.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
{% endcomment -%}
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}

<body>
{% include header.html %}
<body>
{% include header.html %}

<div class="page-content">
<div class="wrapper">
<div class="work">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}
<div class="page-content">
<div class="wrapper">
<div class="work">
<h1 class="page-heading">{{ page.title }}</h1>
{{ content }}

{% for item in page.items %}
<div class="work-item">
<img
src="{{ item.image.src | relative }}"
alt="{{ item.image.alt }}"
class="work-bubble"
/>
<span class="work-text">
<strong>{{ item.title }}</strong>
&mdash;
{{ item.description }}
</span>
</div>
{% endfor %}
</div>
{% for item in page.items %}
<div class="work-item">
<img
src="{{ item.image.src | relative }}"
alt="{{ item.image.alt }}"
class="work-bubble"
/>
<span class="work-text">
<strong>{{ item.title }}</strong>
&mdash;
{{ item.description }}
</span>
</div>
{% endfor %}
</div>
</div>
</div>

{% include footer.html %}
</body>
{% include footer.html %}
</body>
</html>

0 comments on commit 75854fd

Please sign in to comment.