diff options
author | Tyler Lawson <tylerjlawson2@gmail.com> | 2021-01-22 08:15:47 +0300 |
---|---|---|
committer | Tyler Lawson <tylerjlawson2@gmail.com> | 2021-01-22 08:15:47 +0300 |
commit | 4d979d130ac0798f4e048f334d62b0e696ae5f36 (patch) | |
tree | 78cd66954dbd3047463eaae98a58c352adebde16 | |
parent | 6a116ff02d1e99fe0caf8852488d2da80c971c34 (diff) |
prettified
-rw-r--r-- | README.md | 18 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 8 | ||||
-rw-r--r-- | layouts/index.html | 64 | ||||
-rw-r--r-- | layouts/partials/experiences.html | 23 | ||||
-rw-r--r-- | layouts/partials/head.html | 5 | ||||
-rw-r--r-- | layouts/partials/header.html | 16 | ||||
-rw-r--r-- | layouts/partials/schools.html | 23 |
7 files changed, 88 insertions, 69 deletions
@@ -1,28 +1,36 @@ # Simple Resume Theme + This theme is meant to create a web based, simple resume, that you can print. ![Screenshot](https://raw.githubusercontent.com/tylerjlawson/simple-resume/3495ff7d4351510595820d08a7f3b01733197e75/images/tn.png) ## Features - - Web based resume - - Printable - - Straightforward/simple design + +- Web based resume +- Printable +- Straightforward/simple design ## Install theme on your hugo site + ``` hugo new site your-site-name # if you already have a site ignore this line and the next cd your-site-name cd themes git clone https://github.com/tylerjlawson/simple-resume.git -``` +``` + Once you have done this, you may use the `exampleSite` folder as an example for how to set your project up. The two main things to pay attention to is to first set this in your `config.toml` file: + ```toml theme = "simple-resume" ``` + Then you will need to replicate the data used in the `exampleSite/data/content.toml` file to fill in the fields for your resume. ## Print your Resume + You can print the page straight to a pdf or to paper if you wish. I have had best luck printing with the margins set to 'minimum', but you can set custom margins when printing if it looks off to you. -## Contributing +## Contributing + Please feel free to post issues or make pull requests at any time. I am always open to collaboration. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 662f8c7..9803849 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> - {{- partial "head.html" . -}} - <body> - {{- block "main" . }}{{- end }} - </body> + {{- partial "head.html" . -}} + <body> + {{- block "main" . }}{{- end }} + </body> </html> diff --git a/layouts/index.html b/layouts/index.html index 4fdc5f9..b851493 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,35 +1,35 @@ {{ define "main" }} -<main> - {{ with .Site.Data.content }} - <div class="box"> - <div class="wrap"> - {{ partial "header.html" . }} - {{ with .objective}} - <div> - <h2>Objective</h2> - <p> - {{ . }} - </p> - </div> - {{ end }} - {{ with .schools }} - {{ partial "schools.html" . }} - {{ end }} - {{ with .experiences }} - {{ partial "experiences.html" . }} - {{ end }} - {{ range .info }} - <section> - <h2>{{ .name }}</h2> - <ul> - {{ range .points }} - <li>{{ . | markdownify }}</li> + <main> + {{ with .Site.Data.content }} + <div class="box"> + <div class="wrap"> + {{ partial "header.html" . }} + {{ with .objective }} + <div> + <h2>Objective</h2> + <p> + {{ . }} + </p> + </div> + {{ end }} + {{ with .schools }} + {{ partial "schools.html" . }} + {{ end }} + {{ with .experiences }} + {{ partial "experiences.html" . }} {{ end }} - </ul> - </section> - {{ end }} - </div> - </div> - {{ end }} -</main> + {{ range .info }} + <section> + <h2>{{ .name }}</h2> + <ul> + {{ range .points }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + </section> + {{ end }} + </div> + </div> + {{ end }} + </main> {{ end }} diff --git a/layouts/partials/experiences.html b/layouts/partials/experiences.html index 3d0a464..950c5b3 100644 --- a/layouts/partials/experiences.html +++ b/layouts/partials/experiences.html @@ -1,16 +1,19 @@ <section> <h2>Experience</h2> {{ range . }} - <div> - <div class="heading-line"> - <h3>{{ .position }} at {{ .company }} - {{ .location }}</h3> - <h3>{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}</h3> + <div> + <div class="heading-line"> + <h3>{{ .position }} at {{ .company }} - {{ .location }}</h3> + <h3> + {{ .startdate }} - + {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }} + </h3> + </div> + <ul> + {{ range .points }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> </div> - <ul> - {{ range .points }} - <li>{{ . | markdownify }}</li> - {{ end }} - </ul> - </div> {{ end }} </section> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 82a3359..ac4c693 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,9 @@ <head> <title>{{ .Site.Title }}</title> - <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap" rel="stylesheet"> + <link + href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap" + rel="stylesheet" + /> {{ $style := resources.Get "main.scss" | toCSS }} <link rel="stylesheet" href="{{ trim $style.RelPermalink "/" }}" /> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d7f5dfd..307bc5b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,18 +5,20 @@ </div> <div> {{ with .email }} - <a href="mailto:{{ . }}">{{ . }}</a> + <a href="mailto:{{ . }}">{{ . }}</a> {{ end }} {{ with .phone }} - <a href="tel:{{ . }}">({{substr . 0 3}}) {{substr . 3 3}}-{{substr . 6 4}}</a> + <a href="tel:{{ . }}" + >({{ substr . 0 3 }}) {{ substr . 3 3 }}-{{ substr . 6 4 }}</a + > {{ end }} - {{ with .website}} - <a href="https://{{ . }}">{{ . }}</a> + {{ with .website }} + <a href="https://{{ . }}">{{ . }}</a> {{ end }} {{ with .github }} - <a href="https://github.com/{{ . }}" - ><i class="fab fa-github"></i> {{ . }}</a - > + <a href="https://github.com/{{ . }}" + ><i class="fab fa-github"></i> {{ . }}</a + > {{ end }} </div> </header> diff --git a/layouts/partials/schools.html b/layouts/partials/schools.html index 3daf5ac..390d022 100644 --- a/layouts/partials/schools.html +++ b/layouts/partials/schools.html @@ -1,16 +1,19 @@ <section> <h2>Education</h2> {{ range . }} - <div class="school"> - <div class="heading-line"> - <h3>{{ .name }} - {{ .location }}</h3> - <h3>{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}</h3> + <div class="school"> + <div class="heading-line"> + <h3>{{ .name }} - {{ .location }}</h3> + <h3> + {{ .startdate }} - + {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }} + </h3> + </div> + {{ range .degrees }} + <p> + <em>{{ . }}</em> + </p> + {{ end }} </div> - {{ range .degrees }} - <p> - <em>{{ . }}</em> - </p> - {{ end }} - </div> {{ end }} </section> |