New Theme

This commit is contained in:
2020-11-21 14:13:16 +01:00
parent 9bc54d475f
commit cbc70ca8e1
593 changed files with 13702 additions and 14006 deletions

161
_layouts/default.html Normal file → Executable file
View File

@@ -1,101 +1,80 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<html lang="en">
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/favicons/apple-touch-icon.png" | relative_url }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicons/favicon-32x32.png" | relative_url }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicons/favicon-16x16.png" | relative_url }}">
<link rel="manifest" href="{{ "/assets/favicons/site.webmanifest" | relative_url }}">
<link rel="mask-icon" href="{{ "/assets/favicons/safari-pinned-tab.svg" | relative_url }}" color="#5bbad5">
<link rel="shortcut icon" href="{{ "/favicon.ico" | relative_url }}">
<meta name="apple-mobile-web-app-title" content="GLaDOS">
<meta name="application-name" content="GLaDOS">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{{ "/assets/favicons/browserconfig.xml" | relative_url }}">
<meta name="theme-color" content="#ffffff">
{% include structure/head.html %}
{% seo %}
<body>
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | relative_url }}">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
{% if site.logo %}
<img src="{{site.logo | relative_url}}" alt="Logo" />
{% endif %}
{% include bars/nav.html %}
<p>{{ site.description_long }}</p>
{% capture col1 %}{% if page.narrow %}3{% else %}4{% endif %}{% endcapture %}
{% if site.github.is_project_page %}
<p class="view"><a href="{{ site.github.repository_url }}">Vis kilden på min private git <small>{{ site.github.repository_nwo }}</small></a></p>
{% endif %}
{% capture col2 %}{% if page.narrow %}9{% else %}8{% endif %}{% endcapture %}
{% if site.github.is_user_page %}
<p class="view"><a href="{{ site.github.owner_url }}">Se min githubprofil!</a></p>
{% endif %}
{% if site.show_downloads %}
<ul class="downloads">
<li><a href="{{ site.github.zip_url }}">Last ned <strong>ZIP fil</strong></a></li>
<li><a href="{{ site.github.tar_url }}">Last ned <strong>TAR Ball</strong></a></li>
<li><a href="{{ site.github.repository_url }}">Vis på <strong>GitHub</strong></a></li>
</ul>
{% endif %}
</header>
<section>
{{ content }}
</section>
<footer>
{% if site.github.is_project_page %}
<p>Denne siden er vedlikeholdt av <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
{% endif %}
<p><small>Levert av GLaDOS &mdash; Tema av <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
<div class="container site-container" id="top">
<div class="row">
<div class="d-none d-lg-block col-lg-4 col-xl-{{ col1 }} side">
{% include bars/side.html %}
</div>
<div class="col-md-12 col-lg-8 col-xl-{{ col2 }} pb-4 content">
{{ content }}
</div>
<div class="col-md-12 d-lg-none bottom">
{% include bars/bottom.html %}
</div>
</div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</div>
<script type="text/javascript">
/*!
* IE10 viewport hack for Surface/desktop Windows 8 bug
* Copyright 2014-2017 The Bootstrap Authors
* Copyright 2014-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
// See the Getting Started docs for more information:
// https://getbootstrap.com/getting-started/#support-ie10-width
(function () {
'use strict'
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement('style')
msViewportStyle.appendChild(
document.createTextNode(
'@-ms-viewport{width:auto!important}'
)
)
document.head.appendChild(msViewportStyle)
}
}())
</script>
{% if page.math %}
<script>
MathJax = {
tex: {
packages: {
'[+]': ['mhchem', 'ams']
},
inlineMath: [ // start/end delimiter pairs for in-line math
['$','$'],
['\\(', '\\)']
],
displayMath: [ // start/end delimiter pairs for display math
['$$', '$$'],
['\\[', '\\]']
],
tags: 'ams',
processRefs: true,
}
};
</script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
{% endif %}
</body>
{% if page.math %}
<script>
MathJax = {
tex: {
packages: {
'[+]': ['mhchem', 'ams']
},
inlineMath: [ // start/end delimiter pairs for in-line math
['$','$'],
['\\(', '\\)']
],
displayMath: [ // start/end delimiter pairs for display math
['$$', '$$'],
['\\[', '\\]']
],
tags: 'ams',
processRefs: true,
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
{% endif %}
</body>
</html>

View File

@@ -0,0 +1,29 @@
---
layout: default
---
<h1 class="border border-top-0 border-right-0 border-left-0 mb-3 pb-2">
{{ page.title }}
</h1>
<div class="d-md-block d-lg-none">
{% include components/lecture-meta.html %}
</div>
{{ content }}
<script type="text/javascript">
$(document).ready(function() {
var tpl =
"<li class='nav-item'>\
<a class='nav-link bg-white mb-1' href='#header[idx]'>[name]</a>\
</li>"
$("h2").each(function(idx, h2) {
$(h2).attr("id", "header" + idx)
var name = $(h2).text().trim()
var dom_string = tpl.replace("[name]", name).replace("[idx]", idx)
var header = $(dom_string)
$(".header-list").append(header)
})
})
</script>

View File

@@ -0,0 +1,9 @@
---
layout: default
---
<h5 class="list-title border border-left-0 border-right-0 py-2">
{{ page.title }}
</h5>
{{ content }}

View File

@@ -0,0 +1,13 @@
---
layout: default
---
<h1 class="border border-top-0 border-right-0 border-left-0 mb-4 pb-2">
{% if page.title %}
{{ page.title }}
{% else %}
{{ site.name }}
{% endif %}
</h1>
{{ content }}

View File

@@ -0,0 +1,12 @@
---
layout: default
---
<h1 class="border border-top-0 border-right-0 border-left-0 mb-3 pb-2">{{ page.title }}</h1>
<div class="d-md-block d-lg-none">
{% include components/portfolio-meta.html %}
</div>
{{ content }}

View File

@@ -0,0 +1,12 @@
---
layout: default
---
<h1 class="border border-top-0 border-right-0 border-left-0 mb-3 pb-2">{{ page.title }}</h1>
<div class="d-md-block d-lg-none">
{% include components/post-meta.html %}
</div>
{{ content }}

View File

@@ -0,0 +1,29 @@
---
layout: default
---
<h1 class="border border-top-0 border-right-0 border-left-0 mb-3 pb-2">
{{ page.title }}
</h1>
<div class="d-md-block d-lg-none">
{% include components/project-meta.html %}
</div>
{{ content }}
<script type="text/javascript">
$(document).ready(function() {
var tpl =
"<li class='nav-item'>\
<a class='nav-link bg-white mb-1' href='#header[idx]'>[name]</a>\
</li>"
$("h2").each(function(idx, h2) {
$(h2).attr("id", "header" + idx)
var name = $(h2).text().trim()
var dom_string = tpl.replace("[name]", name).replace("[idx]", idx)
var header = $(dom_string)
$(".header-list").append(header)
})
})
</script>

View File

@@ -1,15 +0,0 @@
---
layout: default
---
<small>{{ page.date | date: "%-d %B %Y" }}</small>
<h1>{{ page.title }}</h1>
<p class="view">by {{ page.author | default: site.author }}</p>
{{content}}
{% if page.tags %}
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
{% endif %}

View File

@@ -1,11 +0,0 @@
---
layout: default
---
<h1>{{ page.title }}</h1>
<p class="view">by {{ page.author | default: site.author }}</p>
{{content}}

View File

@@ -1,14 +0,0 @@
---
layout: default
---
<small>{{ page.date | date: "%-d %B %Y" }}</small>
<h1>{{ page.title }}</h1>
<p class="view">by {{ page.author | default: site.author }}</p>
{{content}}
{% if page.tags %}
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
{% endif %}