-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdefault.html
More file actions
144 lines (140 loc) · 8.97 KB
/
default.html
File metadata and controls
144 lines (140 loc) · 8.97 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<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 -%}
{%- assign gfont = "https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Noto+Serif+TC&family=Noto+Serif+JP&family=Noto+Color+Emoji&family=Noto+Serif+Thai" -%}
{%- if site.font_service == "cloudflare" and jekyll.environment == 'production' -%}
<link rel="stylesheet" href="{{ gfont }}" />
{%- else -%}
<!-- The Google Font async wizardry below is courtesy of: https://csswizardry.com/2020/05/the-fastest-google-fonts/ -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preload" as="style" href="{{ gfont }}&display=swap" />
<link rel="stylesheet" href="{{ gfont }}&display=swap" media="print" onload="this.media='all'" />
<noscript>
<link rel="stylesheet" href="{{ gfont }}" />
</noscript>
{%- endif -%}
<link rel="stylesheet" href="/assets/css/{%- if jekyll.environment == 'production' and site.usepurgedcss -%}purged-{%- endif -%}main.css?u={{ site.data.cssCacheToken }}">
{% for cc in page.custom_css %}
<link rel="stylesheet" href="/assets/css/{{cc}}.css?u={{ site.data.cssCacheToken }}">{% endfor %}
<link rel="apple-touch-icon" sizes="144x144" href="{% link assets/imgs/ms-icon-144x144.png %}">
<link rel="apple-touch-icon" sizes="180x180" href="{% link assets/imgs/apple-touch-icon.png %}">
<link rel="icon" type="image/png" sizes="192x192" href="{% link android-chrome-192x192.png %}">
<link rel="icon" type="image/png" sizes="32x32" href="{% link assets/imgs/favicon-32x32.png %}">
<link rel="icon" type="image/png" sizes="16x16" href="{% link assets/imgs/favicon-16x16.png %}">
<link rel="manifest" href="{% link site.webmanifest %}">
<link rel="mask-icon" href="{% link assets/imgs/logo.svg %}" color="#5E2417">
<meta name="msapplication-TileColor" content="#5E2417">
<meta name="theme-color" content="#5E2417">
{%- if page.next_link -%}
<link rel="next" href="{{ page.next_link }}">
{%- endif -%}
{%- case page.collection -%}
{%- when "posts" -%}
<link rel="alternate" type="application/atom+xml" title="Blog Posts" href="/feed.xml" />
{%- when "tags" -%}
<link rel="alternate" type="application/atom+xml" title="Content | {{ page.title }}" href="/feed/content/{{ page.slug }}.xml" />
{%- when "categories" -%}
{%- if page.slug == "index" -%}
<link rel="alternate" type="application/atom+xml" title="All Library Content" href="/feed/content.xml" />
{%- else -%}
<link rel="alternate" type="application/atom+xml" title="Content | {{ page.title }}" href="/feed/content/{{ page.slug }}.xml" />
{%- endif -%}
{%- else -%}{%- if page.rss_url -%}
<link rel="alternate" type="application/atom+xml" title="{{ page.rss_title | default: page.title }}" href="{{ page.rss_url }}" />
{%- endif -%}
{%- endcase -%}
{%- if jekyll.environment == 'production' -%}
<script>
window.WEBSITE_SECTION = '{{ page.section }}';
function mkscrpt(g,i,o,a,m,s){i=window;s=document;o='script';a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);return a;}
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || localStorage.getItem("doNotTrack") == "1") || localStorage.getItem('TRACK') == "1") {
mkscrpt('https://www.googletagmanager.com/gtag/js?id={{ site.GA4 }}');
mkscrpt('/assets/js/buggytrack.js');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.GA4 }}', {
'pixel_ratio':Math.round(window.devicePixelRatio*10)/10,
'viewport_width':window.innerWidth,
'viewport_height':window.innerHeight,
'currency':'USD',
'content_group':'{{ page.section }}'
});
}
</script>
{%- endif -%}{%- if page.banner_info or page.footer_info -%}
{%- capture infobutton -%}<details class="banner-info details-reset"><summary><i class="fab fa-creative-commons" aria-hidden="true" title="Click me to see this picture's copyright information."></i></summary><div>Photo by {{ page.banner_info | default: page.footer_info }}</div></details>{%- endcapture -%}
<style>
{%- assign classname = "banner-img" -%}{%- if page.footer_info -%}{%- assign classname = "footer-img" -%}{%- endif -%}
{%- assign overlay = site.data.banner.overlay -%}{%- if page.footer_info -%}{%- assign overlay = site.data.banner.footer_overlay -%}{%- endif -%}
{%- if page.big_image -%}
{%- assign dynimg = page.image | split: "/" | last | replace: '.webp', '-[WIDTH]-[DPPX]x.webp' | replace: '.jpg', '-[WIDTH]-[DPPX]x.webp' | replace: '.jpeg', '-[WIDTH]-[DPPX]x.webp' | replace: '.JPG', '-[WIDTH]-[DPPX]x.webp' %}{% assign dynimg = site.data.content.filehost | append: "big_imgs/banners/" | append: dynimg -%}
{%- capture singlecss -%}.{{ classname }} { background-image: {{ overlay }}, url("{{ dynimg | replace: "[DPPX]", 1 }}"), {{ site.data.banner.loading_state }}; }{%- endcapture -%}
{%- capture doublecss -%}.{{ classname }} { background-image: {{ overlay }}, url("{{ dynimg | replace: "[DPPX]", 2 }}"), url("{{ dynimg | replace: "[DPPX]", 1 }}"), {{ site.data.banner.loading_state }}; }{%- endcapture -%}
{{ doublecss | replace: "[WIDTH]", site.data.banner.widths[0] }}
@media(max-resolution: 1.9dppx) { {{ singlecss | replace: "[WIDTH]", site.data.banner.widths[0] }} }
{% for bwidth in site.data.banner.widths %}{% if forloop.first %}{% continue %}{% endif %}
@media(min-width: {{ site.data.banner.min_widths[forloop.index0] }}px) { {{ singlecss | replace: "[WIDTH]", bwidth }} {% if page.big_width < site.data.banner.twox_widths[forloop.index0] %}}{% break %}{% endif %}
@media(min-resolution: 2dppx) { {{ doublecss | replace: "[WIDTH]", bwidth }} } }{% endfor %}
{%- else -%}
.{{ classname }} { background-image: {{ overlay }}, url("{{ page.image }}?{{ page.sirv_options | default: site.data.banner.sirv_options }}"), {{ site.data.banner.loading_state }}; }
{%- endif -%}</style>{% endif %}
</head>
<body>
<a class="skip-to-main" href="#main">Skip to content</a>
<header class="site-header{% if page.banner_info %} banner-img{% if page.next_courses %} fullsize{% elsif site.header_pages contains page.path %} smallsize{% endif %}{% if page.image_center_y %}" style="background-position-y: {{ page.image_center_y }};{% if page.image_center_x %} background-position-x: {{ page.image_center_x }};{% endif %}{% endif %}{% endif %}" role="banner">
<div class="wrapper"{% if page.banner_info %} style="backdrop-filter: blur(0.3px);"{% endif %}>
<a class="site-title" rel="author" href="{{ "/" | relative_url }}"><img height="48" src="/assets/imgs/logo.png" alt="logo"></img><span>{{ site.title | escape }}</span></a>
<nav class="site-nav-links">
{%- for path in site.header_pages -%}
{%- assign my_page = site.pages | find: "path", path -%}
<a class="page-link{% if my_page.slug == page.section %} highlighted-nav-link{% endif %}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endfor -%}
</nav>
</div>
{% if page.banner_info %}{{ infobutton }}{% endif %}
</header>
<noscript>
<img src="https://{{ site.goatcounter }}.goatcounter.com/count?p=/{{ page.url }}&t={{ page.title | url_encode }}">
</noscript>
<main class="page-content" aria-label="Content">
<div id="main" tabindex="-1" class="wrapper">
{{ content | addicontips }}
</div>
</main>
<footer class="site-footer h-card{% if page.footer_info %} footer-img{% if page.image_center_y %}" style="background-position-y: {{ page.image_center_y }};{% if page.image_center_x %} background-position-x: {{ page.image_center_x }};{% endif %}{% endif %}{% endif %}">
<data class="u-url" href="{{ "/" | relative_url }}"></data>
{%- if page.footer_info -%}{{ infobutton }}{%- endif -%}
<div class="wrapper">
<h2 class="footer-heading">{{ site.title | escape }}</h2>
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">{% comment %}classname used by buggytrack.js{% endcomment %}
<li class="p-name">
{%- if site.author -%}
{{ site.author | escape }} (Chief Librarian)
{%- else -%}
{{ site.title | escape }}
{%- endif -%}
</li>
{%- if site.email -%}
<li><a class="u-email" href="mailto:info@buddhistuniversity.net">info@buddhistuniversity.net</a></li>
{%- endif -%}
</ul>
</div>
<div class="footer-col footer-col-2">
{%- include_cached social.html -%}
</div>
<div class="footer-col footer-col-3">
<p>{{- site.description | escape -}}</p>
</div>
</div>
</div>
</footer>
</body>
</html>