Merge branch 'master' of ssh://git.ivayloivanov.eu:30000/ivo/hugo-theme-noteworthy

This commit is contained in:
Ivaylo Ivanov 2025-03-25 15:27:27 +01:00
commit a679f15de1
13 changed files with 152 additions and 36 deletions

View File

@ -1,7 +1,7 @@
/* VARIABLES ========================================================================== */
// COLORS
$teal: #63BDA2;
$teal: #1F8455;
$teal-darker: #359377;
$gray-background: #F7F7F7;
$gray-table-border: #EEEEEE;
@ -482,6 +482,8 @@ footer {
display: inline-block;
height: 2em;
position: relative;
border: none;
background: none;
}
.social-icon>svg:hover {

29
i18n/bg.toml Normal file
View File

@ -0,0 +1,29 @@
[page]
other = "Страница"
[of]
other = "от"
[newer]
other = "По-нови"
[older]
other = "По-стари"
[tagged]
other = "Тагнати"
[tags]
other = "Тагове"
[read_more]
other = "Прочети повече..."
[archive]
other = "Архив"
[noteworthy_theme]
other = "Тема Noteworthy"
[built_with_hugo]
other = "Направено с Hugo"

29
i18n/de.toml Normal file
View File

@ -0,0 +1,29 @@
[page]
other = "Seite"
[of]
other = "von"
[newer]
other = "Neuere"
[older]
other = "Ältere"
[tagged]
other = "Getaggt"
[tags]
other = "Tags"
[read_more]
other = "Mehr lesen..."
[archive]
other = "Archiv"
[noteworthy_theme]
other = "Noteworthy Theme"
[built_with_hugo]
other = "Gebaut mit Hugo"

View File

@ -13,9 +13,15 @@ other = "Older"
[tagged]
other = "Tagged"
[tags]
other = "Tags"
[read_more]
other = "Read more..."
[archive]
other = "Archive"
[noteworthy_theme]
other = "Noteworthy theme"

View File

@ -1,23 +0,0 @@
[page]
other = "Pagina"
[of]
other = "di"
[newer]
other = "Successivi"
[older]
other = "Precedenti"
[tagged]
other = "Contrassegnato"
[read_more]
other = "Continua a leggere..."
[noteworthy_theme]
other = "Tema Noteworthy"
[built_with_hugo]
other = "Realizzato con Hugo"

View File

@ -26,9 +26,9 @@
{{if .Params.tags}}
<hr class="footer-divider">
{{ range .Params.tags }}
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
<a class="tag" href="{{ "/tags/" | relURL }}{{ . | urlize }}">#{{.}}</a>
{{ end }}
{{ end }}
</div>
{{end}}
{{end}}

View File

@ -27,7 +27,7 @@
<!-- Display tags -->
{{if .Params.tags}}
{{ range .Params.tags }}
<a class="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{.}}</a>
<a class="tag" href="{{ "/tags/" | relURL }}{{ . | urlize }}">#{{.}}</a>
{{ end }}
{{ end }}
</div>

View File

@ -2,7 +2,7 @@
{{ partial "social.html" . }}
<div class="footer-mobile-links">
<p><a href="https://github.com/kimcc/hugo-theme-noteworthy" target="_blank" rel="noopener">{{ i18n "noteworthy_theme" }}</a></p>
<p><a href="https://git.ivayloivanov.eu/ivo/hugo-theme-noteworthy" target="_blank" rel="noopener">{{ i18n "noteworthy_theme" }}</a></p>
<span class="divider-bar">|</span>
<p><a href="https://gohugo.io" target="_blank" rel="noopener">{{ i18n "built_with_hugo" }}</a></p>
</div>

View File

@ -13,6 +13,14 @@
<link rel="mask-icon" href="{{ "/" | relURL }}favicon/safari-pinned-tab.svg" color="#FF3DB4">
<meta name="theme-color" content="#ffffff">
<!-- SSO Metadata -->
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta
name="description"
content="{{ if .Params.description }}{{ .Params.description }}{{ end }}"
/>
{{ partial "schema.html" . }}
<!-- Styles -->
<!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
{{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}

View File

@ -5,7 +5,7 @@
{{ range .Site.Menus.main }}
<a class="color-link nav-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
{{ end }}
<a class="color-link nav-link" href="{{ .Site.BaseURL }}/archive/">Archive</a>
<a class="color-link nav-link" href="{{ .Site.BaseURL }}/archive/">{{ i18n "archive" }}</a>
</div>
{{ partial "footer.html" . }}
</nav>

View File

@ -0,0 +1,66 @@
{{ if .IsHome -}}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "{{ .Site.Title }}",
"url": "{{ .Site.BaseURL }}",
"description": "{{ .Site.Params.description }}",
"thumbnailUrl": "{{ .Site.BaseURL }}favicon/favicon-32x32.png"
}
</script>
{{ else if .IsPage }}
{{ $author := or (.Params.author) (.Site.Params.Author.name) }}
{{ $authorUrl := or (.Params.authorUrl) (.Site.Params.Author.url) }}
{{ $org_name := .Site.Title }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"name": "{{ .Title | safeJS }}",
"headline": "{{ .Title | safeJS }}",
"description": "{{ if .Description }}{{ .Description | safeJS }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"inLanguage": {{ .Site.LanguageCode | default "en-us" }},
"isFamilyFriendly": "true",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Permalink }}"
},
"author" : {
"@type": "Person",
"name": "{{ $author }}",
"url": "{{ $authorUrl }}"
},
"creator" : {
"@type": "Person",
"name": "{{ $author }}"
},
"accountablePerson" : {
"@type": "Person",
"name": "{{ $author }}"
},
"copyrightHolder" : "{{ $org_name }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"dateCreated": "{{ .Date.Format "2006-01-02T15:04:05.00Z" | safeHTML }}",
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05.00Z" | safeHTML }}",
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05.00Z" | safeHTML }}",
"publisher":{
"@type":"Organization",
"name": {{ $org_name }},
"url": {{ .Site.BaseURL }},
"logo": {
"@type": "ImageObject",
"url": "{{ .Site.BaseURL }}favicon/favicon-32x32.png",
"width":"32",
"height":"32"
}
},
"image": {{ if .Params.images }}[{{ range $i, $e := .Params.images }}{{ if $i }}, {{ end }}{{ $e | absURL }}{{ end }}]{{ else}}{{.Site.Params.logo | absURL }}{{ end }},
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
"genre" : [ {{ range $index, $tag := .Params.tags }}{{ if $index }}, {{ end }}"{{ $tag }}" {{ end }}],
"keywords" : [ {{ range $index, $keyword := .Params.keywords }}{{ if $index }}, {{ end }}"{{ $keyword }}" {{ end }}]
}
</script>
{{ end }}

View File

@ -244,7 +244,7 @@
</a>
{{ end }}
<a class="social-icon" href="/index.xml" target="_blank" rel="noopener" type="application/rss+xml">
<a class="social-icon" href="/index.xml" target="_blank" rel="noopener" type="application/rss+xml" title="RSS">
<svg width="22px" height="22px" viewBox="0 0 8 8" version="1.1" fill="#ABABAB" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink">
<style type="text/css">
.button {stroke: none; fill: #ABABAB;}
@ -260,12 +260,11 @@
</svg>
</a>
<a class="social-icon" onclick="toggleDarkMode()" rel="noopener" type="button">
<button class="social-icon" onclick="toggleDarkMode()" rel="noopener" type="button" title="Dark Mode">
<svg fill="#ABABAB" width="28px" height="28px" viewBox="0 0 56 56" xmlns="http://www.w3.org/2000/svg">
<path d="M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 34.9374 32.9453 C 36.5546 32.9453 38.1952 32.5938 39.1796 32.2422 C 39.4374 32.1719 39.6014 32.1484 39.7421 32.1484 C 40.1171 32.1484 40.5155 32.4766 40.5155 32.9687 C 40.5155 33.0625 40.4921 33.3672 40.3749 33.6719 C 38.6874 37.9375 33.8358 41.3828 28.2109 41.3828 C 20.4999 41.3828 14.6171 35.875 14.6171 28.1640 C 14.6171 22.6562 17.8749 17.4062 22.7265 15.4844 C 23.0312 15.3672 23.3124 15.3438 23.4765 15.3438 C 23.9687 15.3438 24.2499 15.7422 24.2499 16.0938 C 24.2499 16.2109 24.2265 16.3984 24.1093 16.7031 C 23.6874 17.8047 23.2890 19.8906 23.2890 21.3672 C 23.2890 28.4687 27.8358 32.9453 34.9374 32.9453 Z"/>
</svg>
</a>
</button>
</div>

View File

@ -1,9 +1,9 @@
name = "Noteworthy"
license = "MIT"
licenselink = "https://github.com/kimcc/hugo-theme-noteworthy/blob/master/LICENSE.md"
licenselink = "https://git.ivayloivanov.eu/ivo/hugo-theme-noteworthy/src/branch/master/LICENSE.md"
description = "A minimalist Hugo theme for writers and bloggers."
homepage = "https://github.com/kimcc/hugo-theme-noteworthy"
tags = ["blog", "minimalist", "minimal", "clean", "simple", "responsive", "light"]
homepage = "https://git.ivayloivanov.eu/ivo/hugo-theme-noteworthy"
tags = ["blog", "minimalist", "minimal", "clean", "simple", "responsive", "light", "dark"]
features = ["blog", "responsive", "social media"]
min_version = "0.55.2"