DCIPs/_includes/head.html

103 lines
4.8 KiB
HTML
Raw Permalink Normal View History

<head>
<!-- for mathjax support -->
{% if page.usemathjax %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
</script>
<script type="text/javascript" async src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{% endif %}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2023-04-25 19:35:41 +00:00
{% if page.layout == "dcip" %}
{% if page.category == "DCIP" %}
2023-04-20 15:49:26 +00:00
<title>DCIP-{{ page.dcip }}: {{ page.title | escape }}</title>
2023-04-17 17:13:40 +00:00
<meta property="og:title" content="DCIP-{{ page.dcip }}: {{ page.title | escape }}" />
{% endif %}
<meta name="description" content="{{page.description | escape }}" />
<meta property="og:description" content="{{page.description | escape }}" />
<meta name="twitter:description" content="{{page.description | escape }}" />
{% else %}
2023-04-20 15:49:26 +00:00
<title>{{ page.title | escape }} | {{site.title}}</title>
<meta
property="og:title"
2023-04-20 15:49:26 +00:00
content="{{ page.title | escape }} | {{site.title}}"
/>
<meta name="description" content="{{site.description}}" />
<meta property="og:description" content="{{site.description}}" />
<meta name="twitter:description" content="{{site.description}}" />
{% endif %}
<meta name="generator" content="Jekyll" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="{{site.url}}{{page.url}}" />
<meta property="og:url" content="{{site.url}}{{page.url}}" />
<meta property="og:site_name" content="{{site.title}}" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@{{site.twitter_username}}" />
<script type="application/ld+json">
{
"@type": "WebSite",
"url": "{{site.url}}",
"name": "{{site.title}}",
"description": "{{site.description}}",
"@context": "https://schema.org"
}
</script>
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" />
{%- feed_meta -%}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", (event) => {
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
});
</script>
<script type="text/javascript">
window.MathJax = {
loader: {
load: ['input/tex-base', 'output/chtml']
},
tex: {
inlineMath: [['$', '$']],
displayMath: [['$$', '$$']],
processEscapes: true,
processEnvironments: false,
processRefs: false
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js" integrity="sha384-/1zmJ1mBdfKIOnwPxpdG6yaRrxP6qu3eVYm0cz2nOx+AcL4d3AqEFrwcqGZVVroG" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/citation-js/0.6.4/citation.min.js" integrity="sha512-7mRYgXTf8uFTLaIrSME+aVBmaZ9ykyvgsOpGLZafWZzdmHlTOBeKrUiTiR1sNpSJLmK68IdhN3+7FbhbJfNLsg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript">
addEventListener('DOMContentLoaded', async () => {
const Cite = window.require('citation-js');
const citationElements = document.querySelectorAll('.language-csl-json');
for (let citationElement of citationElements) {
try {
const citation = await Cite.async(citationElement);
const template = document.createElement('template');
template.innerHTML = citation.format('bibliography', {
format: 'html',
template: 'apa',
lang: 'en-US'
});
if (citationElement.parentElement && citationElement.parentElement.matches('pre')) {
citationElement.parentElement.replaceWith(template.content);
} else {
citationElement.replaceWith(template.content);
}
} catch (e) {
console.error("unable to render citation", e);
}
}
});
</script>
</head>