forked from bevyengine/bevy-website
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make HTML formatting consistent (bevyengine#1026)
Co-authored-by: BD103 <[email protected]>
- Loading branch information
1 parent
c7fdba7
commit ffb4482
Showing
50 changed files
with
1,946 additions
and
1,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"profile": "nunjucks", | ||
"ignore": "H030,H031", | ||
"indent": "2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ENABLE_LINTERS: | ||
- HTML_DJLINT | ||
- MARKDOWN_MARKDOWNLINT | ||
- EDITORCONFIG_EDITORCONFIG_CHECKER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
|
||
&__icon { | ||
height: 1.1em; | ||
width: auto; | ||
vertical-align: middle; | ||
margin-left: 0.2em; | ||
font-size: 0.9em; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ | |
|
||
img { | ||
height: 30px; | ||
width: auto; | ||
|
||
@media #{$bp-tablet-portrait-up} { | ||
height: 35px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
div.donate-sponsor { | ||
position: absolute; | ||
bottom: 0.4rem; | ||
right: 0.8rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
|
||
.news-social-icon { | ||
height: 1.3rem; | ||
width: auto; | ||
vertical-align: middle; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{% extends "layouts/base.html" %} | ||
{% block content %} | ||
<div class="fourohfour"> | ||
<div class="fourohfour"> | ||
<h1>404</h1> | ||
<p>Sorry, we couldn't find that page.</p> | ||
<img src="/assets/bevy_icon_dark.svg" alt="Bevy logo"> | ||
</div> | ||
{% endblock content %} | ||
<img src="/assets/bevy_icon_dark.svg" | ||
alt="Bevy logo" | ||
width="176" | ||
height="130"> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,60 @@ | ||
{% extends "layouts/page-with-menu.html" %} | ||
{% import "macros/assets.html" as assets_macros %} | ||
|
||
{% block page_name %}Bevy Assets{% endblock %} | ||
|
||
{% block mobile_page_menu %} | ||
{{assets_macros::assets_menu(prefix="mobile-menu", root=section)}} | ||
{% endblock %} | ||
|
||
{% block page_menu %} | ||
{{assets_macros::assets_menu(prefix="page-menu", root=section)}} | ||
{% endblock %} | ||
|
||
{% block page_name %}Bevy Assets{% endblock page_name %} | ||
{% block mobile_page_menu %}{{ assets_macros::assets_menu(prefix="mobile-menu", root=section) }}{% endblock mobile_page_menu %} | ||
{% block page_menu %}{{ assets_macros::assets_menu(prefix="page-menu", root=section) }}{% endblock page_menu %} | ||
{% block page_content %} | ||
<div class="assets"> | ||
{{ assets_macros::init_svg() }} | ||
|
||
<div class="assets-search"> | ||
<input class="assets-search__input" type="text" id="assets-search" placeholder="Search (ie: 0.11 MIT)"> | ||
</div> | ||
|
||
<div class="assets-filters"> | ||
<label>Bevy last supported version</label> | ||
<select class="asset-version-select" id="assets-filter"> | ||
<option value="all_versions">All</option> | ||
</select> | ||
</div> | ||
|
||
<div class="assets-intro media-content"> | ||
A collection of third-party Bevy assets, plugins, learning resources, and apps made by the community. If you | ||
would like to | ||
share what you're working on, <a href="https://github.com/bevyengine/bevy-assets">submit a pull request</a>! | ||
</div> | ||
|
||
{% for subsection in section.subsections %} | ||
{% set section = get_section(path=subsection) %} | ||
|
||
<h1 class="asset-section" id="{{ section.title | slugify }}"> | ||
{{ section.title }}<a class="anchor-link" href="#{{ section.title | slugify }}">#</a> | ||
</h1> | ||
|
||
{% if section.pages %} | ||
<div class="item-grid item-grid--multi-cols"> | ||
{% set pages = section.pages %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set pages = section.pages | reverse %} | ||
{% endif %} | ||
{% for post in pages %} | ||
{{ assets_macros::card(post=post) }} | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
|
||
{% set subsections = section.subsections %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set subsections = section.subsections | reverse %} | ||
{% endif %} | ||
{% for subsection in subsections %} | ||
{% set section = get_section(path=subsection) %} | ||
|
||
<h3 class="asset-subsection" id="{{ section.title | slugify }}"> | ||
{{ section.title }}<a class="anchor-link" href="#{{ section.title | slugify }}">#</a> | ||
</h3> | ||
<div class="item-grid item-grid--multi-cols"> | ||
{% set pages = section.pages %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set pages = section.pages | reverse %} | ||
{% endif %} | ||
{% for post in pages %} | ||
{{ assets_macros::card(post=post) }} | ||
<div class="assets"> | ||
{{ assets_macros::init_svg() }} | ||
<div class="assets-search"> | ||
<input class="assets-search__input" | ||
type="text" | ||
id="assets-search" | ||
placeholder="Search (ie: 0.11 MIT)"> | ||
</div> | ||
<div class="assets-filters"> | ||
<label>Bevy last supported version</label> | ||
<select class="asset-version-select" id="assets-filter"> | ||
<option value="all_versions">All</option> | ||
</select> | ||
</div> | ||
<div class="assets-intro media-content"> | ||
A collection of third-party Bevy assets, plugins, learning resources, and apps made by the community. If you | ||
would like to | ||
share what you're working on, <a href="https://github.com/bevyengine/bevy-assets">submit a pull request</a>! | ||
</div> | ||
{% for subsection in section.subsections %} | ||
{% set section = get_section(path=subsection) %} | ||
<h1 class="asset-section" id="{{ section.title | slugify }}"> | ||
{{ section.title }}<a class="anchor-link" href="#{{ section.title | slugify }}">#</a> | ||
</h1> | ||
{% if section.pages %} | ||
<div class="item-grid item-grid--multi-cols"> | ||
{% set pages = section.pages %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set pages = section.pages | reverse %} | ||
{% endif %} | ||
{% for post in pages %}{{ assets_macros::card(post=post) }}{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% set subsections = section.subsections %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set subsections = section.subsections | reverse %} | ||
{% endif %} | ||
{% for subsection in subsections %} | ||
{% set section = get_section(path=subsection) %} | ||
<h3 class="asset-subsection" id="{{ section.title | slugify }}"> | ||
{{ section.title }}<a class="anchor-link" href="#{{ section.title | slugify }}">#</a> | ||
</h3> | ||
<div class="item-grid item-grid--multi-cols"> | ||
{% set pages = section.pages %} | ||
{% if section.extra.sort_order_reversed %} | ||
{% set pages = section.pages | reverse %} | ||
{% endif %} | ||
{% for post in pages %}{{ assets_macros::card(post=post) }}{% endfor %} | ||
</div> | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
|
||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
|
||
<script type="module"> | ||
import '/assets.js' | ||
</script> | ||
{% endblock %} | ||
<script type="module">import '/assets.js'</script> | ||
{% endblock page_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{% extends "layouts/base.html" %} | ||
|
||
{% block content %} | ||
{% set community_links = load_data(path="content/community/links.toml") %} | ||
<div class="padded-content item-grid item-grid--two-cols"> | ||
{% set community_links = load_data(path="content/community/links.toml") %} | ||
<div class="padded-content item-grid item-grid--two-cols"> | ||
{% for link in community_links.links %} | ||
<a class="link-card" href="{{ link.url }}"> | ||
<div class="link-card__img-wrapper"> | ||
<img class="link-card__img link-card__img--small" src="{{ link.image }}" alt="{{ link.image_alt }}" /> | ||
</div> | ||
<div class="link-card__content"> | ||
<h2 class="link-card__title">{{ link.title }}</h2> | ||
{% if link.subtitle %} | ||
<div class="link-card__subtitle">{{ link.subtitle }}</div> | ||
{% endif %} | ||
<p class="link-card__description">{{ link.description }}</p> | ||
</div> | ||
</a> | ||
<a class="link-card" href="{{ link.url }}"> | ||
<div class="link-card__img-wrapper"> | ||
<img class="link-card__img link-card__img--small" | ||
src="{{ link.image }}" | ||
alt="{{ link.image_alt }}" | ||
width="80" | ||
height="80" /> | ||
</div> | ||
<div class="link-card__content"> | ||
<h2 class="link-card__title">{{ link.title }}</h2> | ||
{% if link.subtitle %}<div class="link-card__subtitle">{{ link.subtitle }}</div>{% endif %} | ||
<p class="link-card__description">{{ link.description }}</p> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endblock content %} |
Oops, something went wrong.