diff options
| author | Olivier Roques <olivier@oroques.dev> | 2020-08-02 20:39:01 +0200 | 
|---|---|---|
| committer | Olivier Roques <olivier@oroques.dev> | 2020-08-02 20:39:01 +0200 | 
| commit | 74058f0cae8eff8b83d02303671c0532bd492ea3 (patch) | |
| tree | 8d70b08517241bb5477a456fa3794e4e92da7aa4 | |
| parent | 1263088ed542e0745db78d9c969fc1dbdece58e2 (diff) | |
General update
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | assets/sass/typography.scss | 52 | ||||
| -rw-r--r-- | assets/sass/variables.scss | 9 | ||||
| -rw-r--r-- | exampleSite/config.toml | 12 | ||||
| -rw-r--r-- | layouts/_default/list.html | 7 | ||||
| -rw-r--r-- | layouts/partials/header.html | 2 | ||||
| -rw-r--r-- | theme.toml | 9 | 
7 files changed, 63 insertions, 32 deletions
@@ -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" }}  <div class="container"> -    {{ .Content }} +    <h1>{{ .Title }}</h1> +    <ul> +        {{ range .Pages }} +            <li><a href="{{ .Permalink }}">{{ .Date.Format "2006-01-02" }} | {{ .Title }}</a></li> +        {{ end }} +    </ul>  </div>  {{ 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 @@      <nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0">          <a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>          <div class="navbar-nav flex-row"> -            {{ with .Site.Menus.navbar }} +            {{ with .Site.Menus.main }}                  {{ $navbar_len := len . }}                  {{ range $i, $nav_item := . }}                      <a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a> @@ -1,10 +1,17 @@  name = "Researcher"  license = "GPL-3.0"  licenselink = "https://github.com/ojroques/hugo-researcher/blob/master/LICENSE" -description = "A single column, monospace, resume theme for Hugo." +description = "A simple monospaced resume theme for Hugo." +tags = ["blog", "bootstrap", "clean", "minimal", "personal", "responsive", "resume", "simple"] +features = ["bootstrap", "responsive", "simple"]  homepage = "https://github.com/ojroques/hugo-researcher"  min_version = "0.42.0"  [author]    name = "Olivier Roques"    homepage = "https://oroques.dev/" + +[original] +  author = "Ankit Sultana" +  homepage = "https://github.com/ankitsultana" +  repo = "https://github.com/ankitsultana/researcher"  | 
