Merge pull request from matthh9797/add_certificates_section

Add certifications to side bar
This commit is contained in:
Matthew 2023-02-06 11:21:31 +08:00 committed by GitHub
commit 09d9001f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,23 @@
.certificates {
line-height: 2rem;
&__item {
position: relative;
font-size: 1rem;
& > img {
width: 3rem;
height: 3rem;
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}
& > span {
@include vt-center;
}
}
&__link {
text-decoration: none;
color: $color-dark;
}
}

View file

@ -35,5 +35,6 @@ $pages: {{ .Site.Params.pages | default 1}} !default;
@import "components/languages";
@import "components/interests";
@import "components/404";
@import "components/certificates";
@import "custom";

View file

@ -24,6 +24,7 @@
{{ partial "_avatar.html" $data }}
{{ partial "_contacts.html" $data }}
{{ partial "_skills.html" $data }}
{{ partial "_certificates.html" $data }}
{{ partial "_languages.html" $data }}
{{ partial "_diplomas.html" $data }}
{{ partial "_interests.html" $data }}

View file

@ -0,0 +1,16 @@
{{ if .Certificates }}
<div class="sideSection">
<div class="sideSection__heading">
<h2 class="sideSection__title">Certifications</h2>
</div>
<div class="sideSection certificates">
<ul>
{{ range .Certificates }}
<li class="certificates__item">
<img src="{{ .Badge }}"> <span>{{ .Name | safeHTML }}</span>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}