mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-11-22 00:00:14 +00:00
Awesome: follow FRESCA in writing section.
1. Writing publishers can be either strings or objects. 2. Writings have summaries, not highlights.
This commit is contained in:
parent
3cbbc36818
commit
978cedf716
@ -12,15 +12,15 @@
|
||||
[~ _.each( r.writing, function(wri) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||
{[~ if (_.isString(wri.publisher)) { ~]
|
||||
[[ wri.publisher]]
|
||||
[~ } else { ~]
|
||||
print( wri.publisher ? wri.publisher.name : 'Unknown' )
|
||||
[~ } ~]} % Publisher
|
||||
{[[ wri.title ]]} % Title
|
||||
{[[ wri.url ]]} % Location
|
||||
{[[ wri.url ]]} % URL
|
||||
{[[ 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 ) ) ~]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
{[[ wri.summary ]]} % Summary
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
@ -12,15 +12,15 @@
|
||||
[~ _.each( r.writing, function(wri) { ~]
|
||||
%---------------------------------------------------------
|
||||
\cventry
|
||||
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
|
||||
{[~ if (_.isString(wri.publisher)) { ~]
|
||||
[[ wri.publisher]]
|
||||
[~ } else { ~]
|
||||
print( wri.publisher ? wri.publisher.name : 'Unknown' )
|
||||
[~ } ~]} % Publisher
|
||||
{[[ wri.title ]]} % Title
|
||||
{[[ wri.url ]]} % Location
|
||||
{[[ wri.url ]]} % URL
|
||||
{[[ 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 ) ) ~]
|
||||
\end{cvitems}
|
||||
[~ } ~]}
|
||||
{[[ wri.summary ]]} % Summary
|
||||
|
||||
[~ }); ~]
|
||||
%---------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user