Compare commits

..

8 Commits

Author SHA1 Message Date
Nuno Coração 890958d6c8 Merge pull request #152 from nunocoracao/150-fix-prose-width
fixed width in Term partials
2022-10-20 23:28:58 +01:00
Nuno Coração fe5d9b0246 fixed width in Term partials 2022-10-20 23:28:15 +01:00
Nuno Coração 7087e71d9a Merge pull request #151 from nunocoracao/150-fix-prose-width
improved readibilit of content
2022-10-20 22:04:46 +01:00
Nuno Coração 539cfd6443 improved readibilit of content 2022-10-20 22:03:49 +01:00
Nuno Coração 4b45ff114f Update package.json 2022-10-20 12:16:36 +01:00
Nuno Coração 0253344873 Merge pull request #149 from nunocoracao/148-images-in-both-hero-card-and-background-are-not-loaded-from-assets-folder
fixed bug in homepage image loading
2022-10-20 12:16:18 +01:00
Nuno Coração c64eac525a fixed bug 2022-10-20 12:15:37 +01:00
Nuno Coração 03cf3aec76 updated installation instructions for hugo 2022-10-18 22:03:33 +01:00
12 changed files with 38 additions and 22 deletions
+12 -8
View File
@@ -1670,14 +1670,14 @@ select {
width: 3rem; width: 3rem;
} }
.w-36 {
width: 9rem;
}
.w-full { .w-full {
width: 100%; width: 100%;
} }
.w-36 {
width: 9rem;
}
.w-24 { .w-24 {
width: 6rem; width: 6rem;
} }
@@ -3073,10 +3073,6 @@ body:has(#menu-controller:checked) {
} }
} }
.max-w-prose {
max-width: 75ch;
}
.first\:mt-8:first-child { .first\:mt-8:first-child {
margin-top: 2rem; margin-top: 2rem;
} }
@@ -3523,6 +3519,10 @@ body:has(#menu-controller:checked) {
width: 50%; width: 50%;
} }
.sm\:max-w-prose {
max-width: 65ch;
}
.sm\:flex-row { .sm\:flex-row {
flex-direction: row; flex-direction: row;
} }
@@ -3676,6 +3676,10 @@ body:has(#menu-controller:checked) {
margin-right: 0px; margin-right: 0px;
} }
.lg\:ml-auto {
margin-left: auto;
}
.lg\:mt-0 { .lg\:mt-0 {
margin-top: 0px; margin-top: 0px;
} }
-4
View File
@@ -396,7 +396,3 @@ body:has(#menu-controller:checked) {
flex-wrap: nowrap; flex-wrap: nowrap;
} }
} }
.max-w-prose {
max-width: 75ch;
}

Before

Width:  |  Height:  |  Size: 4.8 MiB

After

Width:  |  Height:  |  Size: 4.8 MiB

+2 -2
View File
@@ -23,7 +23,7 @@ mainSections = ["docs"]
[homepage] [homepage]
layout = "custom" # valid options: page, profile, hero, card, background, custom layout = "custom" # valid options: page, profile, hero, card, background, custom
homepageImage = "iceland.jpg" # used in: hero, and card homepageImage = "/img/iceland.jpg" # used in: hero, and card
showRecent = true showRecent = true
showRecentItems = 5 showRecentItems = 5
showMoreLink = true showMoreLink = true
@@ -57,7 +57,7 @@ mainSections = ["docs"]
[list] [list]
showBreadcrumbs = false showBreadcrumbs = false
showSummary = true showSummary = true
showTableOfContents = false showTableOfContents = true
showCards = true showCards = true
groupByYear = false groupByYear = false
@@ -67,7 +67,7 @@ This method is the quickest and easiest for keeping the theme up-to-date. Hugo u
```toml ```toml
[[imports]] [[imports]]
path = "github.com/nunocoracao/blowfish" path = "github.com/nunocoracao/blowfish/v2"
``` ```
4. Start your server using `hugo server` and the theme will be downloaded automatically. 4. Start your server using `hugo server` and the theme will be downloaded automatically.
+1 -1
View File
@@ -25,7 +25,7 @@
</div> </div>
</section> </section>
{{ if gt .Pages 0 }} {{ if gt .Pages 0 }}
<section class="space-y-10 max-w-prose"> <section class="space-y-10 w-full">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300"> <h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">
+2 -1
View File
@@ -21,7 +21,8 @@
</header> </header>
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row"> <section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in {{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul") }} <div class="order-first px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8"> .TableOfContents "<ul") }}
<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 lg:top-10"> <div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky lg:top-10">
{{ partial "toc.html" . }} {{ partial "toc.html" . }}
</div> </div>
+1 -1
View File
@@ -12,7 +12,7 @@
</div> </div>
</section> </section>
{{ end }} {{ end }}
<section class="mt-5 space-y-10 max-w-prose"> <section class="mt-5 space-y-10 w-full">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300"> <h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">
+6 -1
View File
@@ -4,13 +4,18 @@
<div class="mx-auto max-w-7xl p-0"> <div class="mx-auto max-w-7xl p-0">
<div class="relative sm:overflow-hidden"> <div class="relative sm:overflow-hidden">
<div class="absolute inset-0"> <div class="absolute inset-0">
<img class="h-full w-full object-cover m-0 nozoom" src="{{ .Site.Params.homepage.homepageImage }}"> {{ with .Site.Params.homepage.homepageImage }}
{{ $homepageImage := resources.Get . }}
{{ if $homepageImage }}
<img class="h-full w-full object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}">
<div <div
class="absolute inset-0 bg-gradient-to-t from-neutral-100 dark:from-neutral-800 to-transparent dark:to-neutral-300 mix-blend-normal dark:mix-blend-multiply"> class="absolute inset-0 bg-gradient-to-t from-neutral-100 dark:from-neutral-800 to-transparent dark:to-neutral-300 mix-blend-normal dark:mix-blend-multiply">
</div> </div>
<div <div
class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"> class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal">
</div> </div>
{{ end }}
{{ end }}
</div> </div>
<div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center"> <div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center">
{{ with .Site.Author.image }} {{ with .Site.Author.image }}
+6 -1
View File
@@ -14,8 +14,13 @@
</div> </div>
<div class="mt-6 sm:mt-16 lg:mt-0"> <div class="mt-6 sm:mt-16 lg:mt-0">
<div class="-mr-48 pl-4 sm:pl-6 md:-mr-16 lg:relative lg:m-0 lg:h-full lg:px-0"> <div class="-mr-48 pl-4 sm:pl-6 md:-mr-16 lg:relative lg:m-0 lg:h-full lg:px-0">
{{ with .Site.Params.homepage.homepageImage }}
{{ $homepageImage := resources.Get . }}
{{ if $homepageImage }}
<img class="w-full rounded-xl shadow-xl lg:absolute lg:left-0 lg:h-full lg:w-auto lg:max-w-none" <img class="w-full rounded-xl shadow-xl lg:absolute lg:left-0 lg:h-full lg:w-auto lg:max-w-none"
src="{{ .Site.Params.homepage.homepageImage }}"> src="{{ $homepageImage.RelPermalink }}">
{{ end }}
{{ end }}
</div> </div>
</div> </div>
</div> </div>
+6 -1
View File
@@ -4,10 +4,15 @@
<div class="mx-auto max-w-7xl p-0"> <div class="mx-auto max-w-7xl p-0">
<div class="relative shadow-xl sm:overflow-hidden rounded-2xl"> <div class="relative shadow-xl sm:overflow-hidden rounded-2xl">
<div class="absolute inset-0"> <div class="absolute inset-0">
<img class="h-full w-full object-cover m-0 nozoom" src="{{ .Site.Params.homepage.homepageImage }}"> {{ with .Site.Params.homepage.homepageImage }}
{{ $homepageImage := resources.Get . }}
{{ if $homepageImage }}
<img class="h-full w-full object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}">
<div <div
class="absolute inset-0 bg-gradient-to-r from-primary-500 to-secondary-700 dark:from-primary-600 dark:to-secondary-800 mix-blend-multiply"> class="absolute inset-0 bg-gradient-to-r from-primary-500 to-secondary-700 dark:from-primary-600 dark:to-secondary-800 mix-blend-multiply">
</div> </div>
{{ end }}
{{ end }}
</div> </div>
<div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center"> <div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center">
{{ with .Site.Author.image }} {{ with .Site.Author.image }}
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.4.0", "version": "2.4.3",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"preinstall": "rimraf assets/vendor", "preinstall": "rimraf assets/vendor",