Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Mobile page displayed correctly for what's new. No autoscrolling to first link

Mike McGannd44ecbe98b2e
diff --git a/Gruntfile.js b/Gruntfile.js
index e80c8810d..87c046d76 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -329,11 +329,25 @@ module.exports = function(grunt) {
src: "**/*.md",
dest: "build/options/config/metadata",
ext: ".html"
- }
+ },
],
options: {
template: "etc/deploy/metadata.template.html"
}
+ },
+ new: {
+ files: [
+ {
+ expand: true,
+ cwd: "build/options/brand/pages",
+ src: "**/*.md",
+ dest: "build/options/brand/pages",
+ ext: ".html"
+ }
+ ],
+ options: {
+ template: "etc/deploy/new.template.html"
+ }
}
},
@@ -491,7 +505,7 @@ module.exports = function(grunt) {
"clean",
"remove:config_src",
"exec:config",
- "markdown:metadata",
+ "markdown",
"copy:config_src"
]);
diff --git a/etc/deploy/metadata.template.html b/etc/deploy/metadata.template.html
index 3532cbf51..fa82aa42f 100644
--- a/etc/deploy/metadata.template.html
+++ b/etc/deploy/metadata.template.html
@@ -6,7 +6,7 @@
<link type="text/css" href="../../../pages/css/wv.standalone.css?v=@BUILD_NONCE@" rel="Stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
-
+
<body>
<div id="page" class="wv-document">
<%=content%>
diff --git a/etc/deploy/new.template.html b/etc/deploy/new.template.html
new file mode 100644
index 000000000..ea72a2f25
--- /dev/null
+++ b/etc/deploy/new.template.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<html>
+ <head>
+ <title>@OFFICIAL_NAME@ - What's New</title>
+ <link type="text/css" href="../../pages/css/wv.document.css?v=@BUILD_NONCE@" rel="Stylesheet" />
+ <link type="text/css" href="../../pages/css/wv.standalone.css?v=@BUILD_NONCE@" rel="Stylesheet" />
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+
+ <body>
+ <div id="page" class="wv-document">
+ <%=content%>
+ </div>
+ </body>
+</html>
diff --git a/src/pages/css/wv.document.css b/src/pages/css/wv.document.css
index cffc3dd37..475b7ff2e 100644
--- a/src/pages/css/wv.document.css
+++ b/src/pages/css/wv.document.css
@@ -100,5 +100,3 @@
font-style: italic;
text-align: center;
}
-
-
diff --git a/src/pages/license.html b/src/pages/license.html
index 7aa26b49c..d483f9ff5 100644
--- a/src/pages/license.html
+++ b/src/pages/license.html
@@ -380,4 +380,4 @@
</p>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/src/pages/unsupported_browser.html b/src/pages/unsupported_browser.html
index 467cf8bbb..79bb2fd3a 100644
--- a/src/pages/unsupported_browser.html
+++ b/src/pages/unsupported_browser.html
@@ -62,4 +62,4 @@
<a id="continue">Continue anyway</a>
</h4>
</div>
-</body>
\ No newline at end of file
+</body>