website/templates/macros/replacements.html
{% macro blog_posts(count) %} {% set articles = get_section(path="blog/_index.md") %} {% set latest = articles.pages | slice(end = count) %} {% for article in latest %}
{{ article.summary | striptags | safe }}
Keep reading {% endfor %} {% endmacro blog_posts %} {% macro text_balancer() %} {% endmacro text_balancer %} {% macro hierarchical_message_system_tree() %} {%- set content = load_data(path = "../generated/hierarchical-message-system-tree.html", format = "plain", required = false) -%} {%- set fallback = "
THIS CONTENT IS FILLED IN WHEN CI BUILDS THE WEBSITE.
TO TEST IT LOCALLY, FROM THE ROOT OF THE PROJECT, RUN:
cargo run -p editor-message-tree -- website/generated
" -%} {{ content | default(value = fallback) | safe }} {% endmacro hierarchical_message_system_tree %} {% macro crate_hierarchy() %} {%- set content = load_data(path = "../generated/crate-hierarchy.svg", format = "plain", required = false) -%} {%- set fallback = "
THIS CONTENT IS FILLED IN WHEN CI BUILDS THE WEBSITE.
TO TEST IT LOCALLY, FROM THE ROOT OF THE PROJECT, RUN:
cargo run -p crate-hierarchy-viz -- website/generated
" -%} {{ content | default(value = fallback) | safe }} {% endmacro crate_hierarchy %}