From 87f4bd2efc942746d7968c2d224f5328accc0761 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 22 Jan 2016 05:57:09 -0500 Subject: [PATCH] Add "info" section partial. --- partials/html/section/info.hbs | 11 +++++++++ partials/md/section/info.hbs | 1 + partials/txt/section/info.hbs | 1 + themes/basis/src/md.txt | 2 +- themes/basis/src/txt.txt | 2 +- themes/compact/src/compact-html.html | 8 ++---- themes/modern/src/modern-html.html | 35 +++----------------------- themes/modern/src/modern-pdf.html | 37 +++++----------------------- 8 files changed, 27 insertions(+), 70 deletions(-) create mode 100644 partials/html/section/info.hbs create mode 100644 partials/md/section/info.hbs create mode 100644 partials/txt/section/info.hbs diff --git a/partials/html/section/info.hbs b/partials/html/section/info.hbs new file mode 100644 index 0000000..e7a97de --- /dev/null +++ b/partials/html/section/info.hbs @@ -0,0 +1,11 @@ +{{#has 'info.brief'}} +
+
+ {{#> header-info }} + {{> header-icon _title="About" _section="info" _hdricon=(lookup . '_icon') }} + {{/header-info}} + {{#> body-info }} + {{{ r.info.brief }}} + {{/body-info}} +
+{{/has}} diff --git a/partials/md/section/info.hbs b/partials/md/section/info.hbs new file mode 100644 index 0000000..900069b --- /dev/null +++ b/partials/md/section/info.hbs @@ -0,0 +1 @@ +{{#has 'info.brief' }}{{{ r.info.brief }}}{{/has}} diff --git a/partials/txt/section/info.hbs b/partials/txt/section/info.hbs new file mode 100644 index 0000000..900069b --- /dev/null +++ b/partials/txt/section/info.hbs @@ -0,0 +1 @@ +{{#has 'info.brief' }}{{{ r.info.brief }}}{{/has}} diff --git a/themes/basis/src/md.txt b/themes/basis/src/md.txt index 748fc7a..2f118a0 100644 --- a/themes/basis/src/md.txt +++ b/themes/basis/src/md.txt @@ -4,7 +4,7 @@ {{#has 'contact.phone' }}Tel: {{{ r.contact.phone }}}{{/has}} {{#has 'contact.website' }}Web: {{{ r.contact.website }}}{{/has}} -{{#has "info.brief" }}{{{ r.info.brief }}}{{/has}} +{{> section/info }} {{> section/skills }} diff --git a/themes/basis/src/txt.txt b/themes/basis/src/txt.txt index 732464c..157db48 100644 --- a/themes/basis/src/txt.txt +++ b/themes/basis/src/txt.txt @@ -4,7 +4,7 @@ {{#has 'contact.website' }}Web: {{{ r.contact.website }}}{{/has}} ================================================================================ -{{#has 'info.brief' }}{{{ r.info.brief }}}{{/has}} +{{> section/info }} {{> section/skills }} diff --git a/themes/compact/src/compact-html.html b/themes/compact/src/compact-html.html index 4f99aa4..70f04c7 100644 --- a/themes/compact/src/compact-html.html +++ b/themes/compact/src/compact-html.html @@ -23,6 +23,7 @@ -->}} +{{#*inline "icon-info"}}{{/inline}} {{#*inline "icon-skills"}}{{/inline}} {{#*inline "icon-employment"}}{{/inline}} {{#*inline "icon-projects"}}{{/inline}} @@ -79,12 +80,7 @@ -->}} -{{#has "info.brief"}} -
- {{{ r.info.brief }}} -
-{{/has}} - +{{> section/info _icon="icon-info"}} {{> section/skills _icon="icon-skills"}} {{> section/employment _icon="icon-employment"}} {{> section/projects _icon="icon-projects"}} diff --git a/themes/modern/src/modern-html.html b/themes/modern/src/modern-html.html index da5d36c..1f3c915 100644 --- a/themes/modern/src/modern-html.html +++ b/themes/modern/src/modern-html.html @@ -98,38 +98,11 @@ {{!}} -{{#has 'info.brief'}} -
-
- - {{!}} - -

{{{sectionTitle "info" "About"}}}

- - - {{!}} - - {{{ r.info.brief }}} -
-{{/has}} +{{#*inline "icon-info"}}{{/inline}} +{{> section/info _icon="icon-info" }} {{! }} - {{{styleSheet "modern-pdf.css" "embed"}}} + {{{styleSheet "modern-html.css"}}} {{! }} -{{#has 'info.brief'}} -
-
- - {{!}} - -

{{{sectionTitle "info" "About"}}}

- - - {{!}} - - {{{ r.info.brief }}} -
-{{/has}} +{{#*inline "icon-info"}}{{/inline}} +{{> section/info _icon="icon-info" }} {{!