We no longer use the `--root` option of `build_website.py` since we have moved to jqlang.org (from jqlang.github.io/jq where the root was `/jq`). We don't need the option on local development either since `http.server` has the `-d` option to specify the directory to serve from.
29 lines
1.6 KiB
Django/Jinja
29 lines
1.6 KiB
Django/Jinja
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ headline }}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta property="og:title" content="{{ headline }}">
|
|
<meta property="og:description" content="jq is a lightweight and flexible command-line JSON processor">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:image" content="{{ url }}/icon.png">
|
|
<meta property="og:url" content="{{ url }}/{{ permalink }}">
|
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/icon.png" type="image/png">
|
|
<link rel="canonical" href="{{ url }}/{{ permalink }}">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.1/dist/cosmo/bootstrap.min.css"
|
|
integrity="sha384-dulfW0vmzZ638jigSgZXvDxMmd70GCnIv6oa+riKq6Kk4E0MKf7qmBfwP02wltv5" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"
|
|
integrity="sha384-Ay26V7L8bsJTsX9Sxclnvsn+hkdiwRnrjZJXqKmkIDobPgIIWBOVguEcQQLDuhfN" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
|
<script>
|
|
(function() {
|
|
function setTheme(mediaQuery) {
|
|
document.documentElement.setAttribute('data-bs-theme',
|
|
document.documentElement.style.colorScheme = mediaQuery.matches ? 'dark' : 'light');
|
|
}
|
|
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
setTheme(mediaQuery); mediaQuery.addEventListener('change', setTheme);
|
|
})();
|
|
</script>
|
|
</head>
|