mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-08 13:50:40 +01:00
- Updated frameworks for better browser support - Improved responsive design - Versioned documentation - Better social media support via the Jekyll SEO plugin - New looks, fwiw - Start page has some more relevant info - Documentation sorted to be more easily accessible - Internally upgraded from plain CSS to SASS
21 lines
684 B
HTML
21 lines
684 B
HTML
{%- comment -%}
|
|
|
|
Outputs an HTML heading with id reference and permalink hover
|
|
|
|
Parameters:
|
|
- level: 1..6 the level of the heading
|
|
- text: the visible text of the heading
|
|
- slug: the reference for URLs, defaults to slug from text
|
|
|
|
{%- endcomment -%}
|
|
|
|
{%- capture slug_from_text -%}{{ include.text | slugify }}{%- endcapture -%}
|
|
|
|
<h{{- include.level | default: 2 }} id="{{- include.slug | default: slug_from_text -}}">
|
|
{{- include.text -}}
|
|
<a href="#{{- include.slug | default: slug_from_text -}}">
|
|
{%- include paperclip.svg -%}
|
|
</a>
|
|
{%- comment -%} removes a line break {%- endcomment -%}
|
|
</h{{- include.level | default: 2 -}}>
|