Skip to content

Commit

Permalink
Merge pull request #822 from nunocoracao/dev
Browse files Browse the repository at this point in the history
🔖 v2.37.0
  • Loading branch information
nunocoracao authored Jul 14, 2023
2 parents eceda27 + 0225828 commit 869da32
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 53 deletions.
4 changes: 4 additions & 0 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,10 @@ select {
margin-bottom: 0.625rem;
}

.mb-20 {
margin-bottom: 5rem;
}

.mb-3 {
margin-bottom: 0.75rem;
}
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0"
max = "0.115.1"
max = "0.115.3"
2 changes: 2 additions & 0 deletions exampleSite/content/users/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Real websites that are built with Blowfish.
| [halcyonstraits.com](https://www.halcyonstraits.com/) | Doll photography |
| [50-nuances-octets.fr](https://www.50-nuances-octets.fr/) | Organization site |
| [marupanda.art/marucomics](https://marupanda.art/marucomics/) | Comics site |
| [seanomahoney.com](https://seanomahoney.com/) | Personal site |
| [pacochan.net](https://pacochan.net) | Personal site |

{{< alert >}}

Expand Down
4 changes: 2 additions & 2 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ article:
part_of_series: "Dieser Artikel ist Teil einer Serie."
part: "Teil"
this_article: "Dieser Artikel"
related_articles: "Related"
related_articles: "Verwandte Artikel"

author:
byline_title: "Autor"
Expand Down Expand Up @@ -63,4 +63,4 @@ shortcode:


recent:
show_more: "Zeige Mehr"
show_more: "Zeige Mehr"
12 changes: 9 additions & 3 deletions i18n/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ article:
word_count:
one: "{{ .Count }} palabra"
other: "{{ .Count }} palabras"
views:
one: "{{ .Count }} visualización"
other: "{{ .Count }} visualizaciones"
likes:
one: "{{ .Count }} me gusta"
other: "{{ .Count }} me gusta"
part_of_series: "Este artículo es parte de una serie."
part: "Parte"
this_article: "Este artículo"
related_articles: "Related"
related_articles: "Relacionados"

author:
byline_title: "Autor"
Expand All @@ -38,7 +44,7 @@ footer:
powered_by: "Desarrollada con {{ .Hugo }} &amp; {{ .Theme }}"

list:
externalurl_title: "Link a página externa"
externalurl_title: "Enlace a página externa"
no_articles: "Aún no hay artículos para listar aquí."

nav:
Expand All @@ -62,4 +68,4 @@ shortcode:
recent_articles: "Reciente"

recent:
show_more: "Mostrar Más"
show_more: "Mostrar más"
3 changes: 2 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .
{{- end }} prose flex max-w-full flex-col dark:prose-invert lg:flex-row">
{{ if $toc }}
<div class="order-first px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 lg:sticky lg:top-10">
<div class="toc ltr:pl-5 rtl:pr-5 lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" -}}
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
{{ partial "toc.html" . }}
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions layouts/_default/index.rss.xml → layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<generator>Hugo -- gohugo.io</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
{{ if .Site.Params.footer.showCopyright | default true -}}
<copyright>{{ with replace .Site.Params.copyright "{ year }" now.Year }}{{.}}{{ else }}© {{ now.Format "2006" }} {{ .Site.Author.name }}{{- end }}</copyright>
{{- end }}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
Expand Down
24 changes: 14 additions & 10 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,32 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
{{ end }}

</header>

<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">

{{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul")) (.Site.Params.article.showRelatedPosts | default false) }} <div
class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if eq .Site.Params.header.layout " fixed" }}
lg:top-[140px] {{ else }} lg:top-10 {{ end }}">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" -}}
lg:top-[140px]{{ else }}lg:top-10{{ end }}">

{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul") }} {{ partial "toc.html" . }} {{ end }} {{ if .Site.Params.article.showRelatedPosts |
default false }} sd {{ end }} </div>
</div>
{{ end }}
<div class="min-w-0 min-h-0 max-w-prose">

<div class="min-w-0 min-h-0 max-w-fit">

{{ partial "series.html" . }}
{{ .Content | emojify }}
</br></br>

<div class="max-w-prose mb-20">
{{ .Content | emojify }}
</div>

{{ partial "series-closed.html" . }}
{{ partial "sharing-links.html" . }}
{{ partial "related.html" . }}
</div>

<script>
Expand All @@ -88,11 +97,6 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
</section>
<footer class="pt-8 max-w-prose print:hidden">


{{ partial "sharing-links.html" . }}

{{ partial "related.html" . }}

{{ partial "article-pagination.html" . }}
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
{{ if templates.Exists "partials/comments.html" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{{ partial "icon.html" "bars" }}
</div>
<div id="menu-wrapper" style="padding-top:5px;"
class="fixed inset-0 z-30 invisible w-screen h-screen m-auto overflow-auto transition-opacity opacity-0 cursor-default bg-neutral-100/50 backdrop-blur-sm dark:bg-neutral-900/50">
class="fixed inset-0 z-30 invisible w-screen h-screen m-0 overflow-auto transition-opacity opacity-0 cursor-default bg-neutral-100/50 backdrop-blur-sm dark:bg-neutral-900/50">
<ul
class="flex space-y-2 mt-3 flex-col items-end w-full px-6 py-6 mx-auto overflow-visible list-none ltr:text-right rtl:text-left max-w-7xl">

Expand Down
50 changes: 24 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.36.1",
"version": "2.37.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
Expand Down Expand Up @@ -42,9 +42,9 @@
"packery": "^2.1.2",
"prettier": "^2.8.8",
"prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.3.0",
"prettier-plugin-tailwindcss": "^0.4.0",
"rimraf": "^5.0.1",
"tailwindcss": "^3.3.2",
"tailwindcss": "^3.3.3",
"tw-elements": "1.0.0-beta2",
"typeit": "^8.7.1",
"vendor-copy": "^3.0.1"
Expand Down Expand Up @@ -95,7 +95,7 @@
"dependencies": {
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/forms": "^0.5.4",
"commander": "^11.0.0"
}
}

0 comments on commit 869da32

Please sign in to comment.