-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcopyedit.html
22 lines (16 loc) · 1.2 KB
/
copyedit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%
var m = s => (COPY.metadata && COPY.metadata[s]) || `__${s.toUpperCase()}__`;
%>This graphic accompanies <%= m("author") %>'s story, running <%= m("time") %>, about <%= m("subject") %>.
Story ID: <% if (typeof COPY.metadata["seamus_id"] != "undefined") { %><%= COPY.metadata["seamus_id"] %><% } else { %><%= m("story_id") %><% } %>
Story headline: <%= m("story_hed") %>
Preview URL (may expire): <%= m("preview_url") %>
Expected run date: <%= m("time") %>
Primary graphics contact: <%= "user" in config ? config.user.displayName : "__GRAPHICS_CONTACT__" %>
Primary editorial contact: <%= m("editorial_contact") %>
---- GRAPHIC <%= slug %> ----
<% if (typeof children != "undefined" && children) { %>
NOTE: This graphic contains multiple sections that will be embedded as separate graphics. On the preview page, use the dropdown box above the graphic to preview each section.
<% } %>
Spreadsheet URL: https://docs.google.com/spreadsheets/d/<%= sheet %>/edit#gid=0
Production URL: https://<%= config.deployment.bucket %>/<%= config.deployment.prefix %>/<%= slug %>/preview.html
<% Object.keys(COPY.labels).filter(k => COPY.labels[k]).forEach(key => print(`\n${key}: ${COPY.labels[key]}\n`)); %>