Add a hide field

This commit is contained in:
Arnaud Ysmal 2021-02-01 22:16:53 +01:00
parent ed190ef35a
commit 5b68510c0d
6 changed files with 13 additions and 9 deletions

View File

@ -105,6 +105,7 @@ type Highlight struct {
// Work is the work details of the resume owner. // Work is the work details of the resume owner.
type Work struct { type Work struct {
Name string `json:"name"` Name string `json:"name"`
Hide bool `json:"hide"`
Location string `json:"location"` Location string `json:"location"`
Description string `json:"description"` Description string `json:"description"`
Position string `json:"position"` Position string `json:"position"`
@ -119,6 +120,7 @@ type Work struct {
// Volunteer is the volunteer details of the resume owner. // Volunteer is the volunteer details of the resume owner.
type Volunteer struct { type Volunteer struct {
Organization string `json:"organization"` Organization string `json:"organization"`
Hide bool `json:"hide"`
Position string `json:"position"` Position string `json:"position"`
URL string `json:"url"` URL string `json:"url"`
StartDate ResumeDate `json:"startDate"` StartDate ResumeDate `json:"startDate"`
@ -131,6 +133,7 @@ type Volunteer struct {
// Education is the education details of the resume owner. // Education is the education details of the resume owner.
type Education struct { type Education struct {
Institution string `json:"institution"` Institution string `json:"institution"`
Hide bool `json:"hide"`
Area string `json:"area"` Area string `json:"area"`
StudyType string `json:"studyType"` StudyType string `json:"studyType"`
StartDate ResumeDate `json:"startDate"` StartDate ResumeDate `json:"startDate"`
@ -184,6 +187,7 @@ type Reference struct {
// Volunteer is the volunteer details of the resume owner. // Volunteer is the volunteer details of the resume owner.
type Project struct { type Project struct {
Name string `json:"name"` Name string `json:"name"`
Hide bool `json:"hide"`
Description string `json:"description"` Description string `json:"description"`
Highlights []Highlight `json:"highlights"` Highlights []Highlight `json:"highlights"`
Keywords []string `json:"keywords"` Keywords []string `json:"keywords"`

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@
<!-- WORK EXPERIENCE --> <!-- WORK EXPERIENCE -->
<div class="box"> <div class="box">
<h2><i class= "fa fa-suitcase ico"></i> {{.Lang.WorkExperience}}</h2> <h2><i class= "fa fa-suitcase ico"></i> {{.Lang.WorkExperience}}</h2>
{{range .Work -}} {{range .Work -}}{{if not .Hide}}
<div class="job clearfix"> <div class="job clearfix">
<div class="row"> <div class="row">
<div class="details"> <div class="details">
@ -77,7 +77,7 @@
</div> </div>
</div> </div>
</div> </div>
{{- end}} {{- end}}{{- end}}
</div> </div>
{{- end}} {{- end}}
{{if .Awards -}} {{if .Awards -}}

View File

@ -122,7 +122,7 @@
<h2 class='section-title'>{{.Lang.WorkExperience}} <span class="item-count">({{len .Work}})</span></h2> <h2 class='section-title'>{{.Lang.WorkExperience}} <span class="item-count">({{len .Work}})</span></h2>
</header> </header>
<section id="work"> <section id="work">
{{range $index, $w := .Work}} {{range $index, $w := .Work}}{{if not .Hide}}
<section class="work-item"> <section class="work-item">
{{if $w.Name -}} {{if $w.Name -}}
{{if eq $index 0 -}} {{if eq $index 0 -}}
@ -168,7 +168,7 @@
</ul>{{end}} </ul>{{end}}
</div> </div>
</section> </section>
{{- end}} {{- end}}{{- end}}
</section> </section>
</section> </section>
{{- end}} {{- end}}

File diff suppressed because one or more lines are too long

View File

@ -93,7 +93,7 @@ func themesTexResume_templateTex() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "themes/tex/resume_template.tex", size: 2733, mode: os.FileMode(420), modTime: time.Unix(1612105960, 0)} info := bindataFileInfo{name: "themes/tex/resume_template.tex", size: 2733, mode: os.FileMode(420), modTime: time.Unix(1612134982, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }