diff --git a/hugo.yaml b/hugo.yaml index 9093331..aacfddb 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,7 +1,7 @@ baseURL: 'https://sabbatical.ipng.nl/' languageCode: 'en-us' title: "Pim's Sabbatical 2024" -theme: 'hugo-theme-notrack' +theme: 'hugo-theme-ipng' mainSections: ["blog"] paginate: 4 diff --git a/themes/hugo-theme-notrack/LICENSE.md b/themes/hugo-theme-ipng/LICENSE.md similarity index 100% rename from themes/hugo-theme-notrack/LICENSE.md rename to themes/hugo-theme-ipng/LICENSE.md diff --git a/themes/hugo-theme-ipng/README.md b/themes/hugo-theme-ipng/README.md new file mode 100644 index 0000000..f12180e --- /dev/null +++ b/themes/hugo-theme-ipng/README.md @@ -0,0 +1,3 @@ +# Notrack + +This theme was branched from hugo-theme-notrack diff --git a/themes/hugo-theme-notrack/archetypes/blog.md b/themes/hugo-theme-ipng/archetypes/blog.md similarity index 100% rename from themes/hugo-theme-notrack/archetypes/blog.md rename to themes/hugo-theme-ipng/archetypes/blog.md diff --git a/themes/hugo-theme-notrack/archetypes/default.md b/themes/hugo-theme-ipng/archetypes/default.md similarity index 100% rename from themes/hugo-theme-notrack/archetypes/default.md rename to themes/hugo-theme-ipng/archetypes/default.md diff --git a/themes/hugo-theme-notrack/archetypes/post.md b/themes/hugo-theme-ipng/archetypes/post.md similarity index 100% rename from themes/hugo-theme-notrack/archetypes/post.md rename to themes/hugo-theme-ipng/archetypes/post.md diff --git a/themes/hugo-theme-notrack/assets/styles.scss b/themes/hugo-theme-ipng/assets/styles.scss similarity index 70% rename from themes/hugo-theme-notrack/assets/styles.scss rename to themes/hugo-theme-ipng/assets/styles.scss index c04e2fd..d1815b5 100644 --- a/themes/hugo-theme-notrack/assets/styles.scss +++ b/themes/hugo-theme-ipng/assets/styles.scss @@ -1,7 +1,6 @@ // Colors $midnight-blue: #07608f; $midnight-matte: #4c7e99; -$text-color: #444; $tab-border-color: #ddd; $tab-active-color: #474a4f; $heading-gray: #333; @@ -11,12 +10,19 @@ $close-hover-gray: #bbb; $contactlinks-color: #eee; $contactlinks-text-color: #524e59; $cv-red: #b25347; -$light-text: #5f5a6f; -$very-light-text: #767676; +$text-dark: #444; +$text-normal: #777; +$text-light: #5f5a6f; +$text-very-light: #767676; $medium-light-text: #4f4a5f; $code-background: #f3f3f3; $codeblock-background: #f6f8fa; $code-text: #f8f8f2; +$ipng-orange: #f46524; +$ipng-darkorange: #8c1919; +$ipng-lightorange: #fb8c00; +$table-header-background: #ffdcca; +$table-cell-background: #fafafa; // Breakpoints $bp-mini: 28em; // 288px @@ -37,11 +43,11 @@ $mq-xxlarge: "(min-width: #{$bp-xxlarge})"; $mq-retina: "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)"; // Font-Size -$base-font-size: 1.1em; +$base-font-size: 1.0em; // Line-Height -$base-line-height: 1.1; -$header-line-height: 1.25; +$base-line-height: 1.4; +$header-line-height: 1.0; // HUGO @@ -54,26 +60,15 @@ body { margin: 0; min-height: 100vh; overflow-y: scroll; - font-size: $base-font-size * 1.1; - line-height: $base-line-height * 1.1; - font-family: FreeSerif, serif; + line-height: $base-line-height * 1.0; + font-family: BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - @media #{$mq-medium} { - font-size: $base-font-size*1.2; - line-height: $base-line-height*1.2; - } - - @media #{$mq-large} { - font-size: $base-font-size*1.3; - } - - @media #{$mq-xlarge} { - font-size: $base-font-size*1.4; - } - - @media #{$mq-xxlarge} { - font-size: $base-font-size*1.6; - } + @media #{$mq-mini} { font-size: $base-font-size * 0.8; } + @media #{$mq-small} { font-size: $base-font-size * 0.9; } + @media #{$mq-medium} { font-size: $base-font-size * 1.0; } + @media #{$mq-large} { font-size: $base-font-size * 1.0; } + @media #{$mq-xlarge} { font-size: $base-font-size * 1.1; } + @media #{$mq-xxlarge} { font-size: $base-font-size * 1.1; } } /*largest screens*/ @@ -81,63 +76,56 @@ main { display: block; margin: 0; padding: 1em 1em; - background-color: white; + padding-bottom: 5em; - @media #{$mq-small} { - margin: 0 15%; + @media #{$mq-mini} { margin: 0 2%; } + @media #{$mq-small} { margin: 0 2%; } + @media #{$mq-medium} { margin: 0 17%; } + @media #{$mq-large} { margin: 0 21%; } + @media #{$mq-xlarge} { margin: 0 24%; } + @media #{$mq-xxlarge} { margin: 0 27%; } + + a { + color: $ipng-lightorange; + text-decoration: none; } - - @media #{$mq-medium} { - margin: 0 17%; - } - - @media #{$mq-large} { - margin: 0 21%; - } - - @media #{$mq-xlarge} { - margin: 0 24%; - } - - @media #{$mq-xxlarge} { - margin: 0 27%; + + a:hover { + color: $ipng-darkorange; + text-decoration: none; } } a { - font-family: FreeSerif, serif; - color: $midnight-blue; text-decoration: none; } + h1, h2, h3, h4, h5, h6 { - font-family: FreeSans, sans-serif; font-weight: bold; font-style: normal; - color: $heading-gray; + color: $ipng-orange; } p, li { - color: $text-color; - font-family: FreeSerif, serif; + color: $text-normal; text-align: justify; } strong { font-style: normal; - font-family: FreeSerif, serif; font-weight: bold; + color: black; } em { font-style: normal; - font-family: FreeSerif, serif; font-style: italic; } kbd, code { font-family: Mononoki, monospace; - color: $text-color; + color: $text-normal; background-color: $code-background; font-size: 0.9em; } @@ -145,24 +133,29 @@ kbd, code { pre { background-color: $codeblock-background; padding: 0.5em; + overflow-x: auto; + font-weight: bold; + font-size: 0.9em; + line-height: $base-line-height * 0.9; + border: 1px solid #ddd; + border-radius: 0.75em; + code { background-color: transparent; + color: #444; } } th { - font-family: FreeSerif, serif; font-weight: bold; - color: $text-color; + color: $text-normal; } td { - font-family: FreeSerif, serif; - color: $text-color; + color: $text-normal; } .footnotes ol li { - font-family: FreeSerif, serif; font-size: 0.8em; } @@ -240,14 +233,23 @@ figcaption { } h4 { margin: 0.3em 0; - color: $text-color; + color: $text-normal; text-align: left; } } + +.home-ipng { + font-size: 1.3em; + font-weight: bold; + color: $ipng-orange; + vertical-align: bottom; +} + .page-title { - text-align: center; - font-size: 1.9em; + text-align: left; + font-size: 2em; + color: $ipng-orange; } .page-title.blog { @@ -284,22 +286,21 @@ nav li { } nav a { - color: $text-color; + color: $text-normal; padding: .25em .63em; - font-family: FreeSans, sans-serif; - font-size: 1.2em; + font-size: 1.1em; display: block; } nav li:hover { - border-color: $tab-border-color; + border-color: $ipng-lightorange; } .dropdown .sub-menu { display: none; position: absolute; background-color: #f9f9f9; - color: $text-color; + color: $text-normal; cursor: pointer; border-width: 0 0 .3em 0; min-width: 6em; @@ -321,7 +322,7 @@ nav li:hover { display: block; text-align: left; padding: .2em .63em; - color: $text-color; + color: $text-normal; } .dropdown.activetab, .activetab, li.activetab { @@ -334,25 +335,59 @@ nav li:hover { } .page-header { - border-bottom: 1px solid black; + border-bottom: 2px solid $text-dark; + background-color: #f7f7f7; text-align: center; display: flex; flex-flow: row wrap; - margin: 1em 1em 0 1em; + + @media #{$mq-mini} { margin: 0; width: 100%; font-size: $base-font-size * 0.8; } + @media #{$mq-small} { margin: 0 5%; width: 90%; font-size: $base-font-size * 0.9; } + @media #{$mq-medium} { margin: 0 17%; width: 66%; font-size: $base-font-size * 1.0; } + @media #{$mq-large} { margin: 0 21%; width: 58%; font-size: $base-font-size * 1.0; } + @media #{$mq-xlarge} { margin: 0 24%; width: 52%; font-size: $base-font-size * 1.1; } + @media #{$mq-xxlarge} { margin: 0 27%; width: 48%; font-size: $base-font-size * 1.1; } + + a:hover { + color: $ipng-lightorange; + } + .activetab > a:hover { + color: white; + } +} + +.page-footer { + position: fixed; + font-size: .8em; + border-top: 2px solid $text-dark; + text-align: center; + display: flex; + flex-flow: row wrap; + bottom: 0; + color: $text-light; + background-color: #f7f7f7; + + @media #{$mq-mini} { margin: 0; width: 100%; font-size: $base-font-size * 0.8; } + @media #{$mq-small} { margin: 0 5%; width: 90%; font-size: $base-font-size * 0.9; } + @media #{$mq-medium} { margin: 0 17%; width: 66%; font-size: $base-font-size * 1.0; } + @media #{$mq-large} { margin: 0 21%; width: 58%; font-size: $base-font-size * 1.0; } + @media #{$mq-xlarge} { margin: 0 24%; width: 52%; font-size: $base-font-size * 1.1; } + @media #{$mq-xxlarge} { margin: 0 27%; width: 48%; font-size: $base-font-size * 1.1; } } .myname { margin: 0 auto 0 0; - padding: 0 0 .25em .25em; - font-size: 2em; + padding-left: .5em; + font-size: $base-font-size * 1.2; + color: $ipng-orange; } .myname a { - color: black; + color: $ipng-orange; text-decoration: none; - font-family: FreeSerif, serif; - font-style: italic; - font-weight: bold; + font-style: normal; + font-weight: normal; + font-size: 1.3em; } .myname h2 { @@ -363,9 +398,7 @@ nav li:hover { .blog-post-summary { margin: 0; - @media #{$mq-mini} { - margin: 2em; - } + @media #{$mq-mini} { margin: 2em; } } #latest-blog-home { @@ -387,14 +420,13 @@ nav li:hover { a { color: $heading-gray; - font-family: FreeSans, sans-serif; } } .blog-post-info { margin: 0.2em 0; font-size: 0.8em; - color: $light-text; + color: $text-light; margin-left: 1em; text-align: left; @@ -402,7 +434,6 @@ nav li:hover { } em.taxonomy-emph { - font-family: FreeSans, sans-serif; font-style: oblique; } @@ -419,7 +450,7 @@ em.taxonomy-emph { justify-content: center; margin: 0; padding: 0; - border-bottom: 2px solid $text-color; + border-bottom: 2px solid $text-normal; li { flex-grow: 1; @@ -433,7 +464,7 @@ em.taxonomy-emph { background-color: $tab-border-color; font-size: 1.5em; text-align: center; - color: $text-color; + color: $text-normal; padding: .5em; flex-grow: 1; text-transform: capitalize; @@ -442,7 +473,6 @@ em.taxonomy-emph { .pagination { list-style-type: none; - font-family: FreeSans, sans-serif; display: flex; justify-content: center; margin: 1em; @@ -450,12 +480,12 @@ em.taxonomy-emph { } .page-item { - color: $text-color; + color: $text-normal; display: inline-block; padding: .2em .6em; a { - color: $text-color; + color: $text-normal; } } @@ -468,92 +498,6 @@ em.taxonomy-emph { } } -// RESUME - -.resume-content { - display: flex; - flex-flow: row wrap; -} - -.category-title { - text-align: left; - width: 8em; - padding: .5em; - flex: 1 3 auto; - - h4 { - margin: 0 0.5em 0 0; - font-size: 1.3em; - } -} - -.category-content { - flex: 2 1 65%; - padding: .5em; - - a { - color: $midnight-matte; - } - - p { - margin: 0; - font-size: 0.9em; - color: $light-text; - } - - ul { - list-style-type: "– "; - } - - ul, ol { - font-family: FreeSans, sans-serif; - margin-top: 0; - } - li { - font-size: 0.9em; - color: $light-text; - } -} - -.resume-entry { - margin: 0 0 1em 0; - - .what { - font-family: FreeSans, serif; - text-align: left; - font-size: 1.0em; - color: $text-color; - } - - .resume-entry-data { - font-family: FreeSans, serif; - text-align: left; - font-size: 0.8em; - color: $very-light-text; - margin-left: 0.9rem; - } - - .resume-inner { - line-height: 1; - margin-top: 0.2em; - margin-left: 0.9rem; - } - - p, ul, ol, li { - font-family: FreeSerif, serif; - color: $light-text; - text-align: left; - font-size: 0.9em; - } -} - -p.resume-subcategory { - font-family: FreeSans, sans-serif; - font-size: 1.4em; - text-decoration: underline; - padding: 0 0 .3em 0; -} - // CONTACT #contactinformation { @@ -565,13 +509,15 @@ p.resume-subcategory { .social { display: flex; justify-content: center; + font-size: $base-font-size*0.7; + margin: auto; + width: 100%; ul { list-style-type: none; display:flex; justify-content: space-around; flex-wrap: wrap; - width: 100%; padding: 0; li { @@ -581,25 +527,26 @@ p.resume-subcategory { a { white-space: nowrap; color: #3f444d; - font-size: 1em; - font-family: FreeSans, sans-serif; + font-size: 1.2em; i { - font-size: 2em; + font-size: 1.5em; vertical-align: middle; } } + a:hover { + color: $ipng-lightorange; + } } } } + .contactbox { padding: 0 1.0em 0 1.0em; box-sizing: border-box; - @media #{$mq-mini-reverse} { - width: 100% !important; - } + @media #{$mq-mini-reverse} { width: 100% !important; } ul { list-style-type: none; @@ -617,7 +564,6 @@ p.resume-subcategory { a { - font-family: FreeSans, sans-serif; font-weight: bold; font-size: 1em; color: $contactlinks-text-color; @@ -657,13 +603,11 @@ p.resume-subcategory { // General blockquote { - font-family: FreeSerif, serif; font-size: .9em; - color: $text-color; + color: $text-normal; } cite { - font-family: FreeSerif, serif; font-style: italic; } @@ -809,15 +753,27 @@ cite { cursor: pointer; } -footer { - position: fixed; - width: 100vw; - color: #444; - font-size: .8em; - padding-left: 1em; - padding-top: .2em; - padding-bottom: .1em; - bottom: 0; - left: 0; - background-color: #f7f7f7; +table { + margin-bottom: 1em; + width: 100%; + text-align: left; + border-collapse: separate; + border-radius: 0.5em; + border: 2px solid $ipng-orange; + tr { + &:nth-child(even) { + background-color: darken($table-cell-background, 10%); + } + } + th, td { + padding: 0.15em 0.5em; + } + th { + color: $ipng-orange; + background-color: lighten($table-header-background, 3%); + border-bottom: 3px solid $ipng-orange; + font-weight: bold; + } + td { + } } diff --git a/themes/hugo-theme-notrack/data/notrack/social.yaml b/themes/hugo-theme-ipng/data/notrack/social.yaml similarity index 99% rename from themes/hugo-theme-notrack/data/notrack/social.yaml rename to themes/hugo-theme-ipng/data/notrack/social.yaml index 1b86c28..0a70fbb 100644 --- a/themes/hugo-theme-notrack/data/notrack/social.yaml +++ b/themes/hugo-theme-ipng/data/notrack/social.yaml @@ -441,7 +441,7 @@ researchgate: # 056: Mastodon mastodon: weight: 56 - prefix: https://mastodon.social/ + prefix: https://ublog.tech/ title: Mastodon icon: class: fab fa-mastodon fa-fw diff --git a/themes/hugo-theme-notrack/layouts/404.html b/themes/hugo-theme-ipng/layouts/404.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/404.html rename to themes/hugo-theme-ipng/layouts/404.html diff --git a/themes/hugo-theme-notrack/layouts/_default/archives.html b/themes/hugo-theme-ipng/layouts/_default/archives.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/_default/archives.html rename to themes/hugo-theme-ipng/layouts/_default/archives.html diff --git a/themes/hugo-theme-notrack/layouts/_default/baseof.html b/themes/hugo-theme-ipng/layouts/_default/baseof.html similarity index 93% rename from themes/hugo-theme-notrack/layouts/_default/baseof.html rename to themes/hugo-theme-ipng/layouts/_default/baseof.html index 5f8e2ec..0ddd37e 100644 --- a/themes/hugo-theme-notrack/layouts/_default/baseof.html +++ b/themes/hugo-theme-ipng/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} {{- partial "header.html" . -}} diff --git a/themes/hugo-theme-ipng/layouts/_default/list.html b/themes/hugo-theme-ipng/layouts/_default/list.html new file mode 100644 index 0000000..be8b95c --- /dev/null +++ b/themes/hugo-theme-ipng/layouts/_default/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} +
+ +

{{ .Title }}

+ +Here’s a sitemap of informational articles and papers in reversed chronological order: + + {{- if .Pages -}} + {{- $pages := (where .Pages ".Draft" false) -}} + + {{- /* Use site config params for posts per page if available, otherwise default */ -}} + {{- with .Site.Params.list.paginate | default .Site.Params.paginate -}} + {{- $pages = $.Paginate $pages . -}} + {{- else -}} + {{- $pages = .Paginate $pages -}} + {{- end -}} + + + + {{ partial "pagination.html" . }} + {{- end -}} +
+{{ end }} diff --git a/themes/hugo-theme-notrack/layouts/_default/rss.xml b/themes/hugo-theme-ipng/layouts/_default/rss.xml similarity index 100% rename from themes/hugo-theme-notrack/layouts/_default/rss.xml rename to themes/hugo-theme-ipng/layouts/_default/rss.xml diff --git a/themes/hugo-theme-ipng/layouts/_default/single.html b/themes/hugo-theme-ipng/layouts/_default/single.html new file mode 100644 index 0000000..ade9b7c --- /dev/null +++ b/themes/hugo-theme-ipng/layouts/_default/single.html @@ -0,0 +1,23 @@ +{{- define "main" }} +
+
+{{- if in site.Params.mainSections .Page.Section }} +

{{ .Title }}

+{{- else }} +

{{ .Title }}

+{{- end }} +{{- /* Show post information if it's a post, otherwise just the content */ -}} +{{- if in site.Params.mainSections .Page.Section }} + +
+{{ .Content }} +
+{{- template "_internal/disqus.html" . }} +{{- else }} +{{- .Content }} +{{- end }} +
+
+{{- end }} diff --git a/themes/hugo-theme-notrack/layouts/home.html b/themes/hugo-theme-ipng/layouts/home.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/home.html rename to themes/hugo-theme-ipng/layouts/home.html diff --git a/themes/hugo-theme-notrack/layouts/partials/blog-entry-summary.html b/themes/hugo-theme-ipng/layouts/partials/blog-entry-summary.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/partials/blog-entry-summary.html rename to themes/hugo-theme-ipng/layouts/partials/blog-entry-summary.html diff --git a/themes/hugo-theme-ipng/layouts/partials/blog-taxonomy-info.html b/themes/hugo-theme-ipng/layouts/partials/blog-taxonomy-info.html new file mode 100644 index 0000000..b478fb3 --- /dev/null +++ b/themes/hugo-theme-ipng/layouts/partials/blog-taxonomy-info.html @@ -0,0 +1,16 @@ +{{- with .Params.Categories }} +   |   Categories: + {{- $sort := sort . }} + {{- $links := apply $sort "partial" "post-category-link" "." }} + {{- $clean := apply $links "chomp" "." }} + {{- delimit $clean ", " | safeHTML }} + +{{- end }} +{{- with .Params.Tags }} +   |   Tags: + {{- $sort := sort . }} + {{- $links := apply $sort "partial" "post-tag-link" "." }} + {{- $clean := apply $links "chomp" "." }} + {{- delimit $clean ", " | safeHTML }} + +{{- end -}} diff --git a/themes/hugo-theme-ipng/layouts/partials/footer.html b/themes/hugo-theme-ipng/layouts/partials/footer.html new file mode 100644 index 0000000..13746a1 --- /dev/null +++ b/themes/hugo-theme-ipng/layouts/partials/footer.html @@ -0,0 +1,29 @@ + + diff --git a/themes/hugo-theme-notrack/layouts/partials/head.html b/themes/hugo-theme-ipng/layouts/partials/head.html similarity index 53% rename from themes/hugo-theme-notrack/layouts/partials/head.html rename to themes/hugo-theme-ipng/layouts/partials/head.html index 4d004b6..da7351b 100644 --- a/themes/hugo-theme-notrack/layouts/partials/head.html +++ b/themes/hugo-theme-ipng/layouts/partials/head.html @@ -1,23 +1,26 @@ {{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }} - - - + + {{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}} {{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}} {{ with resources.Get "css/userstyles.css" }} {{ end -}} - {{ with .Site.Params.favicon -}} - - {{ end -}} + + + - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - + {{- range .AlternativeOutputFormats }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{- end }} + + {{- if eq .Params.asciinema true }} + + + {{- end }} diff --git a/themes/hugo-theme-notrack/layouts/partials/header.html b/themes/hugo-theme-ipng/layouts/partials/header.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/partials/header.html rename to themes/hugo-theme-ipng/layouts/partials/header.html diff --git a/themes/hugo-theme-notrack/layouts/partials/pagination.html b/themes/hugo-theme-ipng/layouts/partials/pagination.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/partials/pagination.html rename to themes/hugo-theme-ipng/layouts/partials/pagination.html diff --git a/themes/hugo-theme-notrack/layouts/partials/post-category-link.html b/themes/hugo-theme-ipng/layouts/partials/post-category-link.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/partials/post-category-link.html rename to themes/hugo-theme-ipng/layouts/partials/post-category-link.html diff --git a/themes/hugo-theme-notrack/layouts/partials/post-tag-link.html b/themes/hugo-theme-ipng/layouts/partials/post-tag-link.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/partials/post-tag-link.html rename to themes/hugo-theme-ipng/layouts/partials/post-tag-link.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/asciinema.html b/themes/hugo-theme-ipng/layouts/shortcodes/asciinema.html similarity index 50% rename from themes/hugo-theme-notrack/layouts/shortcodes/asciinema.html rename to themes/hugo-theme-ipng/layouts/shortcodes/asciinema.html index 0552f5f..42a7c52 100644 --- a/themes/hugo-theme-notrack/layouts/shortcodes/asciinema.html +++ b/themes/hugo-theme-ipng/layouts/shortcodes/asciinema.html @@ -1,2 +1,2 @@ -
+
diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/contact-box.html b/themes/hugo-theme-ipng/layouts/shortcodes/contact-box.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/contact-box.html rename to themes/hugo-theme-ipng/layouts/shortcodes/contact-box.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/container.html b/themes/hugo-theme-ipng/layouts/shortcodes/container.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/container.html rename to themes/hugo-theme-ipng/layouts/shortcodes/container.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/gallery-category.html b/themes/hugo-theme-ipng/layouts/shortcodes/gallery-category.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/gallery-category.html rename to themes/hugo-theme-ipng/layouts/shortcodes/gallery-category.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/gallery-modal.html b/themes/hugo-theme-ipng/layouts/shortcodes/gallery-modal.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/gallery-modal.html rename to themes/hugo-theme-ipng/layouts/shortcodes/gallery-modal.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/gallery-photo.html b/themes/hugo-theme-ipng/layouts/shortcodes/gallery-photo.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/gallery-photo.html rename to themes/hugo-theme-ipng/layouts/shortcodes/gallery-photo.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/gallery-script.html b/themes/hugo-theme-ipng/layouts/shortcodes/gallery-script.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/gallery-script.html rename to themes/hugo-theme-ipng/layouts/shortcodes/gallery-script.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/image.html b/themes/hugo-theme-ipng/layouts/shortcodes/image.html similarity index 64% rename from themes/hugo-theme-notrack/layouts/shortcodes/image.html rename to themes/hugo-theme-ipng/layouts/shortcodes/image.html index 06a9523..cd3501e 100644 --- a/themes/hugo-theme-notrack/layouts/shortcodes/image.html +++ b/themes/hugo-theme-ipng/layouts/shortcodes/image.html @@ -1,32 +1,30 @@
{{- if .Get "link" -}} {{- end }} {{ with .Get + > {{- if .Get "link" }}{{ end -}} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
- {{ with (.Get "title") -}} -

{{ . }}

- {{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

- {{- .Get "caption" | markdownify -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") }} +

+ {{ with (.Get "title") -}} +

{{ . }}

+ {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- .Get "caption" | markdownify -}} {{- with .Get "attrlink" }} {{- end -}} {{- .Get "attr" | markdownify -}} {{- if .Get "attrlink" }}{{ end }}

{{- end }} -
+
{{- end }}
diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/rawhtml.html b/themes/hugo-theme-ipng/layouts/shortcodes/rawhtml.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/rawhtml.html rename to themes/hugo-theme-ipng/layouts/shortcodes/rawhtml.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/social.html b/themes/hugo-theme-ipng/layouts/shortcodes/social.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/social.html rename to themes/hugo-theme-ipng/layouts/shortcodes/social.html diff --git a/themes/hugo-theme-notrack/layouts/shortcodes/video.html b/themes/hugo-theme-ipng/layouts/shortcodes/video.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/shortcodes/video.html rename to themes/hugo-theme-ipng/layouts/shortcodes/video.html diff --git a/themes/hugo-theme-notrack/layouts/taxonomy/list.html b/themes/hugo-theme-ipng/layouts/taxonomy/list.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/taxonomy/list.html rename to themes/hugo-theme-ipng/layouts/taxonomy/list.html diff --git a/themes/hugo-theme-notrack/layouts/taxonomy/terms.html b/themes/hugo-theme-ipng/layouts/taxonomy/terms.html similarity index 100% rename from themes/hugo-theme-notrack/layouts/taxonomy/terms.html rename to themes/hugo-theme-ipng/layouts/taxonomy/terms.html diff --git a/themes/hugo-theme-notrack/static/css/asciinema-player.css b/themes/hugo-theme-ipng/static/css/asciinema-player.css similarity index 100% rename from themes/hugo-theme-notrack/static/css/asciinema-player.css rename to themes/hugo-theme-ipng/static/css/asciinema-player.css diff --git a/themes/hugo-theme-notrack/static/css/fontawesome.css b/themes/hugo-theme-ipng/static/css/fontawesome.css similarity index 100% rename from themes/hugo-theme-notrack/static/css/fontawesome.css rename to themes/hugo-theme-ipng/static/css/fontawesome.css diff --git a/themes/hugo-theme-notrack/static/css/fonts.css b/themes/hugo-theme-ipng/static/css/fonts.css similarity index 100% rename from themes/hugo-theme-notrack/static/css/fonts.css rename to themes/hugo-theme-ipng/static/css/fonts.css diff --git a/themes/hugo-theme-notrack/static/fonts/FreeMono.woff b/themes/hugo-theme-ipng/static/fonts/FreeMono.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeMono.woff rename to themes/hugo-theme-ipng/static/fonts/FreeMono.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeMonoBold.woff b/themes/hugo-theme-ipng/static/fonts/FreeMonoBold.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeMonoBold.woff rename to themes/hugo-theme-ipng/static/fonts/FreeMonoBold.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeMonoBoldOblique.woff b/themes/hugo-theme-ipng/static/fonts/FreeMonoBoldOblique.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeMonoBoldOblique.woff rename to themes/hugo-theme-ipng/static/fonts/FreeMonoBoldOblique.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeMonoOblique.woff b/themes/hugo-theme-ipng/static/fonts/FreeMonoOblique.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeMonoOblique.woff rename to themes/hugo-theme-ipng/static/fonts/FreeMonoOblique.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSans-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSans-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSans-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSans-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSans.woff b/themes/hugo-theme-ipng/static/fonts/FreeSans.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSans.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSans.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSansBold-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSansBold-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSansBold-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSansBold-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSansBold.woff b/themes/hugo-theme-ipng/static/fonts/FreeSansBold.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSansBold.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSansBold.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSansBoldOblique.woff b/themes/hugo-theme-ipng/static/fonts/FreeSansBoldOblique.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSansBoldOblique.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSansBoldOblique.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSansOblique.woff b/themes/hugo-theme-ipng/static/fonts/FreeSansOblique.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSansOblique.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSansOblique.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerif-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerif-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerif-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerif-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerif.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerif.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerif.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerif.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifBold-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifBold-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifBold-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifBold-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifBold.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifBold.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifBold.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifBold.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifBoldItalic-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifBoldItalic-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifBoldItalic-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifBoldItalic-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifBoldItalic.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifBoldItalic.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifBoldItalic.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifBoldItalic.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifItalic-small.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifItalic-small.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifItalic-small.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifItalic-small.woff diff --git a/themes/hugo-theme-notrack/static/fonts/FreeSerifItalic.woff b/themes/hugo-theme-ipng/static/fonts/FreeSerifItalic.woff similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/FreeSerifItalic.woff rename to themes/hugo-theme-ipng/static/fonts/FreeSerifItalic.woff diff --git a/themes/hugo-theme-notrack/static/fonts/fa-brands-400.woff2 b/themes/hugo-theme-ipng/static/fonts/fa-brands-400.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/fa-brands-400.woff2 rename to themes/hugo-theme-ipng/static/fonts/fa-brands-400.woff2 diff --git a/themes/hugo-theme-notrack/static/fonts/fa-solid-900.woff2 b/themes/hugo-theme-ipng/static/fonts/fa-solid-900.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/fa-solid-900.woff2 rename to themes/hugo-theme-ipng/static/fonts/fa-solid-900.woff2 diff --git a/themes/hugo-theme-notrack/static/fonts/mononoki-Bold.woff2 b/themes/hugo-theme-ipng/static/fonts/mononoki-Bold.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/mononoki-Bold.woff2 rename to themes/hugo-theme-ipng/static/fonts/mononoki-Bold.woff2 diff --git a/themes/hugo-theme-notrack/static/fonts/mononoki-BoldItalic.woff2 b/themes/hugo-theme-ipng/static/fonts/mononoki-BoldItalic.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/mononoki-BoldItalic.woff2 rename to themes/hugo-theme-ipng/static/fonts/mononoki-BoldItalic.woff2 diff --git a/themes/hugo-theme-notrack/static/fonts/mononoki-Italic.woff2 b/themes/hugo-theme-ipng/static/fonts/mononoki-Italic.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/mononoki-Italic.woff2 rename to themes/hugo-theme-ipng/static/fonts/mononoki-Italic.woff2 diff --git a/themes/hugo-theme-notrack/static/fonts/mononoki-Regular.woff2 b/themes/hugo-theme-ipng/static/fonts/mononoki-Regular.woff2 similarity index 100% rename from themes/hugo-theme-notrack/static/fonts/mononoki-Regular.woff2 rename to themes/hugo-theme-ipng/static/fonts/mononoki-Regular.woff2 diff --git a/themes/hugo-theme-notrack/static/js/asciinema-player.min.js b/themes/hugo-theme-ipng/static/js/asciinema-player.min.js similarity index 100% rename from themes/hugo-theme-notrack/static/js/asciinema-player.min.js rename to themes/hugo-theme-ipng/static/js/asciinema-player.min.js diff --git a/themes/hugo-theme-notrack/static/js/gallery.js b/themes/hugo-theme-ipng/static/js/gallery.js similarity index 100% rename from themes/hugo-theme-notrack/static/js/gallery.js rename to themes/hugo-theme-ipng/static/js/gallery.js diff --git a/themes/hugo-theme-notrack/theme.toml b/themes/hugo-theme-ipng/theme.toml similarity index 100% rename from themes/hugo-theme-notrack/theme.toml rename to themes/hugo-theme-ipng/theme.toml diff --git a/themes/hugo-theme-notrack/.gitignore b/themes/hugo-theme-notrack/.gitignore deleted file mode 100644 index 86f7aa1..0000000 --- a/themes/hugo-theme-notrack/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.hugo_build.lock -styles.css.map diff --git a/themes/hugo-theme-notrack/README.md b/themes/hugo-theme-notrack/README.md deleted file mode 100644 index 67ffaf3..0000000 --- a/themes/hugo-theme-notrack/README.md +++ /dev/null @@ -1,538 +0,0 @@ -# Notrack - -An original, minimal theme with a focus on self-sufficiency and -decentralization. By default, Notrack does not rely on any third parties -to serve your website. The only exception is Disqus comments, which are -not used by default (see [Adding -comments](#adding-comments) below). - -# Table of contents - -* [Notrack](#notrack) -* [Table of contents](#table-of-contents) -* [Screenshot](#screenshot) -* [Example site `config`](#example-site-config) -* [Shortcodes](#shortcodes) -* [User CSS](#user-css) -* [Navigation bar](#navigation-bar) - * [How to add a page to the navigation bar](#how-to-add-a-page-to-the-navigation-bar) - * [How to add a page to drop down menu](#how-to-add-a-page-to-drop-down-menu) -* [How tos](#how-tos) - * [How to create a home page](#how-to-create-a-home-page) - * [How to create a blog](#how-to-create-a-blog) - * [Adding comments](#adding-comments) - * [How to create a gallery](#how-to-create-a-gallery) - * [How to create a resume](#how-to-create-a-resume) - * [How to display social links](#how-to-display-social-links) -* [Other projects used in this theme](#other-projects-used-in-this-theme) -* [Contribution](#contribution) - -# Screenshot - -![Screenshot of the -theme](https://raw.githubusercontent.com/gevhaz/hugo-theme-notrack/master/images/screenshot.png) - -# Try it out yourself - -## Dependencies - -You will need the extended edition of Hugo in order to use this theme. This is -the edition Hugo's developers recommend for most users. You probably already -have it, but you can double check with: - -``` -$ hugo version -hugo v0.115.4+extended linux/amd64 BuildDate=unknown -``` - -Note the "+extended" after the version number. Information about the standard -and extended versions may be found within Hugo's [installation -instructions](https://gohugo.io/installation/). - -## Running the example site on localhost - -If you want to try out the theme with an example page, do the following: - -```shell -$ git clone https://github.com/gevhaz/hugo-theme-notrack -$ mv hugo-theme-notrack notrack -$ cd notrack/exampleSite/ -$ hugo server -D --themesDir ../.. -``` - -You can now see the example website in your browser and interact with it. Hugo -will print instructions for what address to use. Usually it is `http://localhost:1313/`. - -# Example site configuration file - -Here is a working `config.yaml`: - -```yaml -baseURL = "http://example.org/" -languageCode = "en-us" -title = "Lawyer Hugo Grotius" -theme = "notrack" -newContentEditor = "nvim" -mainSections = ["blog"] -# disqusShortname = "example" -paginate = 4 - -[params] - author = "Hugo de Groot" - siteHeading = "Hugo Grotius" # defaults to author - favicon = "hugo_grotius.png" # Adds a small icon next to the page title in a tab - showBlogLatest = true - mainSections = ["blog"] - showTaxonomyLinks = false - nBlogLatest = 4 # number of blog post om the home page - blogLatestHeading = "My writing" - footer = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License." - - [params.social] - github = "example" - linkedin = "example" - email = "example@example.com" - mastodon = "example" - medium = "example" - keybase = "example" - -[taxonomies] - year = "year" - month = "month" - tags = "tags" - categories = "categories" - -[permalinks] - blog = "/blog/:year/:month/:slug" -``` - -# Shortcodes - -| Category | Shortcode | Description | -| :--- | :--- | :--- | -| **Contact info** | `contact-box` | Displays contact info set in `params.social` | -| | `social` | Displays contact info set in `params.social` | -| **Photo Gallery** | `gallery-category` | Container for `gallery-photo` shortcodes | -| | `gallery-modal` | HTML to allow for full page view of gallery photos | -| | `gallery-photo` | Include a photo in a gallery | -| | `gallery-script` | Script to allow for full page view of gallery photos | -| **General** | `image` | Image for use in any page. See example in [How to create a blog](#how-to-create-a-blog) | -| | `video` | Similar to an ordinary `