Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieiku committed Aug 27, 2024
1 parent 2053f1c commit addf011
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions content/overview-rich-content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ Each string in the `sources` array should be a path to an image file of a differ

### Usage
```rs
{{/* image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"], w=640, h=480, alt="ITS OVER 9000!") */}}
{{/* image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"] w=640 h=480 alt="ITS OVER 9000!") */}}
```
### Output
```html
{{ image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"], w=640, h=480, alt="ITS OVER 9000!") }}
{{ image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"] w=640 h=480 alt="ITS OVER 9000!") }}
```
{{ image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"], w=640, h=480, alt="ITS OVER 9000!") }}
{{ image(sources=["over9000-960.avif", "over9000-640.avif", "over9000-400.avif", "over9000-640.webp"] w=640 h=480 alt="ITS OVER 9000!") }}

## GIF

Expand Down
8 changes: 4 additions & 4 deletions templates/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ <h2>{{ section_item.title }}</h2>
{%- for year, posts in section_item.pages | sort(attribute="year") | reverse | group_by(attribute="year") %}
{%- if not hide_section_dates %}
{%- if section_item.title %}
<h3>{{ year }}</h3>
<h3 class="tpad">{{ year }}</h3>
{%- else %}
<h2>{{ year }}</h2>
<h2 class="tpad">{{ year }}</h2>
{%- endif %}
{%- endif %}
{%- for post in posts %}
Expand All @@ -75,9 +75,9 @@ <h2>{{ year }}</h2>
{%- for year, posts in section_item.pages | group_by(attribute="year") %}
{%- if not hide_section_dates %}
{%- if section_item.title %}
<h3>{{ year }}</h3>
<h3 class="tpad">{{ year }}</h3>
{%- else %}
<h2>{{ year }}</h2>
<h2 class="tpad">{{ year }}</h2>
{%- endif %}
{%- endif %}
{%- for post in posts %}
Expand Down
2 changes: 1 addition & 1 deletion templates/categories/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{{ terms | length }} {{ macros::translate(key="Categories", default="Categor
<p>{% for term in terms %} [<a href="#{{ term.name }}">{{ term.name }}</a>]<sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
<h2 id="{{ term.name }}"><a href="{{ term.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
<h2 class="tpad" id="{{ term.name }}"><a href="{{ term.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
<p><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/categories/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div>
<h2>{{ term.name }}</h2>
{%- for year, posts in term.pages | group_by(attribute="year") %}
<h3>{{ year }}</h3>
<h3 class="tpad">{{ year }}</h3>
{%- for page in posts %}
<p><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/tags/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{{ terms | length }} {{ macros::translate(key="Tags", default="Tags", i18n=i
<p>{% for term in terms %} #<a href="#{{ term.name }}">{{ term.name }}</a><sup>{{ term.pages | length }}</sup> {% endfor %}</p>
</div>
{%- for term in terms %}
<h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
<h2 class="tpad" id="{{ term.name }}">#<a href="{{ term.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ term.name }}</a></h2>
{%- for page in term.pages %}
<p><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/tags/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div>
<h2>{{ term.name }}</h2>
{%- for year, posts in term.pages | group_by(attribute="year") %}
<h3>{{ year }}</h3>
<h3 class="tpad">{{ year }}</h3>
{%- for page in posts %}
<p><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time></p>
{%- endfor %}
Expand Down

0 comments on commit addf011

Please sign in to comment.