* Add featuredLinks to frontmatter * Parse them in featured-links.js * Remove old raw setup * Use them * Missed a couple * Update translation files * Fix frontmatter schema * Loop over the right object * Also update translations' usage * Update docs and tests * Better README comment Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Return next() Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
28 lines
854 B
HTML
28 lines
854 B
HTML
<div class="featured-links container-xl">
|
|
<div class="gutter gutter-xl-spacious clearfix">
|
|
|
|
<!-- Getting Started articles -->
|
|
<div class="col-12 col-lg-6 float-left">
|
|
<div class="featured-links-heading pb-4">
|
|
<h3 class="f5 text-normal text-mono underline-dashed color-gray-5">{% data ui.toc.getting_started %}</h3>
|
|
</div>
|
|
|
|
{% for link in featuredLinks.gettingStarted %}
|
|
{% include featured-link %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<!-- Popular articles -->
|
|
<div class="col-12 col-lg-6 float-left">
|
|
<div class="featured-links-heading pb-4">
|
|
<h3 class="f5 text-normal text-mono underline-dashed color-gray-5">{% data ui.toc.popular_articles %}</h3>
|
|
</div>
|
|
|
|
{% for link in featuredLinks.popular %}
|
|
{% include featured-link %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|