-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
90 lines (84 loc) · 4.13 KB
/
main.html
File metadata and controls
90 lines (84 loc) · 4.13 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
{% extends "base.html" %}
{#
Theme override for SEO structured data and a clean homepage <title>.
Schema is gated on page.file.src_path. Homepage uses a connected @graph
(WebSite + SoftwareSourceCode + Organization) per schema review.
#}
{% block htmltitle %}
{%- if page and page.file and page.file.src_path == "index.md" -%}
<title>PyTorch-Wildlife: Open-Source Conservation Deep Learning Framework | Microsoft AI for Good</title>
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock %}
{% block extrahead %}
{{ super() }}
{%- set social_title = page.meta.title if page and page.meta and page.meta.title else (page.title if page and page.title else config.site_name) -%}
{%- set social_desc = page.meta.description if page and page.meta and page.meta.description else config.site_description -%}
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ config.site_name }}">
<meta property="og:title" content="{{ social_title | striptags }}">
<meta property="og:description" content="{{ social_desc | striptags }}">
<meta property="og:url" content="{{ page.canonical_url if page and page.canonical_url else config.site_url }}">
<meta property="og:image" content="{{ config.site_url }}assets/cat.png">
<meta property="og:image:alt" content="PyTorch-Wildlife: open-source conservation deep learning framework by Microsoft AI for Good Lab">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ social_title | striptags }}">
<meta name="twitter:description" content="{{ social_desc | striptags }}">
<meta name="twitter:image" content="{{ config.site_url }}assets/cat.png">
<meta name="twitter:image:alt" content="PyTorch-Wildlife: open-source conservation deep learning framework by Microsoft AI for Good Lab">
{#- TODO(design): swap in a 1200x630 banner + add og:image:width/height when delivered -#}
{%- if page and page.file and page.file.src_path == "index.md" %}
<script type="application/ld+json">
{{- {
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": config.site_url ~ "#website",
"url": config.site_url,
"name": config.site_name,
"inLanguage": "en",
"description": config.site_description,
"publisher": { "@id": "https://www.microsoft.com/en-us/ai/ai-for-good#organization" }
},
{
"@type": "SoftwareSourceCode",
"@id": config.site_url ~ "#software",
"name": config.site_name,
"description": config.site_description,
"url": config.site_url,
"mainEntityOfPage": config.site_url,
"codeRepository": config.repo_url,
"programmingLanguage": "Python",
"runtimePlatform": "Python",
"isAccessibleForFree": true,
"license": "https://github.com/microsoft/Pytorch-Wildlife/blob/main/LICENSE",
"creator": { "@id": "https://www.microsoft.com/en-us/ai/ai-for-good#organization" },
"maintainer": { "@id": "https://www.microsoft.com/en-us/ai/ai-for-good#organization" },
"sameAs": ["https://github.com/microsoft/Pytorch-Wildlife", "https://pypi.org/project/PytorchWildlife/", "https://arxiv.org/abs/2405.12930"],
"keywords": ["PyTorch-Wildlife", "wildlife AI framework", "conservation deep learning framework", "wildlife model zoo", "camera trap detection", "species classification"]
},
{
"@type": "Organization",
"@id": "https://www.microsoft.com/en-us/ai/ai-for-good#organization",
"name": "Microsoft AI for Good Lab",
"url": "https://www.microsoft.com/en-us/ai/ai-for-good"
}
]
} | tojson -}}
</script>
{%- endif %}
{%- if page and page.file and page.file.src_path != "index.md" and page.canonical_url %}
<script type="application/ld+json">
{{- {
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "PyTorch-Wildlife", "item": config.site_url },
{ "@type": "ListItem", "position": 2, "name": page.title | striptags, "item": page.canonical_url }
]
} | tojson -}}
</script>
{%- endif %}
{% endblock %}