diff --git a/data/resume.example.yaml b/data/resume.example.yaml new file mode 100644 index 0000000..02a5250 --- /dev/null +++ b/data/resume.example.yaml @@ -0,0 +1,86 @@ +# Meta tag configuration +# All keys correspond to a meta tag name attribute, and value content attribute +# e.g. +meta: + # Set the content for the robots meta tag (noindex to disable search engine indexing) + robots: "index, follow" + language: "en-EN" + author: "Donald Duck" + # theme-color: "#bd93f9" + title: "" + description: "Professional job applicant" + favicon: "" + github-corner: false +theme: "light" +profile: + name: "Donald Duck" + title: "Professional job applicant" + city: "City, Country" + phone: "+358 xx xxx xxxx" + email: "your@email.com" + photo: "url-to-photo" + summary: >- + Insert summary here. Multiple + lines can be used, but line breaks are determined + by the renderer + experience: + - company: Company 1 + location: City, country + title: Professional employee + period: "03/2023 - " + description: + - Each item in this list + - Will be a new item + - In the CV + - company: Company 2 + location: City, country + title: Professional employee + period: "03/2022 - 03/2023" + description: + - Each item in this list + - Will be a new item + - In the CV + - company: Company 3 + location: City, country + title: Professional employee + period: "03/2021 - 03/2022" + description: + - Each item in this list + - Will be a new item + - In the CV + + education: + - degree: B.S. in Job interviews + name: Job interviewee + faculty: School for Job applicants + city: City, Country + period: 1/1996 - 12/1996 + - degree: Undergraduate of CV Authoring + name: Technical writer + faculty: School for Job applicants + city: City, Country + period: 1/1995 - 12/1995 + + skills: + - name: Skill 1 + level: 1 + - name: Skill 2 + level: 2 + - name: Skill 3 + level: 3 + - name: Skill 4 + level: 4 + - name: Skill 5 + level: 5 + languages: + - name: Language 1 + level: 5 + - name: Language 2 + level: 4 + - name: Language 1 + level: 3 + - name: Language 2 + level: 2 + + ## Not implemented yet + socials: [] \ No newline at end of file diff --git a/data/resume.yaml.default b/data/resume.yaml.default deleted file mode 100644 index 1137dce..0000000 --- a/data/resume.yaml.default +++ /dev/null @@ -1,21 +0,0 @@ -# Meta tag configuration -# All keys correspond to a meta tag name attribute, and value content attribute -# e.g. -meta: - # Set the content for the robots meta tag (noindex to disable search engine indexing) - robots: "index, follow" - language: "en-EN" - author: "Job Applicant" - theme-color: "#bd93f9" - ## Set the page title (shown in the browser tab). If empty, "Name - Title" from profile will be used - title: - description: "Professional employee" -theme: "dark" -profile: - name: "Job Applicant" - title: "Professional employee" - city: "Oulu, Finland" - phone: "+358 xx xxx xxxx" - email: "iwannajob@email.com" - photo: "https://url.to/profile/photo" - socials: [] \ No newline at end of file diff --git a/resume.go b/resume.go index 283e668..865ea45 100644 --- a/resume.go +++ b/resume.go @@ -103,12 +103,13 @@ type Social struct { type Socials []Social type Meta struct { - Language string `yaml:"language"` - Author string `yaml:"author"` - Title string `yaml:"title"` - Description string `yaml:"description"` - Robots string `yaml:"robots"` - ThemeColor string `yaml:"theme-color"` + Language string `yaml:"language"` + Author string `yaml:"author"` + Title string `yaml:"title"` + Description string `yaml:"description"` + Robots string `yaml:"robots"` + ThemeColor string `yaml:"theme-color"` + GithubCorner bool `yaml:"github-corner"` } type Language struct { diff --git a/templates/index.html b/templates/index.html index baf28da..385479d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,9 @@ +{{ if .Meta.GithubCorner }} {{ template "githubCorner" }} +{{ end }}