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

File diff suppressed because one or more lines are too long

View File

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

View File

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