rust-search-extension/docs/templates/_macros.html
2019-12-02 21:13:46 +08:00

17 lines
No EOL
629 B
HTML

{% macro render_header() %}
{% set section = get_section(path="_index.md") %}
<a href="{{ section.permalink }}">
<div class="logo">
<img src="{{ get_url(path="logo.png") }}" alt="rust-search-extension-logo">
Rust Search Extension
</div>
</a>
<nav>
<a class="nav-item subtitle-text" href="{{ section.permalink }}">Home</a>
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink }}">{{ page.title }}</a>
{% endfor %}
<a class="nav-item subtitle-text" href="https://github.com/Folyd/rust-search-extension">Github</a>
</nav>
{% endmacro render_header %}