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,4 +1,4 @@
{{ 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 }}
@ -6,3 +6,4 @@
{{ 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">
@ -12,3 +13,4 @@
</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">
@ -37,3 +38,4 @@
</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">
@ -12,3 +13,4 @@
</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">
@ -12,3 +13,4 @@
</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">
@ -10,3 +11,4 @@
</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">
@ -19,3 +20,4 @@
</ul> </ul>
</div> </div>
</div> </div>
{{ end }}