From 74058f0cae8eff8b83d02303671c0532bd492ea3 Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Sun, 2 Aug 2020 20:39:01 +0200 Subject: General update --- README.md | 4 ++-- assets/sass/typography.scss | 52 +++++++++++++++++++++++++++----------------- assets/sass/variables.scss | 9 +++++--- exampleSite/config.toml | 12 ++++++---- layouts/_default/list.html | 7 +++++- layouts/partials/header.html | 2 +- theme.toml | 9 +++++++- 7 files changed, 63 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 6b3aa07..baf333c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Researcher -A single column, monospace, resume theme for Hugo. It was ported from +A simple monospaced resume theme for Hugo. It was ported from the Jekyll theme [ankitsultana/researcher](https://github.com/ankitsultana/researcher). ## License -[GPL-3.0 License](./LICENSE) +[GPL-3.0 License](https://github.com/ojroques/hugo-researcher/blob/master/LICENSE) diff --git a/assets/sass/typography.scss b/assets/sass/typography.scss index d1a7315..24fe28d 100644 --- a/assets/sass/typography.scss +++ b/assets/sass/typography.scss @@ -4,6 +4,22 @@ a { @extend %link-default; } + blockquote { + border-left: 4px solid; + font-style: italic; + margin: $margin-y 0; + padding: 8px 8px; + & p { + margin: 0; + } + } + code { + color: $green; + } + img { + display: block; + margin: $margin-y auto; + } ol { counter-reset: list; list-style: none; @@ -18,6 +34,9 @@ } } } + pre code { + color: inherit; + } ul { list-style: inside; padding-left: 0; @@ -25,26 +44,6 @@ margin: 4px 0; } } - blockquote { - border-left: 4px solid; - font-style: italic; - margin: $margin-y 0; - padding: 8px 8px; - & p { - margin: 0; - } - } - .avatar > img { - border-radius: 50%; - float: right; - margin: -8px 0 0 16px; - height: $avatar-size; - width: $avatar-size; - } - img { - display: block; - margin: $margin-y auto; - } table { margin: $margin-y auto; width: 100%; @@ -63,4 +62,17 @@ } } } + .avatar > img { + border-radius: 50%; + float: right; + margin: -8px 0 0 16px; + height: $avatar-size; + width: $avatar-size; + } + .highlight { + margin: $margin-y auto; + & > pre { + padding: 8px 8px; + } + } } diff --git a/assets/sass/variables.scss b/assets/sass/variables.scss index 7565b8c..678a75b 100644 --- a/assets/sass/variables.scss +++ b/assets/sass/variables.scss @@ -1,9 +1,12 @@ -// Variables +// Sizes $max-width: 750px; -$avatar-size: 90px; $margin-y: 16px; -$red: #dc3545; +$avatar-size: 90px; + +// Colors $dark: #000000; +$green: #28a745; +$red: #dc3545; // Placeholders %link-default { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f21848e..7fdd911 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,10 +1,11 @@ title = "Researcher" baseURL = "https://example.com" theme = "researcher" +enableEmoji = true [params] author = "Olivier Roques" - description = "A single column, monospace, resume theme for Hugo." + description = "A simple monospaced resume theme for Hugo." favicon = "favicon.ico" [params.footer] text = "By Olivier Roques" @@ -14,15 +15,18 @@ theme = "researcher" "/" = "/:filename" [menu] - [[menu.navbar]] + [[menu.main]] name = "About" url = "/about" weight = 1 - [[menu.navbar]] + [[menu.main]] name = "Resume" url = "/resume.pdf" weight = 2 - [[menu.navbar]] + [[menu.main]] name = "Contact" url = "/contact" weight = 3 + +[markup.goldmark.renderer] + unsafe = true diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2bc2b1e..cffc40d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,10 @@ {{ define "main" }}
- {{ .Content }} +

{{ .Title }}

+
{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 195573e..61fe360 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,7 +2,7 @@