diff --git a/index.js b/index.js index e245076..ea9bd52 100644 --- a/index.js +++ b/index.js @@ -572,13 +572,21 @@ app.get('/resume', async (req, res) => { return res.render('resumeEntry', { badError: true }); } - console.log(unencryptedOrgs) + if (req.query.raw && process.env.NODE_ENV === "development") + return res.json({ + pd: unencryptedPD, + jobs: unencryptedJobs, + education: unencryptedEducation, + orgs: unencryptedOrgs, + // desc: unencryptedDesc + }); res.render('resume', { pd: unencryptedPD, jobs: unencryptedJobs, education: unencryptedEducation, - orgs: unencryptedOrgs + orgs: unencryptedOrgs, + // desc: unencryptedDesc }); }); diff --git a/views/pages/resume.ejs b/views/pages/resume.ejs index a69f49e..15d1324 100644 --- a/views/pages/resume.ejs +++ b/views/pages/resume.ejs @@ -6,6 +6,7 @@ @media print { :root { --color: #FF4000; + font-size: 11pt; } body { @@ -19,6 +20,10 @@ border-left: 4px solid var(--color); } + section { + page-break-inside: avoid; + } + a { color: black; text-decoration: none; @@ -32,6 +37,10 @@ margin-top: -0.5em; } + h3 { + margin-bottom: -0.5rem; + } + p.address, p.pd { margin-left: 1rem; @@ -59,12 +68,15 @@ Hint: Use CTRL P to print this page and get a more readable layout.
+ ++
<% if (org.main && org.main.url) { %>
<%= org.main.title %>
<% } else if (org.main) { %>
@@ -77,21 +89,24 @@
<% } %>
+ <% if (org.main.date) { %>
+ Done <%= org.main.date %>
+ <% } else if (org.main.start) { %>
+ <%= org.main.start %> - <%= org.main.end || "Present" %>
+ <% } %>
<%= org.description %>
- <% if (period.supervisor) { %> +
<%= period.description %>
+ <% if (period.supervisor) { %>
Supervised by <%= period.supervisor %>
<% } %>
-
- <% if (period.date) { %>
- Done <%= period.date %>
- <% } else if (period.start) { %>
- <%= period.start %> - <%= period.end || "Present" %>
+ <% if (period.date) { %>
+ Done <%= period.date %>
+ <% } else if (period.start) { %>
+ <%= period.start %> - <%= period.end || "Present" %>
<% } %>
+ +
<%= school.start || "???" %> - <%= school.end || "Present" %>
- Learned <%= school.experience.join(", ") %>
+
+
- Supervised by <%= period.supervisor %> -
-- <%= period.start || "???" %> - <%= period.end || "Present" %> +
<%= period.description %>
+ Supervised by <%= period.supervisor %>
+ <%= period.start || "???" %> - <%= period.end || "Present" %>
- Learned <%= job.experience.join(", ") %> +