-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
fixes #286 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not merge. This will put the page behind the paywall.
@@ -1,4 +1,7 @@ | |||
@import 'o-grid/main'; | |||
@import 'o-fonts/main'; | |||
|
|||
@include oFontsInclude(MetricWeb, medium); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't. We don't need every font. I'll change the font weight CSS instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do need this font. It's used all over the place. The Semibold is only used in one place, we should remove that if we need to remove one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Things should be changed to semi bold. I you remember, this change happen during the run up to Brexit too. We've limited the font set to keep it as close as possible to the rest of the site.
@@ -10,7 +10,7 @@ | |||
] | |||
%} | |||
{% set scripts = [ | |||
'main.js', | |||
'main.entry.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The browserify default is for *.entry.js
to be treated as an entry. I could rename the file back to main.js
and just configure browserify to treat main.js
as an entry instead, if you prefer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine.
const port = server.address().port; | ||
console.log(`running ${host} ${port}`); | ||
console.log(`running http://localhost:${port}/`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about prod. That's not local host.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -100,7 +98,7 @@ app.get('/__access_metadata', (req, res) => { | |||
res.setHeader('Content-Type', 'application/json'); | |||
res.setHeader('Cache-Control', `public, max-age=86400`); | |||
res.send(` | |||
{"access_metadata":[{"path_regex":"\/us-elections*","classification":"unconditional"}, | |||
{"access_metadata":[{"path_regex":"/us-elections*","classification":"unconditional"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The slash is needed. Do not merge this!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah the linter complained about it as unnecessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that backslash is supposed to be in the output, it should be \\
.
\\/
translates to\/
\/
translates to/
/
translates to/
which do we want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I need to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ok, just needed to also check the access service docs
No description provided.