jekyll/docs/_layouts/default.html

25 lines
601 B
HTML

{%- include top.html -%}
<body class="wrap">
{%- include header.html -%}
{{- content -}}
{%- include footer.html -%}
{%- include anchor_links.html -%}
{%- include analytics.html -%}
{%- include search/script.html -%}
<script>
{%- comment -%}
// This function is called when the user selects an option from a <select> element.
// If the selected option has a valid URL, it changes the window location to that URL.
{%- endcomment %}
const navigateToUrl = (select) => {
const url = select.value;
url && (window.location.href = url);
};
</script>
</body>
</html>