forked from avoin-data-opas/avoin-data-opas.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
75 lines (69 loc) · 3.96 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="{{ site.lang }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% seo %}
<link rel="stylesheet" href="/assets/css/styles.css">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<link rel="shortcut icon" type="image/png" href="/assets/img/favicon.png">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
<body id ="body">
<div class="lang">
<ul>
{% assign pages=site.pages | where: "ref", page.ref | sort: 'lang' | reverse %}
{% if pages.size > 1 %}
{% for page in pages %}
<li><a href="{{ site.base-url }}{{ page.url | remove: '.html'}}" class="{{ page.lang }}"><img src="../assets/img/{{ page.lang }}.png" alt="{{ page.lang }}"/></a></li>
{% endfor %}
{% endif %}
</ul>
</div>
<div id="wrapper">
<div id="sidebar">
<header id ="header">
<h1><a href="{{ '/' | relative_url }}{{ page.lang | remove: 'fi' }}">{{ site.data.translations['site-title'][page.lang] }}</a></h1>
{% if site.logo %}
<img src="{{ site.logo | relative_url }}" alt="Logo" />
{% endif %}
{% for item in site.data.docs[page.lang] %}
<h3><a href="{{ item.url | remove: '.html' }}" {% if page.url == item.url %} class="current" {% endif %}>{{ item.page }}</a></h3> <!--This comes from this repo's _data/docs.yml-->
{% if item.url contains page.category %}
{% for entry in item.subfolderitems %}
<h4 class="subnav"><a href="{{ entry.url | remove: '.html' }}" {% if page.url == entry.url %} class="current" {% endif %}>{{ entry.page }}</a></h4>
{% endfor %}
{% endif %}
{% endfor %}
</header>
<footer id="nav-footer">
<p><a rel="nofollow noopener noreferrer" target="_blank" href="https://github.com/cms-opendata-education/cms-jupyter-materials-finnish"><img id="gh-logo" src="/assets/img/GitHub-Mark-32px.png" width="20" height="20" alt="GitHub logo"></a>
<a rel="nofollow noopener noreferrer" target="_blank" href="https://github.com/cms-opendata-education/cms-jupyter-materials-finnish">{{ site.data.translations['materiaalipankki'][page.lang] }}</a></p>
<p><small>{{ site.data.translations['contact'][page.lang] }}: <br> <a href="mailto:apua-avoin-data@cern.ch">apua-avoin-data@cern.ch</a></small></p>
</footer>
</div>
<section id="content">
{{ content | replace: '<a href="http', '<a rel="nofollow noopener noreferrer" target="_blank" href="http' }}
</section>
</div>
<footer id="content-footer">
<p><small>{{ site.data.translations['opetushallitus'][page.lang] }}<br/>
{{ site.data.translations['lisenssi'][page.lang] }}: <a rel="license nofollow noopener noreferrer" target="_blank" href="http://creativecommons.org/licenses/by/4.0/">CC-BY 4.0</a>.</small></p>
<p><a rel="nofollow noopener noreferrer" target="_blank" href="https://www.hip.fi/"><img class="center" src="../assets/img/HIP-horizontal.png" alt="Helsinki Institute of Physics logo" height="50px"/></a></p>
</footer>
<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 %}
</body>
</html>