mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
blocks(accomp): add explicit icon field for complex org names
We tried to simplify the process by automatically determining icon name, but in some cases with complex org names containing slashes etc, it may not work so well. Closes #3006
This commit is contained in:
1 parent
655919137d
commit
999dc0706f
2 files changed
+5
-1
No files matched your search
@@ -15,7 +15,8 @@
|
||||
{{ range $idx, $key := sort $block.content.items ".date_start" "desc" }}
|
||||
<div class="card experience course">
|
||||
<div class="card-body">
|
||||
{{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" (replace (lower .organization) " " "_")) -}}
|
||||
{{- $icon := .icon | default (replace (lower .organization) " " "_") }}
|
||||
{{- $svg_icon := resources.Get (printf "media/icons/brands/%s.svg" $icon) -}}
|
||||
{{- if $svg_icon }}
|
||||
<div class="d-flex align-content-start">
|
||||
<div class="mr-2 mb-2">
|
||||
|
||||
@@ -102,6 +102,7 @@ sections:
|
||||
date_end: ''
|
||||
date_start: '2021-01-25'
|
||||
description: ''
|
||||
icon: coursera
|
||||
organization: Coursera
|
||||
organization_url: https://www.coursera.org
|
||||
title: Neural Networks and Deep Learning
|
||||
@@ -110,6 +111,7 @@ sections:
|
||||
date_end: ''
|
||||
date_start: '2021-01-01'
|
||||
description: Formulated informed blockchain models, hypotheses, and use cases.
|
||||
icon: edx
|
||||
organization: edX
|
||||
organization_url: https://www.edx.org
|
||||
title: Blockchain Fundamentals
|
||||
@@ -118,6 +120,7 @@ sections:
|
||||
date_end: '2020-12-21'
|
||||
date_start: '2020-07-01'
|
||||
description: ''
|
||||
icon: datacamp
|
||||
organization: DataCamp
|
||||
organization_url: https://www.datacamp.com
|
||||
title: 'Object-Oriented Programming in R'
|
||||
|
||||
Reference in new issue
Block a user