-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlayout.html
More file actions
99 lines (99 loc) · 3.78 KB
/
layout.html
File metadata and controls
99 lines (99 loc) · 3.78 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
{% extends "!layout.html" %}
{%- block extrahead %}
{{ super() }}
{% set site_name = "University of Alabama Libraries Scholarly API Cookbook" %}
{% set base = (html_baseurl or "https://ua-libraries-research-data-services.github.io/UALIB_ScholarlyAPI_Cookbook/") %}
{% set page_url = base ~ pagename ~ ('' if pagename.endswith('.html') else '.html') %}
<!-- Sitemap -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ base }}sitemap.xml">
{% set og_title = title|striptags %}
{% set site_desc = "Example tutorials for working with scholarly APIs for academic research and teaching using Python and R." %}
<!-- Open Graph -->
<meta property="og:site_name" content="{{ site_name }}" />
<meta property="og:title" content="{{ og_title }}" />
<meta property="og:description" content="{{ site_desc }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ page_url }}" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ og_title }}" />
<meta name="twitter:description" content="{{ site_desc }}" />
<meta name="twitter:image" content="{{ base }}images/UALIB_logo.png">
<meta name="twitter:image:alt" content="{{ title }}">
<!-- LD+JSON -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "{{ base }}#org-ua",
"name": "The University of Alabama",
"alternateName": ["UA", "Bama"],
"url": "https://www.ua.edu/",
"sameAs": [
"https://en.wikipedia.org/wiki/University_of_Alabama"
],
"subOrganization": {
"@type": "Organization",
"@id": "{{ base }}#org-ua-libraries",
"name": "The University of Alabama Libraries",
"alternateName": [
"UA Libraries",
"UALIB",
"University of Alabama Libraries",
"University Libraries"
],
"url": "https://www.lib.ua.edu/",
"subOrganization": [
{
"@type": "Organization",
"@id": "{{ base }}#org-rds",
"name": "Research Data Services",
"alternateName": ["RDS"],
"url": "https://guides.lib.ua.edu/rds/"
},
{
"@type": "Organization",
"@id": "{{ base }}#org-rcs",
"name": "Research Computing Services",
"alternateName": ["RCS"],
"url": "https://guides.lib.ua.edu/RCS/"
}
]
}
},
{
"@type": "WebSite",
"@id": "{{ base }}#website",
"name": "University of Alabama Libraries Scholarly API Cookbook",
"alternateName": [
"UA Libraries Scholarly API Cookbook",
"University Libraries Scholarly API Cookbook",
"UALIB Scholarly API Cookbook",
"Scholarly API Cookbook",
"Scholarly API Guide"
],
"description": "{{ site_desc }}",
"url": "{{ base }}",
"publisher": {
"@id": "{{ base }}#org-ua-libraries"
},
"logo": {
"@type": "ImageObject",
"url": "{{ base }}images/script-a-icon.png"
}
},
{
"@type": "WebPage",
"@id": {{ (page_url ~ "#webpage") | tojson }},
"name": {{ title | striptags | tojson }},
"url": {{ page_url | tojson }},
"dateModified": {{ last_updated | tojson }},
"isPartOf": { "@id": "{{ base }}#website" },
"publisher": { "@id": "{{ base }}#org-ua-libraries" }
}
]
}
</script>
{%- endblock %}