diff --git a/wowchemy/assets/media/icons/brands/coursera.svg b/wowchemy/assets/media/icons/brands/coursera.svg new file mode 100644 index 00000000..24d14bfc --- /dev/null +++ b/wowchemy/assets/media/icons/brands/coursera.svg @@ -0,0 +1 @@ + diff --git a/wowchemy/assets/media/icons/brands/datacamp.svg b/wowchemy/assets/media/icons/brands/datacamp.svg new file mode 100644 index 00000000..5fc921e6 --- /dev/null +++ b/wowchemy/assets/media/icons/brands/datacamp.svg @@ -0,0 +1 @@ + diff --git a/wowchemy/assets/media/icons/brands/edx.svg b/wowchemy/assets/media/icons/brands/edx.svg new file mode 100644 index 00000000..5f82f51f --- /dev/null +++ b/wowchemy/assets/media/icons/brands/edx.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/wowchemy/layouts/partials/book_menu.html b/wowchemy/layouts/partials/book_menu.html index 967ef89c..9308f512 100644 --- a/wowchemy/layouts/partials/book_menu.html +++ b/wowchemy/layouts/partials/book_menu.html @@ -24,7 +24,7 @@ {{- if eq $pack "emoji" -}} {{- . | emojify -}} {{- else if eq $pack "custom" -}} - {{- $svg_icon := resources.Get (printf "media/icon-pack/%s.svg" .) -}} + {{- $svg_icon := resources.Get (printf "media/icons/%s.svg" .) -}} {{- if $svg_icon -}} {{ $icon = printf "\"%s\"" $svg_icon.RelPermalink . }} {{- end -}} diff --git a/wowchemy/layouts/partials/widgets/accomplishments.html b/wowchemy/layouts/partials/widgets/accomplishments.html index 21a27b30..0a6359a3 100644 --- a/wowchemy/layouts/partials/widgets/accomplishments.html +++ b/wowchemy/layouts/partials/widgets/accomplishments.html @@ -10,22 +10,38 @@ {{ range $idx, $key := sort $page.Params.item ".date_start" "desc" }}
- {{- with .url -}}{{- end -}} -
{{.title | markdownify | emojify}}
- {{- with .url -}}
{{- end -}} + {{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" (replace (lower .organization) " " "_")) -}} + {{- if $svg_icon }} +
+
+ {{- with .organization_url}}{{end -}} + {{.organization | plainify}} + {{- with .organization_url}}{{end -}} +
+
+ {{ end }} -
+ {{end}} {{with .description}}
{{. | markdownify | emojify}}
diff --git a/wowchemy/layouts/partials/widgets/experience.html b/wowchemy/layouts/partials/widgets/experience.html index 0cd8c5af..1e3d3fd8 100644 --- a/wowchemy/layouts/partials/widgets/experience.html +++ b/wowchemy/layouts/partials/widgets/experience.html @@ -28,22 +28,40 @@
-
{{.title | markdownify | emojify}}
- -
- {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} – - {{ if .date_end}} - {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }} - {{else}} - {{ i18n "present" | default "Present" }} - {{end}} - {{with .location}} - - {{.}} - {{end}} + + {{- if .company_logo}} +
+
+ {{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" .company_logo) -}} + {{- with .company_url}}{{end -}} + {{.company | plainify}} + {{- with .company_url}}{{end -}} +
+
+ {{ end }} + +
{{.title | markdownify | emojify}}
+ +
+ {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} – + {{ if .date_end}} + {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }} + {{else}} + {{ i18n "present" | default "Present" }} + {{end}} + {{with .location}} + + {{.}} + {{end}} +
+ + {{- if .company_logo}} +
+ {{end}} + {{with .description}}
{{. | markdownify | emojify}}
{{end}}
diff --git a/wowchemy/layouts/partials/widgets/featurette.html b/wowchemy/layouts/partials/widgets/featurette.html index 8e3c7b70..237b33b4 100644 --- a/wowchemy/layouts/partials/widgets/featurette.html +++ b/wowchemy/layouts/partials/widgets/featurette.html @@ -27,7 +27,7 @@ {{- if eq $pack "emoji" -}} {{- . | emojify -}} {{- else if eq $pack "custom" -}} - {{- $svg_icon := resources.Get (printf "media/icon-pack/%s.svg" .) -}} + {{- $svg_icon := resources.Get (printf "media/icons/%s.svg" .) -}} {{- if $svg_icon -}}{{.}}{{- end -}} {{- else -}}