1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Files
docs/includes/featured-links.html
Jason Etcovitch 174d8539c6 Support arbitrary keys in new featuredLinks frontmatter (#16239)
* 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>
2020-10-27 13:53:10 -04:00

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>