-
Notifications
You must be signed in to change notification settings - Fork 224
Custom Additions
damios edited this page Apr 29, 2021
·
20 revisions
We also have some custom elements, which are located in the _includes directory.
- Translates the permalink into a breadcrumb
{% include breadcrumbs.html %}
Front matter:
---
carousel_elements:
- image: assets/images/index_showcase/game0.png
title: Pathway <br/>by Robotality # optional
link: https://store.steampowered.com/app/546430/Pathway/ # optional
- image: assets/images/index_showcase/game1.png
title: Residual <br/>by Orangepixel # optional
link: https://store.steampowered.com/app/1290780/Residual/ # optional
---
HTML:
<div style="max-width: 545px; margin-left: auto; margin-right: auto;">
{% include carousel.html elements=page.carousel_elements height="103.8" unit="%" duration="7" control_color="#373737" %}
</div>
-
control_color
is optional; it changes the color of the controls
- Used in the roadmap
- Supports
planned
,wip
,close
anddone
{% include status.html is='planned' %}
- Allows using unordered lists (
<ul>
) inside HTML tags, while retaining the ability to format them in Markdown - Supports two levels of nesting
- Used on the features page
-
{% include list.html title="Audio" items=page.list1 %}
, wherelist1
is defined in the frontmatter as:
---
list1:
- "**Cool element on lvl 1**"
- "Even _better_ element"
- a: # optional second level; name irrelevant
title: "Title of lvl 2"
items:
- "First [element](https://libgdx.com) on lvl 2"
- "Whatever"
---
- Previews the latest post with a certain tag
- Used on index
-
{% include tag_preview.html tag="changelog" type="left" %}
; also configured via the frontmatter as follows:
---
tag_preview:
image_path: /assets/images/update.jpeg
alt: "image description"
btn_label: "Just do it!"
btn_class: "btn--primary"
---
- setup_flowchart
- An author note on top of posts (_includes/page__metadata.html)
- Added a custom
wide2
andwide3
style (and adapted the defaultwide
style), which should be used depending on which sidebar is disabled (in _sass/minimal-mistakes.scss) - Custom Footer Links (_includes/footer.html)
- Favicons (_includes/head/custom.html)
- A dark mode (_includes/head.html, _includes/masthead.html, assets/css/main2.scss)