Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e199b59
Add resources folder
Aug 8, 2020
39a283e
Update resume.pdf
Aug 8, 2020
12946d1
Update CSS
Aug 9, 2020
769f11b
Update list css
Aug 9, 2020
fac4982
Change baseurl
Aug 9, 2020
13fcb14
Update readme
Aug 15, 2020
acbd9f8
Remove absURL from menu items
Sep 4, 2020
d8ed201
Add KaTeX support
Sep 22, 2020
7e2ed12
Merge pull request #2 from ojroques/katex
ojroques Sep 22, 2020
597523d
Add script to enable inline math expression
Sep 22, 2020
5beceab
Add math shortcode
Sep 23, 2020
8ea7e1f
Add support for Google Analytics
FraBle Oct 19, 2020
9e8c229
Merge pull request #4 from FraBle/patch-1
ojroques Oct 19, 2020
f0151a7
Fix #5
Nov 14, 2020
d980266
Upgrade Bootstrap and favicon
Nov 21, 2020
1164ff7
Improve and clean SCSS
Nov 21, 2020
99c55f1
Add fix from #6
Nov 23, 2020
51fc957
Add Google Analytics option to example site
Nov 24, 2020
e2c5b80
Add RSS link suggested by #9
Nov 25, 2020
049680a
Add support for menu item pre and post hooks
Nov 25, 2020
009a269
Fix for bottom margin of content block
Nov 25, 2020
ff56cfc
Merge pull request #10 from tunix/master
ojroques Nov 25, 2020
721fd4b
Fix margins in header and footer
Nov 26, 2020
ab6780d
Change black color
Dec 22, 2020
7a6660e
Change black color
Jan 7, 2021
093dcde
Fix nested lists
Jan 21, 2021
b0edab5
Add support for a header logo
Jan 23, 2021
399e5b3
Restrict image width
Jan 30, 2021
e151483
Improve image placement and footnote lists
Jan 31, 2021
c2f4507
Support appearance customization in site config
Jan 31, 2021
5dc1549
Update readme
Jan 31, 2021
3b00e61
Add default options
Jan 31, 2021
d6e09b9
Accessibility and SEO improvements
jcabak Apr 13, 2021
1d08af5
Merge pull request #17 from jcabak/master
ojroques Apr 13, 2021
4ff6908
Add social icons in footer
aniolm9 Apr 29, 2021
ed093b5
I forgot to add the title in the html <a> tag
aniolm9 Apr 29, 2021
41641db
Merge pull request #18 from aniolm9/footer-social-icons
ojroques Apr 29, 2021
4252700
Keep indent of ol and ul to make multiple lines looks better
n0b0dyCN Jun 11, 2021
f697d00
Merge pull request #19 from n0b0dyCN/master
ojroques Jun 11, 2021
04e5f5c
add support for utteranc.es comments
stanbar Jun 22, 2021
380909c
add params.utterances to exampleSite config.toml
stanbar Jun 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ A simple monospaced resume theme for Hugo. It was ported from Jekyll theme
![thumbnail](https://github.com/ojroques/hugo-researcher/blob/master/images/tn.png)

## Installation
This theme uses Sass to generate CSS files so make sure you have the
*extended* Hugo version installed.

Add the theme to your site's `themes` directory:
```bash
mkdir themes # if the themes folder does not exist yet
git clone https://github.com/ojroques/hugo-researcher themes/researcher
git submodule add https://github.com/ojroques/hugo-researcher.git themes/researcher
# if your website is not managed by git:
# git clone https://github.com/ojroques/hugo-researcher.git themes/researcher
```

Update the theme option in `config.toml`:
Expand All @@ -23,5 +27,9 @@ A self-explanatory configuration file is present in
[exampleSite/config.toml](https://github.com/ojroques/hugo-researcher/blob/master/exampleSite/config.toml),
along the files of a demo website.

You can enable [KaTeX](https://katex.org/) (math typesetting) by including
`math: true` in your content files. Or you can enable it globally by setting
`math` to `true` in your project config.

## License
[GPL-3.0 License](https://github.com/ojroques/hugo-researcher/blob/master/LICENSE)
149 changes: 143 additions & 6 deletions assets/sass/researcher.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,52 @@
@import "variables";
@import "typography";
// Sizes
$max-width: {{ .Param "style.pageWidth" | default "750px;" }};
$avatar-size: {{ .Param "style.avatarSize" | default "90px;" }};

// Colors
$black: {{ .Param "style.colorBlack" | default "#222222" }};
$red: {{ .Param "style.colorRed" | default "#dc3545" }};

// Font
$font-family: {{ .Param "style.fontFamily" | default "Inconsolata" }};

// Margins
$y-small: 0.6rem;
$y-medium: 1.0rem;

// Placeholders
%link-default {
color: $red;
text-decoration: none;
& * {
color: $red;
}
&:hover {
color: $red;
text-decoration: underline;
}
}
%link-dark {
color: $black;
text-decoration: none;
& * {
color: $black;
}
&:hover {
color: $black;
text-decoration: underline;
}
}
%table-cell {
border: 1px solid #cccccc;
padding: 6px 12px;
text-align: left;
}

// Style
* {
color: $dark;
font-family: "Inconsolata";
line-height: normal;
color: $black;
font-family: $font-family;
line-height: 1.2;
}
.container {
max-width: $max-width;
Expand All @@ -16,7 +58,102 @@
.nav-link {
@extend %link-default;
}
footer {
#content {
a {
@extend %link-default;
}
p {
margin-bottom: $y-small;
}
h1, h2, h3, h4, h5, h6 {
font-size: medium;
font-weight: bold;
margin: $y-medium 0 $y-small 0;
}
@for $i from 1 through 4 {
h#{$i} {
font-size: 1.2rem + 0.2 * (4 - $i);
}
}
img {
display: block;
margin: $y-medium auto;
max-width: 100%;
}
.avatar > img {
border-radius: 50%;
float: right;
margin: -8px 0 0 16px;
height: $avatar-size;
width: $avatar-size;
}
ol {
counter-reset: list;
list-style: none;
padding-left: 2rem;
& > li {
display: table-row;
}
& > li:before {
content: "[" counter(list, decimal) "] ";
counter-increment: list;
display: table-cell;
text-align: right;
padding-right: .5em;
}
}
.container > ol, .footnotes > ol {
padding-left: 0;
}
ul {
list-style: inside;
padding-left: 2rem;
& > li {
list-style-position: outside;
margin-left: 1em;
}
}
.container > ul, .footnotes > ul {
padding-left: 0;
}
table {
margin: $y-medium auto;
width: 100%;
& th {
@extend %table-cell;
font-weight: bold;
}
& td {
@extend %table-cell;
}
& tr:nth-child(2n) {
background-color: #f8f8f8;
}
}
blockquote {
border-left: 4px solid;
font-style: italic;
margin: $y-medium 0;
padding: 8px 8px;
}
code {
color: $black;
background-color: #f8f8f8;
border: 1px solid #cccccc;
border-radius: 10%;
padding: 0px 4px;
}
pre code {
all: unset;
}
.highlight {
margin: $y-medium auto;
& > pre {
padding: 8px 8px;
}
}
}
#footer {
a {
@extend %link-dark;
}
Expand Down
89 changes: 0 additions & 89 deletions assets/sass/typography.scss

This file was deleted.

32 changes: 0 additions & 32 deletions assets/sass/variables.scss

This file was deleted.

28 changes: 26 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
title = "Researcher"
baseURL = "https://example.com"
theme = "researcher"
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT"]
disableKinds = ["taxonomy", "term"]
enableEmoji = true
math = false # enable KaTeX (https://katex.org/) globally
googleAnalytics = "" # add your tracking id

[params]
author = "Olivier Roques"
description = "A simple monospaced resume theme for Hugo."
favicon = "favicon.ico"
favicon = "favicon.ico" # path to a .ico to use as favicon
logo = "" # url or path to a logo to put in the header
[params.utterances]
repo = "ojroques/comments-hugo-researcher"
issueTerm = "pathname"
theme = "github-light" # preferred-color-scheme, github-light, github-dark
[params.footer]
text = "By Olivier Roques"
url = "https://github.com/ojroques/hugo-researcher"
[params.style] # appearance options (can be omitted)
fontFamily = "Inconsolata"
pageWidth = "750px"
avatarSize = "90px"
colorBlack = "#222222"
colorRed = "#dc3545"
[[params.socialIcons]]
icon = "fab fa-twitter"
title = "Twitter"
url = "https://twitter.com/"
[[params.socialIcons]]
icon = "fas fa-envelope"
title = "E-mail"
url = "mailto:[email protected]"

[permalinks]
"/" = "/:filename"
Expand All @@ -23,6 +44,9 @@ enableEmoji = true
[[menu.main]]
name = "Resume"
url = "/resume.pdf"
# 'pre' and 'post' hooks are available
# here we use an icon from Bootstrap https://icons.getbootstrap.com/
pre = '<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-file-earmark-person-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 2a2 2 0 0 1 2-2h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm7.5 1.5v-2l3 3h-2a1 1 0 0 1-1-1zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm2 5.755S12 12 8 12s-5 1.755-5 1.755V14a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-.245z"/></svg> '
weight = 2
[[menu.main]]
name = "Contact"
Expand Down
Loading