Source code for https://nixnet.services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
721 B

---
layout: default
---
{% include post/title.html %}
<div class="content">
{{ content }}
</div>
<script>
document.querySelectorAll('.content h1, .content h2, .content h3').forEach($heading => {
// get id from headings
var id = $heading.getAttribute("id") || $heading.innerText.toLowerCase().replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '').replace(/ +/g, '-');
// create anchors for id
$anchor = document.createElement('a');
$anchor.className = "headerlink";
$anchor.href = '#' + id;
// prepend anchor to heading text
$heading.prepend($anchor);
});
</script>
{% include post/about.html %}
<br/>
<br/>
<hr/>
{% include webring-out.html %}
<img class="post-image" src="{{ page.cover }}">