1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-12-23 13:27:23 +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:
Ben Whitney 2017-03-08 17:03:53 -05:00
parent 3cbbc36818
commit 978cedf716
2 changed files with 14 additions and 14 deletions

View File

@ -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
[~ }); ~]
%---------------------------------------------------------

View File

@ -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
[~ }); ~]
%---------------------------------------------------------