GTFOBins.github.io/_layouts/common.html

33 lines
1.0 KiB
HTML
Raw Normal View History

2018-05-21 21:14:41 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
{{ site.title }}
{% if page.url != '/' %}
|
{% if page.layout == 'bin' %}
{{ page.title | downcase }}
{% else %}
{{ page.title }}
{% endif %}
{% endif %}
</title>
<link rel="stylesheet" href="/style.css" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
2018-05-21 23:09:02 +02:00
<script async defer src="https://buttons.github.io/buttons.js"></script>
2018-05-21 21:14:41 +02:00
</head>
<body>
{{ content }}
2018-05-24 12:27:09 +02:00
<script>
// add permalink on headings
document.querySelectorAll('h2, h3, h4, h5, h5').forEach((heading) => {
const link = document.createElement('a');
link.className = 'permalink';
link.href = `#${heading.id}`;
heading.appendChild(link);
});
</script>
2018-05-21 21:14:41 +02:00
</body>
</html>