aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC. Lente <7017340+clente@users.noreply.github.com>2023-02-09 17:51:22 -0300
committerC. Lente <7017340+clente@users.noreply.github.com>2023-02-09 17:51:22 -0300
commitcba0246af95a47fed581e2239bcd7cede978b826 (patch)
treee44ad08ba204b45d4ee727595250e9c20a78405f
parent6d88b28c14979059df16cec340de783d8b536c1c (diff)
downloadhugo-bearcub-cba0246af95a47fed581e2239bcd7cede978b826.tar.gz
hugo-bearcub-cba0246af95a47fed581e2239bcd7cede978b826.tar.bz2
Move to double quotes
-rw-r--r--exampleSite/config.toml12
-rw-r--r--i18n/en.toml4
-rw-r--r--i18n/pt.toml4
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/partials/nav.html2
5 files changed, 13 insertions, 12 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index fc2c0f9..08b9428 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -6,8 +6,8 @@ baseURL = "https://example.com"
theme = "hugo-bearcub"
# Basic metadata configuration for your blog.
-author = "Caio Lente"
-copyright = "Caio Lente (CC BY-SA 4.0)"
+author = "John Doe"
+copyright = "John Doe (CC BY-SA 4.0)"
# highlighting without inline styles
[markup]
@@ -25,19 +25,21 @@ DefaultContentLanguage = "en"
[languages.en]
title = "Example Site"
languageName = "English 🇺🇸"
+ LanguageCode = "en-US"
contentDir = "content"
weight = 1
[languages.en.params]
# You can use markdown here if you want to link somewhere
- madeWith = '[Feito de pedra](/posts/sites-de-pedra)'
+ madeWith = "[Feito de pedra](/posts/sites-de-pedra)"
[languages.pt]
title = "Site Exemplo"
languageName = "Português 🇧🇷"
+ LanguageCode = "pt-BR"
contentDir = "content.pt"
weight = 2
[languages.pt.params]
# You can use markdown here if you want to link somewhere
- madeWith = '[Feito de pedra](/posts/sites-de-pedra)'
+ madeWith = "[Feito de pedra](/posts/sites-de-pedra)"
[params]
# The "description" of your website. This is used in the meta data of your generated html.
@@ -66,4 +68,4 @@ DefaultContentLanguage = "en"
hideUntranslated = false
# Email
- email = "c@lente.dev"
+ email = "me@example.com"
diff --git a/i18n/en.toml b/i18n/en.toml
index 64671c0..b3704ba 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -1,5 +1,5 @@
[filtering-for]
- other = 'Filtering for'
+ other = "Filtering for"
[email-subject]
- other = 'Reply to ' \ No newline at end of file
+ other = "Reply to " \ No newline at end of file
diff --git a/i18n/pt.toml b/i18n/pt.toml
index 476df2b..04d040b 100644
--- a/i18n/pt.toml
+++ b/i18n/pt.toml
@@ -1,5 +1,5 @@
[filtering-for]
- other = 'Filtrando para'
+ other = "Filtrando para"
[email-subject]
- other = 'Resposta a ' \ No newline at end of file
+ other = "Resposta a " \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d610cf1..84514aa 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -25,8 +25,7 @@
</li>
{{ end }}
</ul>
- {{ if .Data.Singular }}
- {{else}}
+ {{ if not .Data.Singular }}
<div>
{{ range .Site.Taxonomies.tags }}
<a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;&nbsp;
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 045c9af..b7e9f79 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,7 @@
{{ range .Site.Menus.main.ByWeight }}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
-<a href="mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
+<a href='mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}"{{ .Page.Title | default .Site.Title }}"'>Email</a>
<a href="/index.xml">RSS</a>
{{ $pageLang := .Page.Lang }}
{{ if .IsTranslated }}