mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a91156191 | |||
| de5911650f | |||
| 87b4ed88c6 | |||
| cc9ee9d26f | |||
| 1a5e1728d0 | |||
| 0033750d1b | |||
| 576fee1d7d | |||
| 9bcab20864 | |||
| 9640f0cb7d | |||
| f88923b3ff | |||
| 581aba3359 | |||
| bb435aded7 | |||
| de1cdd431c | |||
| c6cffadfa1 | |||
| 46737b193f | |||
| 6d6885d990 | |||
| c54b7daff2 | |||
| 26442558a7 | |||
| 99d482e908 | |||
| 37ca4b7640 | |||
| 976e6d1472 | |||
| d20c8f1ea4 | |||
| 8eaef86c0d | |||
| e06fedcc60 | |||
| b7eff2653d | |||
| 628d16e9eb | |||
| b4e564e48d | |||
| 9dc7940718 | |||
| d487de1e34 | |||
| 820c7f5239 | |||
| 3cb7bf2549 | |||
| 6e2243ffcf | |||
| a6e3b4899c |
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
min = "0.87.0"
|
min = "0.87.0"
|
||||||
max = "0.126.1"
|
max = "0.126.3"
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ summaryLength = 0
|
|||||||
buildDrafts = false
|
buildDrafts = false
|
||||||
buildFuture = false
|
buildFuture = false
|
||||||
|
|
||||||
|
enableEmoji = true
|
||||||
|
|
||||||
# googleAnalytics = "G-XXXXXXXXX"
|
# googleAnalytics = "G-XXXXXXXXX"
|
||||||
|
|
||||||
[imaging]
|
[imaging]
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ hasCJKLanguage = true
|
|||||||
buildDrafts = false
|
buildDrafts = false
|
||||||
buildFuture = false
|
buildFuture = false
|
||||||
|
|
||||||
|
enableEmoji = true
|
||||||
|
|
||||||
googleAnalytics = "G-PEDMYR1V0K"
|
googleAnalytics = "G-PEDMYR1V0K"
|
||||||
|
|
||||||
|
|||||||
@@ -100,8 +100,8 @@ smartTOCHideUnfocusedChildren = false
|
|||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showViews = true
|
showViews = false
|
||||||
showLikes = true
|
showLikes = false
|
||||||
showTableOfContents = true
|
showTableOfContents = true
|
||||||
cardView = false
|
cardView = false
|
||||||
|
|
||||||
@@ -109,8 +109,8 @@ smartTOCHideUnfocusedChildren = false
|
|||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showViews = true
|
showViews = false
|
||||||
showLikes = true
|
showLikes = false
|
||||||
showTableOfContents = true
|
showTableOfContents = true
|
||||||
groupByYear = false
|
groupByYear = false
|
||||||
cardView = true
|
cardView = true
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ series_order: 9
|
|||||||
|
|
||||||
## Analytics
|
## Analytics
|
||||||
|
|
||||||
Blowfish provides built-in support for Fathom Analytics, Google Analytics annd Umami Analytics. Fathom is a paid alternative to Google Analytics that respects user privacy.
|
Blowfish provides built-in support for Fathom Analytics, Google Analytics and Umami Analytics. Fathom is a paid alternative to Google Analytics that respects user privacy.
|
||||||
|
|
||||||
### Fathom Analytics
|
### Fathom Analytics
|
||||||
|
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
|
|||||||
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
||||||
|
|
||||||
{{< alert >}}
|
{{< alert >}}
|
||||||
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use.
|
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
|
||||||
{{</ alert >}}
|
{{</ alert >}}
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
|
|||||||
**Example #2:**
|
**Example #2:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}}
|
{{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
|
|||||||
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
||||||
|
|
||||||
{{< alert >}}
|
{{< alert >}}
|
||||||
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use.
|
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
|
||||||
{{</ alert >}}
|
{{</ alert >}}
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
|
|||||||
**Example #2:**
|
**Example #2:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}}
|
{{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ In addition to all the [default Hugo shortcodes](https://gohugo.io/content-manag
|
|||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `icon` | **Optional.** the icon to display on the left side.<br>**Default:** `exclaimation triangle icon` (Check out the [icon shortcode](#icon) for more details on using icons.) |
|
| `icon` | **Optional.** the icon to display on the left side.<br>**Default:** `triangle-exclamation` (Check out the [icon shortcode](#icon) for more details on using icons.) |
|
||||||
| `iconColor` | **Optional.** the color for the icon in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
| `iconColor` | **Optional.** the color for the icon in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
||||||
| `cardColor` | **Optional.** the color for the card background in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
| `cardColor` | **Optional.** the color for the card background in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
||||||
| `textColor` | **Optional.** the color for the text in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
| `textColor` | **Optional.** the color for the text in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
|
||||||
@@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
|
|||||||
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
|
||||||
|
|
||||||
{{< alert >}}
|
{{< alert >}}
|
||||||
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use.
|
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
|
||||||
{{</ alert >}}
|
{{</ alert >}}
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
|
|||||||
**Example #2:**
|
**Example #2:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}}
|
{{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ When life gives you lemons, make lemonade.
|
|||||||
| `value` | 需要与 `where` 中定义的参数匹配的值,以进行文章查询,例如对于 `where` == `Type`,可以找到文章 `sample` |
|
| `value` | 需要与 `where` 中定义的参数匹配的值,以进行文章查询,例如对于 `where` == `Type`,可以找到文章 `sample` |
|
||||||
|
|
||||||
{{< alert >}}
|
{{< alert >}}
|
||||||
`where` 和 `value` 值用于简码中进行以下格式的查询 `where .Site.RegularPages $where $value` 。检查 [Hugo 文档](https://gohugo.io/variables/page/) 以了解有关可用参数的更多信息。
|
`where` 和 `value` 值用于简码中进行以下格式的查询 `where .Site.RegularPages $where $value` 。检查 [Hugo 文档](https://gohugo.io/methods/page/) 以了解有关可用参数的更多信息。
|
||||||
{{</ alert >}}
|
{{</ alert >}}
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -513,7 +513,7 @@ When life gives you lemons, make lemonade.
|
|||||||
**例 2:**
|
**例 2:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}}
|
{{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<a href="{{ $showMoreLinkDest }}">
|
<a href="{{ $showMoreLinkDest }}">
|
||||||
<button
|
<button
|
||||||
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
|
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
|
||||||
{{ i18n "recent.show_more" | markdownify | emojify }}
|
{{ i18n "recent.show_more" | markdownify }}
|
||||||
</button>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }}
|
{{- $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }}
|
||||||
{{ $url := urls.Parse .Destination }}
|
{{- $url := urls.Parse .Destination }}
|
||||||
{{ $altText := .Text }}
|
{{- $altText := .Text }}
|
||||||
{{ $caption := .Title }}
|
{{- $caption := .Title }}
|
||||||
{{ if findRE "^https?" $url.Scheme }}
|
{{- if findRE "^https?" $url.Scheme }}
|
||||||
<figure>
|
<figure>
|
||||||
<img class="my-0 rounded-md" loading="lazy" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img class="my-0 rounded-md" loading="lazy" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ else }}
|
{{- else }}
|
||||||
{{ $resource := "" }}
|
{{- $resource := "" }}
|
||||||
{{ if $.Page.Resources.GetMatch ($url.String) }}
|
{{- if $.Page.Resources.GetMatch ($url.String) }}
|
||||||
{{ $resource = $.Page.Resources.GetMatch ($url.String) }}
|
{{- $resource = $.Page.Resources.GetMatch ($url.String) }}
|
||||||
{{ else if resources.GetMatch ($url.String) }}
|
{{- else if resources.GetMatch ($url.String) }}
|
||||||
{{ $resource = resources.Get ($url.String) }}
|
{{- $resource = resources.Get ($url.String) }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ with $resource }}
|
{{- with $resource }}
|
||||||
<figure>
|
<figure>
|
||||||
{{ if $disableImageOptimization }}
|
{{- if or $disableImageOptimization (eq .MediaType.SubType "svg")}}
|
||||||
<img
|
<img
|
||||||
class="my-0 rounded-md"
|
class="my-0 rounded-md"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
/>
|
/>
|
||||||
{{ else }}
|
{{- else }}
|
||||||
<img
|
<img
|
||||||
class="my-0 rounded-md"
|
class="my-0 rounded-md"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
@@ -35,13 +35,13 @@
|
|||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ else }}
|
{{- else }}
|
||||||
<figure>
|
<figure>
|
||||||
<img class="my-0 rounded-md" loading="lazy" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img class="my-0 rounded-md" loading="lazy" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,2 +1,7 @@
|
|||||||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
|
<a href="{{ .Destination | safeURL }}"
|
||||||
{{ .Text | safeHTML }}</a>
|
{{- with .Title -}}
|
||||||
|
title="{{ . }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
|
||||||
|
{{- .Text | safeHTML -}}
|
||||||
|
</a>
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
|
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
|
||||||
"title" (.Title | emojify | safeJS)
|
"title" (.Title | emojify | safeJS)
|
||||||
"section" ($section.Title | emojify | safeJS)
|
"section" ($section.Title | emojify | safeJS)
|
||||||
"summary" (.Summary | emojify | safeJS)
|
"summary" (.Summary | safeJS)
|
||||||
"content" (.Plain | emojify | safeJS)
|
"content" (.Plain | safeJS)
|
||||||
"permalink" .RelPermalink
|
"permalink" .RelPermalink
|
||||||
"externalUrl" .Params.externalUrl
|
"externalUrl" .Params.externalUrl
|
||||||
"type" .Type
|
"type" .Type
|
||||||
) -}}
|
) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $index | jsonify -}}
|
{{- $index | jsonify -}}
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="min-w-0 min-h-0 max-w-prose">
|
<div class="min-w-0 min-h-0 max-w-prose">
|
||||||
{{ .Content | emojify }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
<section class="max-w-full mt-6 prose dark:prose-invert">
|
<section class="max-w-full mt-6 prose dark:prose-invert">
|
||||||
{{ .Content | emojify }}
|
{{ .Content }}
|
||||||
</section>
|
</section>
|
||||||
<footer class="pt-8">
|
<footer class="pt-8">
|
||||||
{{ partial "sharing-links.html" . }}
|
{{ partial "sharing-links.html" . }}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
{{ partial "series/series.html" . }}
|
{{ partial "series/series.html" . }}
|
||||||
|
|
||||||
<div class="article-content max-w-prose mb-20">
|
<div class="article-content max-w-prose mb-20">
|
||||||
{{ .Content | emojify }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }}
|
{{ if (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }}
|
||||||
@@ -147,4 +147,4 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<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">
|
||||||
<div class="min-w-0 min-h-0 max-w-prose">
|
<div class="min-w-0 min-h-0 max-w-prose">
|
||||||
{{ .Content | emojify }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<section class="flex flex-col max-w-full mt-0 mb-5 prose dark:prose-invert lg:flex-row">
|
<section class="flex flex-col max-w-full mt-0 mb-5 prose dark:prose-invert lg:flex-row">
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<div class="min-w-0 min-h-0 max-w-prose">
|
<div class="min-w-0 min-h-0 max-w-prose">
|
||||||
{{ .Content | emojify }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<script>
|
<script>
|
||||||
@@ -128,4 +128,4 @@
|
|||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
||||||
<div class="py-1 prose dark:prose-invert">
|
<div class="py-1 prose dark:prose-invert">
|
||||||
{{ .Summary | emojify }}
|
{{ .Summary }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
@@ -73,4 +73,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
||||||
<div class="py-1 prose dark:prose-invert">
|
<div class="py-1 prose dark:prose-invert">
|
||||||
{{ .Summary | emojify }}
|
{{ .Summary }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
@@ -74,4 +74,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -94,8 +94,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
||||||
<div class="py-1 max-w-fit prose dark:prose-invert">
|
<div class="py-1 max-w-fit prose dark:prose-invert">
|
||||||
{{ .Summary | emojify }}
|
{{ .Summary }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
{{ $link := .link}}
|
{{ $link := .link}}
|
||||||
{{ with .data.name | markdownify | emojify }}
|
{{ with .data.name | markdownify | emojify }}
|
||||||
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
|
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
|
||||||
{{ i18n "author.byline_title" | markdownify | emojify }}
|
{{ i18n "author.byline_title" | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
<a {{ if $link }} href="{{ $link }}" {{ end }} class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
<a {{ if $link }} href="{{ $link }}" {{ end }} class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .data.bio | markdownify | emojify }}
|
{{ with .data.bio | markdownify }}
|
||||||
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
|
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="text-2xl sm:text-lg">
|
<div class="text-2xl sm:text-lg">
|
||||||
@@ -41,4 +41,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,15 +23,15 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="place-self-center">
|
<div class="place-self-center">
|
||||||
{{ with .Site.Author.name | markdownify | emojify }}
|
{{ with .Site.Author.name | markdownify }}
|
||||||
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
|
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
|
||||||
{{ i18n "author.byline_title" | markdownify | emojify }}
|
{{ i18n "author.byline_title" | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Author.bio | markdownify | emojify }}
|
{{ with .Site.Author.bio | markdownify }}
|
||||||
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
|
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>
|
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{{ partial "icon.html" .Pre }}
|
{{ partial "icon.html" .Pre }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
{{ if .Site.Params.footer.showCopyright | default true }}
|
{{ if .Site.Params.footer.showCopyright | default true }}
|
||||||
<p class="text-sm text-neutral-500 dark:text-neutral-400">
|
<p class="text-sm text-neutral-500 dark:text-neutral-400">
|
||||||
{{- with replace .Site.Params.copyright "{ year }" now.Year }}
|
{{- with replace .Site.Params.copyright "{ year }" now.Year }}
|
||||||
{{ . | emojify | markdownify }}
|
{{ . | markdownify }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
©
|
©
|
||||||
{{ now.Format "2006" }}
|
{{ now.Format "2006" }}
|
||||||
{{ .Site.Author.name | markdownify | emojify }}
|
{{ .Site.Author.name | markdownify }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -65,4 +65,4 @@
|
|||||||
{{ if templates.Exists "partials/extend-footer.html" }}
|
{{ if templates.Exists "partials/extend-footer.html" }}
|
||||||
{{ partialCached "extend-footer.html" . }}
|
{{ partialCached "extend-footer.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{ if $logo }}
|
{{ if $logo }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ "" | relLangURL }}" class="flex">
|
<a href="{{ "" | relLangURL }}" class="flex">
|
||||||
<span class="sr-only">{{ .Site.Title | markdownify | emojify }}</span>
|
<span class="sr-only">{{ .Site.Title | markdownify }}</span>
|
||||||
|
|
||||||
<img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}"
|
<img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}"
|
||||||
class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" />
|
class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" />
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{{ if not .Site.Params.disableTextInHeader | default true }}
|
{{ if not .Site.Params.disableTextInHeader | default true }}
|
||||||
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
|
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
|
||||||
.Site.Title | markdownify
|
.Site.Title | markdownify
|
||||||
| emojify }}</a>
|
}}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-sm font-sm text-gray-500 hover:text-gray-900" title="{{ .Title }}">
|
<p class="text-sm font-sm text-gray-500 hover:text-gray-900" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-xs font-light text-gray-500 hover:text-gray-900" title="{{ .Title }}">
|
<p class="text-xs font-light text-gray-500 hover:text-gray-900" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-bg font-bg" title="{{ .Title }}">
|
<p class="text-bg font-bg" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
<span>
|
<span>
|
||||||
{{ partial "icon.html" "chevron-down" }}
|
{{ partial "icon.html" "chevron-down" }}
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-sm font-small" title="{{ .Title }}">
|
<p class="text-sm font-small" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="mb-2"></li>
|
<li class="mb-2"></li>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-bg font-bg" title="{{ .Title }}">
|
<p class="text-bg font-bg" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<a {{ if .URL }} href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }}
|
<a {{ if .URL }} href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }}
|
||||||
target="_blank" {{ end }} {{ end }} class="text-base font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
|
target="_blank" {{ end }} {{ end }} class="text-base font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
<span>
|
<span>
|
||||||
{{ partial "icon.html" "chevron-down" }}
|
{{ partial "icon.html" "chevron-down" }}
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-sm font-sm" title="{{ .Title }}">
|
<p class="text-sm font-sm" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-base font-medium" title="{{ .Title }}">
|
<p class="text-base font-medium" title="{{ .Title }}">
|
||||||
{{ .Name | markdownify | emojify }}
|
{{ .Name | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
{{ with .Site.Author.headline }}
|
{{ with .Site.Author.headline }}
|
||||||
<h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
|
<h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
|
||||||
{{ . | markdownify | emojify }}
|
{{ . | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="mt-3 mb-10 text-2xl">
|
<div class="mt-3 mb-10 text-2xl">
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
|
<section class="prose dark:prose-invert">{{ .Content }}</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<h1>{{ . | emojify }}</h1>
|
<h1>{{ . | emojify }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section>{{ .Content | emojify }}</section>
|
<section>{{ .Content }}</section>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-6 sm:mt-16 lg:mt-0 mx-auto max-w-xl px-4 sm:px-6 lg:mx-0 lg:max-w-none lg:py-16 lg:px-0">
|
<div class="mt-6 sm:mt-16 lg:mt-0 mx-auto max-w-xl px-4 sm:px-6 lg:mx-0 lg:max-w-none lg:py-16 lg:px-0">
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
</div>
|
</div>
|
||||||
<section>
|
<section>
|
||||||
{{ partial "recent-articles/main.html" . }}
|
{{ partial "recent-articles/main.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
{{ with .Site.Author.headline }}
|
{{ with .Site.Author.headline }}
|
||||||
<h2 class="mt-0 mb-0 text-xl text-neutral-300">
|
<h2 class="mt-0 mb-0 text-xl text-neutral-300">
|
||||||
{{ . | markdownify | emojify }}
|
{{ . | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="mt-3 mb-10 text-2xl">
|
<div class="mt-3 mb-10 text-2xl">
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<section class="prose prose-invert">{{ .Content | emojify }}</section>
|
<section class="prose prose-invert">{{ .Content }}</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<h1>{{ . | emojify }}</h1>
|
<h1>{{ . | emojify }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section>{{ .Content | emojify }}</section>
|
<section>{{ .Content }}</section>
|
||||||
</article>
|
</article>
|
||||||
<section>
|
<section>
|
||||||
{{ partial "recent-articles/main.html" . }}
|
{{ partial "recent-articles/main.html" . }}
|
||||||
|
|||||||
@@ -23,15 +23,15 @@
|
|||||||
</h1>
|
</h1>
|
||||||
{{ with .Site.Author.headline }}
|
{{ with .Site.Author.headline }}
|
||||||
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
||||||
{{ . | markdownify | emojify }}
|
{{ . | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="mt-1 text-2xl">
|
<div class="mt-1 text-2xl">
|
||||||
{{ partialCached "author-links.html" . }}
|
{{ partialCached "author-links.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
|
<section class="prose dark:prose-invert">{{ .Content }}</section>
|
||||||
</article>
|
</article>
|
||||||
<section>
|
<section>
|
||||||
{{ partial "recent-articles/main.html" . }}
|
{{ partial "recent-articles/main.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<time datetime="{{ . }}">
|
<time datetime="{{ . }}">
|
||||||
{{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
|
{{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify -}}
|
||||||
</time>
|
</time>
|
||||||
{{- /* Trim EOF */ -}}
|
{{- /* Trim EOF */ -}}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<time datetime="{{ . }}">
|
<time datetime="{{ . }}">
|
||||||
{{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
|
{{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify -}}
|
||||||
</time>
|
</time>
|
||||||
{{- /* Trim EOF */ -}}
|
{{- /* Trim EOF */ -}}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<span>
|
<span>
|
||||||
{{- i18n "article.word_count" .WordCount | markdownify | emojify -}}
|
{{- i18n "article.word_count" .WordCount | markdownify -}}
|
||||||
</span>
|
</span>
|
||||||
{{- /* Trim EOF */ -}}
|
{{- /* Trim EOF */ -}}
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
<a href="{{ $showMoreLinkDest }}">
|
<a href="{{ $showMoreLinkDest }}">
|
||||||
<button
|
<button
|
||||||
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
|
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
|
||||||
{{ i18n "recent.show_more" | markdownify | emojify }}
|
{{ i18n "recent.show_more" | markdownify }}
|
||||||
</button>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{ partial "icon.html" "language" }}
|
{{ partial "icon.html" "language" }}
|
||||||
</span>
|
</span>
|
||||||
<div class="text-sm font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
|
<div class="text-sm font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
|
||||||
{{- i18n "global.language" | markdownify | emojify -}}
|
{{- i18n "global.language" | markdownify -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute menuhide">
|
<div class="absolute menuhide">
|
||||||
|
|||||||
@@ -15,12 +15,12 @@
|
|||||||
<div
|
<div
|
||||||
id="{{ $id }}-full_name"
|
id="{{ $id }}-full_name"
|
||||||
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
||||||
{{ .full_name | markdownify | emojify }}
|
{{ .full_name | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
||||||
{{ .description | markdownify | emojify }}
|
{{ .description | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="m-0 mt-2 flex items-center">
|
<div class="m-0 mt-2 flex items-center">
|
||||||
|
|||||||
@@ -2,49 +2,49 @@
|
|||||||
{{ if .Get "default" }}
|
{{ if .Get "default" }}
|
||||||
{{ template "_internal/shortcodes/figure.html" . }}
|
{{ template "_internal/shortcodes/figure.html" . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $url := urls.Parse (.Get "src") }}
|
{{- $url := urls.Parse (.Get "src") }}
|
||||||
{{ $altText := .Get "alt" }}
|
{{- $altText := .Get "alt" }}
|
||||||
{{ $caption := .Get "caption" }}
|
{{- $caption := .Get "caption" }}
|
||||||
{{ $href := .Get "href" }}
|
{{- $href := .Get "href" }}
|
||||||
{{ $class := .Get "class" }}
|
{{- $class := .Get "class" }}
|
||||||
{{ $target := .Get "target" | default "_blank" }}
|
{{- $target := .Get "target" | default "_blank" }}
|
||||||
{{ $nozoom := .Get "nozoom" | default false }}
|
{{- $nozoom := .Get "nozoom" | default false -}}
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
{{ with $href }}<a href="{{ . }}" {{ with $target }}target="{{ . }}"{{ end }}>{{ end }}
|
{{- with $href }}<a href="{{ . }}" {{ with $target }}target="{{ . }}"{{ end }}>{{ end -}}
|
||||||
{{ if findRE "^https?" $url.Scheme }}
|
{{- if findRE "^https?" $url.Scheme }}
|
||||||
<img class="my-0 rounded-md {{ with $nozoom }} nozoom {{ end }}{{ with $class }} {{ . }} {{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
{{ else }}
|
{{- else }}
|
||||||
{{ $resource := "" }}
|
{{- $resource := "" }}
|
||||||
{{ if $.Page.Resources.GetMatch ($url.String) }}
|
{{- if $.Page.Resources.GetMatch ($url.String) }}
|
||||||
{{ $resource = $.Page.Resources.GetMatch ($url.String) }}
|
{{- $resource = $.Page.Resources.GetMatch ($url.String) }}
|
||||||
{{ else if resources.GetMatch ($url.String) }}
|
{{- else if resources.GetMatch ($url.String) }}
|
||||||
{{ $resource = resources.Get ($url.String) }}
|
{{- $resource = resources.Get ($url.String) }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ with $resource }}
|
{{- with $resource }}
|
||||||
{{ if $disableImageOptimization }}
|
{{- if or $disableImageOptimization (eq .MediaType.SubType "svg")}}
|
||||||
<img
|
<img
|
||||||
class="my-0 rounded-md {{ with $nozoom }} nozoom {{ end }}{{ with $class }} {{ . }} {{ end }}"
|
class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}"
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
/>
|
/>
|
||||||
{{ else }}
|
{{- else }}
|
||||||
<img
|
<img
|
||||||
class="my-0 rounded-md {{ with $nozoom }} nozoom {{ end }}{{ with $class }} {{ . }} {{ end }}"
|
class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}"
|
||||||
srcset="
|
srcset="
|
||||||
{{ (.Resize "330x").RelPermalink }} 330w,
|
{{ (.Resize "330x").RelPermalink }} 330w,
|
||||||
{{ (.Resize "660x").RelPermalink }} 660w,
|
{{ (.Resize "660x").RelPermalink }} 660w,
|
||||||
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
||||||
{{ (.Resize "1320x").RelPermalink }} 2x"
|
{{ (.Resize "1320x").RelPermalink }} 2x"
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ else }}
|
{{- else }}
|
||||||
<img class="my-0 rounded-md {{ with $nozoom }} nozoom {{ end }}{{ with $class }} {{ . }} {{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
{{ if $href }}</a>{{ end }}
|
{{ if $href }}</a>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|||||||
@@ -15,12 +15,12 @@
|
|||||||
<div
|
<div
|
||||||
id="{{ $id }}-full_name"
|
id="{{ $id }}-full_name"
|
||||||
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
||||||
{{ .full_name | markdownify | emojify }}
|
{{ .full_name | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
||||||
{{ .description | markdownify | emojify }}
|
{{ .description | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="m-0 mt-2 flex items-center">
|
<div class="m-0 mt-2 flex items-center">
|
||||||
@@ -64,4 +64,4 @@
|
|||||||
.catch(error => console.error(error))
|
.catch(error => console.error(error))
|
||||||
</script>
|
</script>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
{{ partial "icon.html" "gitlab" }}
|
{{ partial "icon.html" "gitlab" }}
|
||||||
</span>
|
</span>
|
||||||
<div id="{{ $id }}-name_with_namespace" class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
<div id="{{ $id }}-name_with_namespace" class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
|
||||||
{{ .name_with_namespace | markdownify | emojify }}
|
{{ .name_with_namespace | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
|
||||||
{{ .description | markdownify | emojify }}
|
{{ .description | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="m-0 mt-2 flex items-center">
|
<div class="m-0 mt-2 flex items-center">
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<ol class="border-l-2 border-primary-500 dark:border-primary-300">
|
<ol class="border-l-2 border-primary-500 dark:border-primary-300 list-none">
|
||||||
{{- .Inner -}}
|
{{- .Inner -}}
|
||||||
</ol>
|
</ol>
|
||||||
Generated
+17
-17
@@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.68.0",
|
"version": "2.70.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.68.0",
|
"version": "2.70.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.0.3",
|
"@headlessui/react": "^2.0.4",
|
||||||
"@heroicons/react": "^2.1.3",
|
"@heroicons/react": "^2.1.3",
|
||||||
"@iamtraction/google-translate": "^2.0.1",
|
"@iamtraction/google-translate": "^2.0.1",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||||
"puppeteer": "^22.9.0",
|
"puppeteer": "^22.10.0",
|
||||||
"rimraf": "^5.0.7",
|
"rimraf": "^5.0.7",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"tw-elements": "2.0.0",
|
"tw-elements": "2.0.0",
|
||||||
@@ -146,9 +146,9 @@
|
|||||||
"integrity": "sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw=="
|
"integrity": "sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw=="
|
||||||
},
|
},
|
||||||
"node_modules/@headlessui/react": {
|
"node_modules/@headlessui/react": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.0.4.tgz",
|
||||||
"integrity": "sha512-Xd1h0YZgfhxZ7W1w4TvK0/TZ1c4qaX4liYVUkAXqW1HCLcXSqnMeYAUGJS/BBroBAUL9HErjyFcRpCWRQZ/0lA==",
|
"integrity": "sha512-16d/rOLeYsFsmPlRmXGu8DCBzrWD0zV1Ccx3n73wN87yFu8Y9+X04zflv8EJEt9TAYRyLKOmQXUnOnqQl6NgpA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/react": "^0.26.13",
|
"@floating-ui/react": "^0.26.13",
|
||||||
"@react-aria/focus": "^3.16.2",
|
"@react-aria/focus": "^3.16.2",
|
||||||
@@ -650,9 +650,9 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node_modules/bare-path": {
|
"node_modules/bare-path": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/bare-path/-/bare-path-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/bare-path/-/bare-path-2.1.3.tgz",
|
||||||
"integrity": "sha512-o7KSt4prEphWUHa3QUwCxUI00R86VdjiuxmJK0iNVDHYPGo+HsDaVCnqCmPbf/MiW1ok8F4p3m8RTHlWk8K2ig==",
|
"integrity": "sha512-lh/eITfU8hrj9Ru5quUp0Io1kJWIk1bTjzo7JH1P5dWmQ2EL4hFUlfI8FonAhSlgIfhn63p84CDY/x+PisgcXA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -3469,16 +3469,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer": {
|
"node_modules/puppeteer": {
|
||||||
"version": "22.9.0",
|
"version": "22.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-22.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-22.10.0.tgz",
|
||||||
"integrity": "sha512-yNux2cm6Sfik4lNLNjJ25Cdn9spJRbMXxl1YZtVZCEhEeej1sFlCvZ/Cr64LhgyJOuvz3iq2uk+RLFpQpGwrjw==",
|
"integrity": "sha512-ZOkZd6a6t0BdKcWb0wAYHWQqCfdlN1PPnXOmg/XNrbo6gJhYWFX4qCNb6ahSn8TpAqBqLCoD4Q010F7GwOM7mA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@puppeteer/browsers": "2.2.3",
|
"@puppeteer/browsers": "2.2.3",
|
||||||
"cosmiconfig": "9.0.0",
|
"cosmiconfig": "9.0.0",
|
||||||
"devtools-protocol": "0.0.1286932",
|
"devtools-protocol": "0.0.1286932",
|
||||||
"puppeteer-core": "22.9.0"
|
"puppeteer-core": "22.10.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"puppeteer": "lib/esm/puppeteer/node/cli.js"
|
"puppeteer": "lib/esm/puppeteer/node/cli.js"
|
||||||
@@ -3488,9 +3488,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer-core": {
|
"node_modules/puppeteer-core": {
|
||||||
"version": "22.9.0",
|
"version": "22.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-22.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-22.10.0.tgz",
|
||||||
"integrity": "sha512-Q2SYVZ1SIE7jCd/Pp+1/mNLFtdJfGvAF+CqOTDG8HcCNCiBvoXfopXfOfMHQ/FueXhGfJW/I6DartWv6QzpNGg==",
|
"integrity": "sha512-I54J4Vy4I07UHsgB1QSmuFoF7KNQjJWcvFBPhtY+ezMdBfwgGDr8dzYrJa11aPgP9kxIUHjhktcMmmfJkOAtTw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@puppeteer/browsers": "2.2.3",
|
"@puppeteer/browsers": "2.2.3",
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.68.0",
|
"version": "2.70.0",
|
||||||
"description": "Blowfish theme for Hugo",
|
"description": "Blowfish theme for Hugo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "vendor-copy",
|
"postinstall": "vendor-copy",
|
||||||
"assets": "rimraf assets/vendor && vendor-copy",
|
"assets": "rimraf assets/vendor && vendor-copy",
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||||
"puppeteer": "^22.9.0",
|
"puppeteer": "^22.10.0",
|
||||||
"rimraf": "^5.0.7",
|
"rimraf": "^5.0.7",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"tw-elements": "2.0.0",
|
"tw-elements": "2.0.0",
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.0.3",
|
"@headlessui/react": "^2.0.4",
|
||||||
"@heroicons/react": "^2.1.3",
|
"@heroicons/react": "^2.1.3",
|
||||||
"@iamtraction/google-translate": "^2.0.1",
|
"@iamtraction/google-translate": "^2.0.1",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v0.126.1
|
v0.126.3
|
||||||
|
|||||||
Reference in New Issue
Block a user