Skip to content

Commit 6614f6c

Browse files
Improve dataset site template debugging (#4)
1 parent 7e23b96 commit 6614f6c

3 files changed

Lines changed: 112 additions & 12 deletions

File tree

OpenActive.DatasetSite.NET.Generator/package-lock.json

Lines changed: 102 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenActive.DatasetSite.NET.Generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"dependencies": {
1414
"@openactive/data-models": "^2.0.285",
15-
"@openactive/dataset-site-template": "^1.0.2",
15+
"@openactive/dataset-site-template": "^1.0.12",
1616
"fs-extra": "^7.0.1",
1717
"sync-request": "^6.0.0"
1818
}

OpenActive.DatasetSite.NET/metadata/DatasetSiteMustacheTemplate.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ public static class DatasetSiteMustacheTemplate
55
{
66
public const string Content = @"
77
<!DOCTYPE HTML>
8+
<!--
9+
OpenActive Dataset Site Template version 1.0.12, from https://unpkg.com/@openactive/dataset-site-template@1.0.12/dist/datasetsite.mustache
10+
-->
811
<!--
912
Design: Identity by HTML5 UP
1013
html5up.net | @ajlkn
@@ -40,6 +43,11 @@ For openactive.io
4043
<meta charset=""utf-8"" />
4144
<meta name=""viewport"" content=""width=device-width, initial-scale=1"" />
4245
46+
<!-- JSON-LD conforming to Google Structured Data specification. -->
47+
<script type=""application/ld+json"">
48+
{{{jsonld}}}
49+
</script>
50+
4351
<link rel=""stylesheet"" href=""https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,600"" crossorigin=""anonymous"">
4452
<style>
4553
/*
@@ -48,8 +56,6 @@ Identity by HTML5 UP
4856
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
4957
*/
5058
51-
52-
5359
/*
5460
Font Awesome 4.7.0
5561
Extracts from: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css
@@ -1167,7 +1173,7 @@ @media screen and (max-width: 360px) {
11671173
11681174
}
11691175
1170-
.metadata {
1176+
.metadata, .always-hidden {
11711177
display: none;
11721178
}
11731179
@@ -1210,11 +1216,6 @@ @media screen and (max-width: 360px) {
12101216
opacity: 1;
12111217
}
12121218
</style>
1213-
1214-
<!-- JSON-LD conforming to Google Structured Data specification. -->
1215-
<script type=""application/ld+json"">
1216-
{{{jsonld}}}
1217-
</script>
12181219
</head>
12191220
<body id=""booking"" background=""{{backgroundImage.url}}"">
12201221
<div class=""outerscene"">

0 commit comments

Comments
 (0)