Make sections optional

This commit is contained in:
Ines Almeida 2020-08-16 20:49:25 +01:00
parent cf7e62b48e
commit b93bcb9a8b
13 changed files with 33 additions and 14 deletions

View file

@ -1,6 +1,6 @@
baseURL = "cv/" baseURL = "https://example.com/"
languageCode = "en-us" languageCode = "en-us"
title = "Inês Almeida - CV" title = "Example - CV"
theme = "cv-almeida" theme = "cv-almeida"
[params] [params]

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"Target":"style.main.min.b7c611a93c956592ba774891606aea4461d163bda3f2d097aaab691ae16c5f17.css","MediaType":"text/css","Data":{"Integrity":"sha256-t8YRqTyVZZK6d0iRYGrqRGHRY72j8tCXqqtpGuFsXxc="}}

View file

Before

Width:  |  Height:  |  Size: 465 KiB

After

Width:  |  Height:  |  Size: 465 KiB

View file

@ -1,5 +1,7 @@
<div class="sideSection avatar"> {{ if .Site.Data.content.BasicInfo.Photo }}
<div class="avatar__container"> <div class="sideSection avatar">
<img class="avatar__img" src="{{ .Site.Data.content.BasicInfo.Photo }}" alt="photo of me"> <div class="avatar__container">
<img class="avatar__img" src="{{ .Site.Data.content.BasicInfo.Photo }}" alt="photo of me">
</div>
</div> </div>
</div> {{ end }}

View file

@ -1,8 +1,9 @@
{{ if .Site.Data.content.BasicInfo.Contacts }}
<div class="sideSection contact"> <div class="sideSection contact">
<ul> <ul>
{{ range .Site.Data.content.BasicInfo.Contacts }} {{ range .Site.Data.content.BasicInfo.Contacts }}
<li class="contact__item"><i class="{{ .Icon }}"></i><span>{{ .Info }}</span></li> <li class="contact__item"><i class="{{ .Icon }}"></i><span>{{ .Info }}</span></li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Diplomas }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title"> <h2 class="sideSection__title">
@ -11,4 +12,5 @@
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Education }}
<div id="education" class="section"> <div id="education" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title"> <h2 class="section__title">
@ -15,3 +16,4 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Experience }}
<div id="experience" class="section"> <div id="experience" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title"> <h2 class="section__title">
@ -36,4 +37,5 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Interests }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title"> <h2 class="sideSection__title">
@ -11,4 +12,5 @@
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Languages }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title"> <h2 class="sideSection__title">
@ -11,4 +12,5 @@
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Profile }}
<div id="profile" class="section"> <div id="profile" class="section">
<div class="section__heading"> <div class="section__heading">
<h2 class="section__title"> <h2 class="section__title">
@ -9,4 +10,5 @@
{{.Site.Data.content.Profile}} {{.Site.Data.content.Profile}}
</p> </p>
</div> </div>
</div> </div>
{{ end }}

View file

@ -1,3 +1,4 @@
{{ if .Site.Data.content.Skills }}
<div class="sideSection"> <div class="sideSection">
<div class="sideSection__heading"> <div class="sideSection__heading">
<h2 class="sideSection__title"> <h2 class="sideSection__title">
@ -18,4 +19,5 @@
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
{{ end }}