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) { ~]
|
[~ _.each( r.governance, function(gov) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cvhonor
|
\cvhonor
|
||||||
{[[ gov.position ]]} % Position
|
{[[ gov.role ]]} % Position
|
||||||
{[[ gov.organization ]]} % Committee
|
{[[ gov.organization ]]} % Committee
|
||||||
{[[ gov.location ]]} % Location
|
{[[ gov.location ]]} % Location
|
||||||
{[[ h.dateRange( gov ) ]]} % Date(s)
|
{[[ h.date(gov.start) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ edu.title ]]} % Degree
|
{[[ edu.title ]]} % Degree
|
||||||
{[[ edu.institution ]]} % Institution
|
{[[ edu.institution ]]} % Institution
|
||||||
{[[ edu.location ]]} % Location
|
{[[ edu.location ]]} % Location
|
||||||
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
|
{[[ h.dateRange( edu ) ]]} % Date(s)
|
||||||
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) bullet points
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ job.position ]]} % Job title
|
{[[ job.position ]]} % Job title
|
||||||
{[[ job.employer ]]} % Organization
|
{[[ job.employer ]]} % Organization
|
||||||
{[[ job.location ]]} % Location
|
{[[ job.location ]]} % Location
|
||||||
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
|
{[[ h.dateRange( job ) ]]} % Date(s)
|
||||||
{[~ if (job.highlights && job.highlights.length ) { ~]
|
{[~ if (job.highlights && job.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) of tasks/responsibilities
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
[~ _.each( r.extracurricular, function(cur) { ~]
|
[~ _.each( r.extracurricular, function(cur) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cventry
|
\cventry
|
||||||
{[[ cur.role ]]} % Affiliation/role
|
{[[ cur.title ]]} % Affiliation/role
|
||||||
{[[ cur.organization ]]} % Organization/group
|
{[[ cur.activity ]]} % Organization/group
|
||||||
{[[ cur.location ]]} % Location
|
{[[ cur.location ]]} % Location
|
||||||
{[[ h.dateRange(cur) ]]} % Date(s)
|
{[[ h.dateRange(cur) ]]} % Date(s)
|
||||||
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) of experience/contributions/knowledge
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{[[ rgn.title ]]} % Award
|
{[[ rgn.title ]]} % Award
|
||||||
{[[ rgn.from ]]} % Event
|
{[[ rgn.from ]]} % Event
|
||||||
{[[ rgn.location ]]} % Location
|
{[[ rgn.location ]]} % Location
|
||||||
{[[ rgn.date ]]} % Date(s)
|
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
@ -44,7 +44,7 @@
|
|||||||
{[[ rgn.title ]]} % Award
|
{[[ rgn.title ]]} % Award
|
||||||
{[[ rgn.from ]]} % Event
|
{[[ rgn.from ]]} % Event
|
||||||
{[[ rgn.location ]]} % Location
|
{[[ rgn.location ]]} % Location
|
||||||
{[[ rgn.date ]]} % Date(s)
|
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ spk.title ]]} % Role
|
{[[ spk.title ]]} % Role
|
||||||
{[[ spk.event ]])} % Event
|
{[[ spk.event ]])} % Event
|
||||||
{[[ spk.location ]]} % Location
|
{[[ spk.location ]]} % Location
|
||||||
{[[ spk.date ]]} % Date(s)
|
{[[ h.date(spk.date) ]]} % Date(s)
|
||||||
{[~ if (r.speaking && r.speaking.length) { ~]
|
{[~ if (r.speaking && r.speaking.length) { ~]
|
||||||
\begin{cvitems} % Description(s)
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
[~ _.each( r.writing, function(wri) { ~]
|
[~ _.each( r.writing, function(wri) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cventry
|
\cventry
|
||||||
{[[ wri.title ]]} % Role
|
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||||
{[[ wri.publisher ]]} % Title
|
{[[ wri.title ]]} % Title
|
||||||
{[[ wri.url ]]} % Location
|
{[[ wri.url ]]} % Location
|
||||||
{[[ wri.date ]]} % Date(s)
|
{[[ h.date(wri.date) ]]} % Date(s)
|
||||||
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
||||||
\begin{cvitems} % Description(s)
|
\begin{cvitems} % Description(s)
|
||||||
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
[~ _.each( r.governance, function(gov) { ~]
|
[~ _.each( r.governance, function(gov) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cvhonor
|
\cvhonor
|
||||||
{[[ gov.position ]]} % Position
|
{[[ gov.role ]]} % Position
|
||||||
{[[ gov.organization ]]} % Committee
|
{[[ gov.organization ]]} % Committee
|
||||||
{[[ gov.location ]]} % Location
|
{[[ gov.location ]]} % Location
|
||||||
{[[ h.dateRange( gov ) ]]} % Date(s)
|
{[[ h.date(gov.start) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ edu.title ]]} % Degree
|
{[[ edu.title ]]} % Degree
|
||||||
{[[ edu.institution ]]} % Institution
|
{[[ edu.institution ]]} % Institution
|
||||||
{[[ edu.location ]]} % Location
|
{[[ edu.location ]]} % Location
|
||||||
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
|
{[[ h.dateRange( edu ) ]]} % Date(s)
|
||||||
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
{[~ if( edu.highlights && edu.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) bullet points
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ job.position ]]} % Job title
|
{[[ job.position ]]} % Job title
|
||||||
{[[ job.employer ]]} % Organization
|
{[[ job.employer ]]} % Organization
|
||||||
{[[ job.location ]]} % Location
|
{[[ job.location ]]} % Location
|
||||||
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
|
{[[ h.dateRange( job ) ]]} % Date(s)
|
||||||
{[~ if (job.highlights && job.highlights.length ) { ~]
|
{[~ if (job.highlights && job.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) of tasks/responsibilities
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
[~ _.each( r.extracurricular, function(cur) { ~]
|
[~ _.each( r.extracurricular, function(cur) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cventry
|
\cventry
|
||||||
{[[ cur.role ]]} % Affiliation/role
|
{[[ cur.title ]]} % Affiliation/role
|
||||||
{[[ cur.organization ]]} % Organization/group
|
{[[ cur.activity ]]} % Organization/group
|
||||||
{[[ cur.location ]]} % Location
|
{[[ cur.location ]]} % Location
|
||||||
{[[ h.dateRange(cur) ]]} % Date(s)
|
{[[ h.dateRange(cur) ]]} % Date(s)
|
||||||
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
{[~ if (cur.highlights && cur.highlights.length ) { ~]
|
||||||
\begin{cvitems} % Description(s) of experience/contributions/knowledge
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{[[ rgn.title ]]} % Award
|
{[[ rgn.title ]]} % Award
|
||||||
{[[ rgn.from ]]} % Event
|
{[[ rgn.from ]]} % Event
|
||||||
{[[ rgn.location ]]} % Location
|
{[[ rgn.location ]]} % Location
|
||||||
{[[ rgn.date ]]} % Date(s)
|
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
@ -44,7 +44,7 @@
|
|||||||
{[[ rgn.title ]]} % Award
|
{[[ rgn.title ]]} % Award
|
||||||
{[[ rgn.from ]]} % Event
|
{[[ rgn.from ]]} % Event
|
||||||
{[[ rgn.location ]]} % Location
|
{[[ rgn.location ]]} % Location
|
||||||
{[[ rgn.date ]]} % Date(s)
|
{[[ h.date(rgn.date) ]]} % Date(s)
|
||||||
|
|
||||||
[~ }); ~]
|
[~ }); ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
{[[ spk.title ]]} % Role
|
{[[ spk.title ]]} % Role
|
||||||
{[[ spk.event ]])} % Event
|
{[[ spk.event ]])} % Event
|
||||||
{[[ spk.location ]]} % Location
|
{[[ spk.location ]]} % Location
|
||||||
{[[ spk.date ]]} % Date(s)
|
{[[ h.date(spk.date) ]]} % Date(s)
|
||||||
{[~ if (r.speaking && r.speaking.length) { ~]
|
{[~ if (r.speaking && r.speaking.length) { ~]
|
||||||
\begin{cvitems} % Description(s)
|
\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}
|
\end{cvitems}
|
||||||
[~ } ~]}
|
[~ } ~]}
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
[~ _.each( r.writing, function(wri) { ~]
|
[~ _.each( r.writing, function(wri) { ~]
|
||||||
%---------------------------------------------------------
|
%---------------------------------------------------------
|
||||||
\cventry
|
\cventry
|
||||||
{[[ wri.title ]]} % Role
|
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||||
{[[ wri.publisher ]]} % Title
|
{[[ wri.title ]]} % Title
|
||||||
{[[ wri.url ]]} % Location
|
{[[ wri.url ]]} % Location
|
||||||
{[[ wri.date ]]} % Date(s)
|
{[[ h.date(wri.date) ]]} % Date(s)
|
||||||
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
{[~ if (wri.highlights && wri.highlights.length) { ~]
|
||||||
\begin{cvitems} % Description(s)
|
\begin{cvitems} % Description(s)
|
||||||
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
|
||||||
|
Loading…
Reference in New Issue
Block a user