final small fixes

This commit is contained in:
Nuno Coração 2022-12-21 21:13:28 +00:00
parent 3e7df21899
commit e8cc7d8fc6
3 changed files with 24 additions and 20 deletions

View file

@ -14,6 +14,7 @@ The examples below are a small selection taken from the [official Mermaid docs](
## Flowchart ## Flowchart
<div style="background-color:white; padding: 20px">
{{< mermaid >}} {{< mermaid >}}
graph TD graph TD
A[Christmas] -->|Get money| B(Go shopping) A[Christmas] -->|Get money| B(Go shopping)
@ -30,9 +31,11 @@ F
G G
end end
{{< /mermaid >}} {{< /mermaid >}}
</div>
## Sequence diagram ## Sequence diagram
<div style="background-color:white; padding: 20px">
{{< mermaid >}} {{< mermaid >}}
sequenceDiagram sequenceDiagram
autonumber autonumber
@ -50,9 +53,11 @@ loop Every minute
John-->Alice: Great! John-->Alice: Great!
end end
{{< /mermaid >}} {{< /mermaid >}}
</div>
## Class diagram ## Class diagram
<div style="background-color:white; padding: 20px">
{{< mermaid >}} {{< mermaid >}}
classDiagram classDiagram
Animal "1" <|-- Duck Animal "1" <|-- Duck
@ -76,9 +81,11 @@ class Zebra{
+run() +run()
} }
{{< /mermaid >}} {{< /mermaid >}}
</div>
## Entity relationship diagram ## Entity relationship diagram
<div style="background-color:white; padding: 20px">
{{< mermaid >}} {{< mermaid >}}
erDiagram erDiagram
CUSTOMER }|..|{ DELIVERY-ADDRESS : has CUSTOMER }|..|{ DELIVERY-ADDRESS : has
@ -90,3 +97,5 @@ ORDER ||--|{ ORDER-ITEM : includes
PRODUCT-CATEGORY ||--|{ PRODUCT : contains PRODUCT-CATEGORY ||--|{ PRODUCT : contains
PRODUCT ||--o{ ORDER-ITEM : "ordered in" PRODUCT ||--o{ ORDER-ITEM : "ordered in"
{{< /mermaid >}} {{< /mermaid >}}
</div>

View file

@ -8,7 +8,8 @@
<div class="flex mb-6 px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900"> <div class="flex mb-6 px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
<span class="flex items-center justify-between grow dark:text-neutral-300"> <span class="flex items-center justify-between grow dark:text-neutral-300">
<span class="prose dark:prose-invert">This is a demo of theme's list configurations: <code id="config">card view with constrained width</code></span> <span class="prose dark:prose-invert">This is a demo of theme's list configurations: <code
id="config">card view with constrained width</code></span>
<button id="switch-config-button" <button id="switch-config-button"
class="px-4 !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"> class="px-4 !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700">
Switch config &orarr; Switch config &orarr;
@ -17,28 +18,22 @@
</div> </div>
<div id="CardViewScreenWidth" class=""> <div id="CardViewScreenWidth" class="">
<section class="relative w-screen max-w-[1600px]" style="left: calc(max(-50vw,-800px) + 50%);"> <section
<div class="flex flex-wrap pl-8 pr-8"> class="relative w-screen max-w-[1600px] grid gap-4 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"
style="left: calc(max(-50vw,-800px) + 50%);">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }} .Site.Params.mainSections)).Pages }}
<div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3 xl:w-1/4 2xl:w-1/5">
{{ partial "article-link-card.html" . }} {{ partial "article-link-card.html" . }}
</div>
{{ end }} {{ end }}
</div>
</section> </section>
</div> </div>
<div id="CardViewProse" class="hidden h-full"> <div id="CardViewProse" class="hidden h-full">
<section class="w-full"> <section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
<div class="flex flex-wrap">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }} .Site.Params.mainSections)).Pages }}
<div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3">
{{ partial "article-link-card.html" . }} {{ partial "article-link-card.html" . }}
</div>
{{ end }} {{ end }}
</div>
</section> </section>
</div> </div>

View file

@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.18.0", "version": "2.19.0",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall", "fullinstall": "npm run preinstall && npm install && npm run postinstall",