mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-11-25 01:20:10 +00:00
Awesome: Improve date handling.
This commit is contained in:
parent
3d2b6318ed
commit
a9f002e89a
@ -12,10 +12,10 @@
|
||||
[~ _.each( r.governance, function(gov) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cvhonor
|
||||
{[[ gov.position ]]} % Position
|
||||
{[[ gov.role ]]} % Position
|
||||
{[[ gov.organization ]]} % Committee
|
||||
{[[ gov.location ]]} % Location
|
||||
{[[ h.dateRange( gov ) ]]} % Date(s)
|
||||
{[[ h.date(gov.start) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ edu.title ]]} % Degree
|
||||
{[[ edu.institution ]]} % Institution
|
||||
{[[ edu.location ]]} % Location
|
||||
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
|
||||
{[[ h.dateRange( edu ) ]]} % Date(s)
|
||||
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) bullet points
|
||||
[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ job.position ]]} % Job title
|
||||
{[[ job.employer ]]} % Organization
|
||||
{[[ job.location ]]} % Location
|
||||
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
|
||||
{[[ h.dateRange( job ) ]]} % Date(s)
|
||||
{[~ if (job.highlights && job.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) of tasks/responsibilities
|
||||
[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -12,13 +12,13 @@
|
||||
[~ _.each( r.extracurricular, function(cur) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[[ cur.role ]]} % Affiliation/role
|
||||
{[[ cur.organization ]]} % Organization/group
|
||||
{[[ cur.title ]]} % Affiliation/role
|
||||
{[[ cur.activity ]]} % Organization/group
|
||||
{[[ cur.location ]]} % Location
|
||||
{[[ h.dateRange(cur) ]]} % Date(s)
|
||||
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) of experience/contributions/knowledge
|
||||
[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
{[[ rgn.title ]]} % Award
|
||||
{[[ rgn.from ]]} % Event
|
||||
{[[ rgn.location ]]} % Location
|
||||
{[[ rgn.date ]]} % Date(s)
|
||||
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
@ -44,7 +44,7 @@
|
||||
{[[ rgn.title ]]} % Award
|
||||
{[[ rgn.from ]]} % Event
|
||||
{[[ rgn.location ]]} % Location
|
||||
{[[ rgn.date ]]} % Date(s)
|
||||
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ spk.title ]]} % Role
|
||||
{[[ spk.event ]])} % Event
|
||||
{[[ spk.location ]]} % Location
|
||||
{[[ spk.date ]]} % Date(s)
|
||||
{[[ h.date(spk.date) ]]} % Date(s)
|
||||
{[~ if (r.speaking && r.speaking.length) { ~]
|
||||
\begin{cvitems} % Description(s)
|
||||
[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -12,10 +12,10 @@
|
||||
[~ _.each( r.writing, function(wri) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[[ wri.title ]]} % Role
|
||||
{[[ wri.publisher ]]} % Title
|
||||
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||
{[[ wri.title ]]} % Title
|
||||
{[[ wri.url ]]} % Location
|
||||
{[[ wri.date ]]} % Date(s)
|
||||
{[[ h.date(wri.date) ]]} % Date(s)
|
||||
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
||||
\begin{cvitems} % Description(s)
|
||||
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
|
@ -12,10 +12,10 @@
|
||||
[~ _.each( r.governance, function(gov) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cvhonor
|
||||
{[[ gov.position ]]} % Position
|
||||
{[[ gov.role ]]} % Position
|
||||
{[[ gov.organization ]]} % Committee
|
||||
{[[ gov.location ]]} % Location
|
||||
{[[ h.dateRange( gov ) ]]} % Date(s)
|
||||
{[[ h.date(gov.start) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ edu.title ]]} % Degree
|
||||
{[[ edu.institution ]]} % Institution
|
||||
{[[ edu.location ]]} % Location
|
||||
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
|
||||
{[[ h.dateRange( edu ) ]]} % Date(s)
|
||||
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) bullet points
|
||||
[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ job.position ]]} % Job title
|
||||
{[[ job.employer ]]} % Organization
|
||||
{[[ job.location ]]} % Location
|
||||
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
|
||||
{[[ h.dateRange( job ) ]]} % Date(s)
|
||||
{[~ if (job.highlights && job.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) of tasks/responsibilities
|
||||
[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -12,13 +12,13 @@
|
||||
[~ _.each( r.extracurricular, function(cur) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[[ cur.role ]]} % Affiliation/role
|
||||
{[[ cur.organization ]]} % Organization/group
|
||||
{[[ cur.title ]]} % Affiliation/role
|
||||
{[[ cur.activity ]]} % Organization/group
|
||||
{[[ cur.location ]]} % Location
|
||||
{[[ h.dateRange(cur) ]]} % Date(s)
|
||||
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
||||
\begin{cvitems} % Description(s) of experience/contributions/knowledge
|
||||
[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
{[[ rgn.title ]]} % Award
|
||||
{[[ rgn.from ]]} % Event
|
||||
{[[ rgn.location ]]} % Location
|
||||
{[[ rgn.date ]]} % Date(s)
|
||||
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
@ -44,7 +44,7 @@
|
||||
{[[ rgn.title ]]} % Award
|
||||
{[[ rgn.from ]]} % Event
|
||||
{[[ rgn.location ]]} % Location
|
||||
{[[ rgn.date ]]} % Date(s)
|
||||
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
@ -15,10 +15,10 @@
|
||||
{[[ spk.title ]]} % Role
|
||||
{[[ spk.event ]])} % Event
|
||||
{[[ spk.location ]]} % Location
|
||||
{[[ spk.date ]]} % Date(s)
|
||||
{[[ h.date(spk.date) ]]} % Date(s)
|
||||
{[~ if (r.speaking && r.speaking.length) { ~]
|
||||
\begin{cvitems} % Description(s)
|
||||
[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
|
||||
|
@ -12,10 +12,10 @@
|
||||
[~ _.each( r.writing, function(wri) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[[ wri.title ]]} % Role
|
||||
{[[ wri.publisher ]]} % Title
|
||||
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||
{[[ wri.title ]]} % Title
|
||||
{[[ wri.url ]]} % Location
|
||||
{[[ wri.date ]]} % Date(s)
|
||||
{[[ h.date(wri.date) ]]} % Date(s)
|
||||
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
||||
\begin{cvitems} % Description(s)
|
||||
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||
|
Loading…
Reference in New Issue
Block a user