Merge origin/main into style/herman
This commit is contained in:
commit
d796205bf8
@ -106,6 +106,10 @@ already implemented:
|
|||||||
`render: false` to your [build
|
`render: false` to your [build
|
||||||
options](https://gohugo.io/content-management/build-options/#readout) to avoid
|
options](https://gohugo.io/content-management/build-options/#readout) to avoid
|
||||||
rendering a blank post.
|
rendering a blank post.
|
||||||
|
- Skip link: a "skip to main content" link that is temporarily invisible, but
|
||||||
|
can be focused by people who need a keyboard to navigate the web (see [PR
|
||||||
|
#5](https://github.com/clente/hugo-bearcub/pull/5) by
|
||||||
|
[@2kool4idkwhat](https://github.com/2kool4idkwhat) for more information).
|
||||||
- Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by
|
- Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by
|
||||||
writing the CSS you need in `assets/{custom_css}.css` and then including
|
writing the CSS you need in `assets/{custom_css}.css` and then including
|
||||||
`style: "{custom_css}.css"` in the [front
|
`style: "{custom_css}.css"` in the [front
|
||||||
@ -158,7 +162,7 @@ enableRobotsTXT = true
|
|||||||
LanguageCode = "en-US"
|
LanguageCode = "en-US"
|
||||||
contentDir = "content"
|
contentDir = "content"
|
||||||
[languages.en.params]
|
[languages.en.params]
|
||||||
blogPath = "/blog" # Path to your blog section (used by RSS)
|
blogPath = "blog" # Path to your blog section (used by RSS)
|
||||||
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
||||||
[languages.pt]
|
[languages.pt]
|
||||||
title = "Bear Cub"
|
title = "Bear Cub"
|
||||||
@ -166,7 +170,7 @@ enableRobotsTXT = true
|
|||||||
LanguageCode = "pt-BR"
|
LanguageCode = "pt-BR"
|
||||||
contentDir = "content.pt"
|
contentDir = "content.pt"
|
||||||
[languages.pt.params]
|
[languages.pt.params]
|
||||||
blogPath = "/pt/blog" # Path to your blog section (used by RSS)
|
blogPath = "blog" # Path to your blog section (used by RSS)
|
||||||
madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
@ -176,3 +176,17 @@ td {
|
|||||||
gap: calc(var(--spacing) / 2);
|
gap: calc(var(--spacing) / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* "Skip to main content" link */
|
||||||
|
.skip-link {
|
||||||
|
position: absolute;
|
||||||
|
top: 5;
|
||||||
|
transform: translateY(-600%);
|
||||||
|
transition: transform 0.5s;
|
||||||
|
background-color: #181a20;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skip-link:focus {
|
||||||
|
transform: translateY(0%);
|
||||||
|
}
|
||||||
|
@ -33,7 +33,7 @@ enableRobotsTXT = true
|
|||||||
LanguageCode = "en-US"
|
LanguageCode = "en-US"
|
||||||
contentDir = "content"
|
contentDir = "content"
|
||||||
[languages.en.params]
|
[languages.en.params]
|
||||||
blogPath = "/blog" # Path to your blog section (used by RSS)
|
blogPath = "blog" # Path to your blog section (used by RSS)
|
||||||
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
||||||
[languages.pt]
|
[languages.pt]
|
||||||
title = "Bear Cub"
|
title = "Bear Cub"
|
||||||
@ -41,7 +41,7 @@ enableRobotsTXT = true
|
|||||||
LanguageCode = "pt-BR"
|
LanguageCode = "pt-BR"
|
||||||
contentDir = "content.pt"
|
contentDir = "content.pt"
|
||||||
[languages.pt.params]
|
[languages.pt.params]
|
||||||
blogPath = "/pt/blog" # Path to your blog section (used by RSS)
|
blogPath = "blog" # Path to your blog section (used by RSS)
|
||||||
madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
@ -5,4 +5,7 @@
|
|||||||
other = "No posts yet"
|
other = "No posts yet"
|
||||||
|
|
||||||
[email-subject]
|
[email-subject]
|
||||||
other = "Reply to "
|
other = "Reply to "
|
||||||
|
|
||||||
|
[skip-link]
|
||||||
|
other = "Skip to main content"
|
@ -5,4 +5,7 @@
|
|||||||
other = "Nenhum post ainda"
|
other = "Nenhum post ainda"
|
||||||
|
|
||||||
[email-subject]
|
[email-subject]
|
||||||
other = "Resposta a "
|
other = "Resposta a "
|
||||||
|
|
||||||
|
[skip-link]
|
||||||
|
other = "Pular para conteúdo principal"
|
@ -36,7 +36,7 @@
|
|||||||
<header>
|
<header>
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main id="main-content">
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
|
<a class="skip-link" href="#main-content">{{ i18n "skip-link" }}</a>
|
||||||
|
|
||||||
<a href="{{ relURL .Site.Home.Permalink }}" class="title"><h1>{{ .Site.Title }}</h1></a>
|
<a href="{{ relURL .Site.Home.Permalink }}" class="title"><h1>{{ .Site.Title }}</h1></a>
|
||||||
<nav>{{- partial "nav.html" . -}}</nav>
|
<nav>{{- partial "nav.html" . -}}</nav>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ range .Site.Menus.main.ByWeight }}
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
<a href="{{ relLangURL .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Social.email }}
|
{{ with .Site.Social.email }}
|
||||||
<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>Email</a>
|
<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>Email</a>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name = "Bear Cub"
|
name = "Bear Cub"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
licenselink = "https://github.com/clente/hugo-bearcub/blob/master/LICENSE"
|
licenselink = "https://github.com/clente/hugo-bearcub/blob/master/LICENSE"
|
||||||
description = "Theme description"
|
description = "A lightweight Hugo theme based on Bear Blog and Hugo Bear Blog. It is free, multilingual, optimized for search engines, no-nonsense, responsive, light, and fast. Really fast."
|
||||||
|
|
||||||
# The home page of the theme, where the source can be found.
|
# The home page of the theme, where the source can be found.
|
||||||
homepage = "https://github.com/clente/hugo-bearcub"
|
homepage = "https://github.com/clente/hugo-bearcub"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user