From 4d979d130ac0798f4e048f334d62b0e696ae5f36 Mon Sep 17 00:00:00 2001 From: Tyler Lawson Date: Fri, 22 Jan 2021 00:15:47 -0500 Subject: prettified --- README.md | 18 ++++++++--- layouts/_default/baseof.html | 8 ++--- layouts/index.html | 64 +++++++++++++++++++-------------------- layouts/partials/experiences.html | 23 ++++++++------ layouts/partials/head.html | 5 ++- layouts/partials/header.html | 16 +++++----- layouts/partials/schools.html | 23 ++++++++------ 7 files changed, 88 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index 1df2f2a..9228069 100644 --- a/README.md +++ b/README.md @@ -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 @@ - {{- partial "head.html" . -}} - - {{- block "main" . }}{{- end }} - + {{- partial "head.html" . -}} + + {{- block "main" . }}{{- end }} + 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" }} -
- {{ with .Site.Data.content }} -
-
- {{ partial "header.html" . }} - {{ with .objective}} -
-

Objective

-

- {{ . }} -

-
- {{ end }} - {{ with .schools }} - {{ partial "schools.html" . }} - {{ end }} - {{ with .experiences }} - {{ partial "experiences.html" . }} - {{ end }} - {{ range .info }} -
-

{{ .name }}

-
    - {{ range .points }} -
  • {{ . | markdownify }}
  • +
    + {{ with .Site.Data.content }} +
    +
    + {{ partial "header.html" . }} + {{ with .objective }} +
    +

    Objective

    +

    + {{ . }} +

    +
    + {{ end }} + {{ with .schools }} + {{ partial "schools.html" . }} + {{ end }} + {{ with .experiences }} + {{ partial "experiences.html" . }} {{ end }} -
-
- {{ end }} -
-
- {{ end }} -
+ {{ range .info }} +
+

{{ .name }}

+ +
+ {{ end }} + + + {{ end }} + {{ 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 @@

Experience

{{ range . }} -
-
-

{{ .position }} at {{ .company }} - {{ .location }}

-

{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}

+
+
+

{{ .position }} at {{ .company }} - {{ .location }}

+

+ {{ .startdate }} - + {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }} +

+
+
    + {{ range .points }} +
  • {{ . | markdownify }}
  • + {{ end }} +
-
    - {{ range .points }} -
  • {{ . | markdownify }}
  • - {{ end }} -
-
{{ end }}
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 @@ {{ .Site.Title }} - + {{ $style := resources.Get "main.scss" | toCSS }} 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 @@
{{ with .email }} - {{ . }} + {{ . }} {{ end }} {{ with .phone }} - ({{substr . 0 3}}) {{substr . 3 3}}-{{substr . 6 4}} + ({{ substr . 0 3 }}) {{ substr . 3 3 }}-{{ substr . 6 4 }} {{ end }} - {{ with .website}} - {{ . }} + {{ with .website }} + {{ . }} {{ end }} {{ with .github }} - {{ . }} + {{ . }} {{ end }}
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 @@

Education

{{ range . }} -
-
-

{{ .name }} - {{ .location }}

-

{{ .startdate }} - {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }}

+
+
+

{{ .name }} - {{ .location }}

+

+ {{ .startdate }} - + {{ if .enddate }}{{ .enddate }}{{ else }}Current{{ end }} +

+
+ {{ range .degrees }} +

+ {{ . }} +

+ {{ end }}
- {{ range .degrees }} -

- {{ . }} -

- {{ end }} -
{{ end }}
-- cgit v1.2.3