mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d21656d5e | |||
| 1731c36c7c | |||
| a219b38010 | |||
| 70586cab25 | |||
| 6fafc4b628 | |||
| b3dcccf856 | |||
| faa22c47d8 | |||
| 6f33b9d5cf | |||
| 7072628632 | |||
| f0267b0338 | |||
| d4538c93ec | |||
| 2d053f76c4 | |||
| e6927136a4 | |||
| a29c3734cb |
@@ -26,3 +26,7 @@ jobs:
|
|||||||
stale-pr-message: 'This pull request will be closed since it has been stale for 60 days.'
|
stale-pr-message: 'This pull request will be closed since it has been stale for 60 days.'
|
||||||
stale-issue-label: 'no-issue-activity'
|
stale-issue-label: 'no-issue-activity'
|
||||||
stale-pr-label: 'no-pr-activity'
|
stale-pr-label: 'no-pr-activity'
|
||||||
|
days-before-stale: 60
|
||||||
|
days-before-close: 0
|
||||||
|
remove-stale-when-updated: true
|
||||||
|
operations-per-run: 100
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
min = "0.87.0"
|
min = "0.87.0"
|
||||||
max = "0.147.0"
|
max = "0.147.1"
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Showcase"
|
title: "Showcase"
|
||||||
description: "See what's possible with Blowfish."
|
description: "See what's possible with Blowfish."
|
||||||
|
|
||||||
showLikes: true
|
|
||||||
showViews: true
|
|
||||||
|
|
||||||
cascade:
|
cascade:
|
||||||
showEdit: false
|
showEdit: false
|
||||||
showReadingTime: false
|
showReadingTime: false
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "ショーケース"
|
title: "ショーケース"
|
||||||
description: "Blowfish で何が出来るか見てみる。"
|
description: "Blowfish で何が出来るか見てみる。"
|
||||||
|
|
||||||
showLikes: true
|
|
||||||
showViews: true
|
|
||||||
|
|
||||||
cascade:
|
cascade:
|
||||||
showEdit: false
|
showEdit: false
|
||||||
showReadingTime: false
|
showReadingTime: false
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Showcase"
|
title: "Showcase"
|
||||||
description: "See what's possible with Blowfish."
|
description: "See what's possible with Blowfish."
|
||||||
|
|
||||||
showLikes: true
|
|
||||||
showViews: true
|
|
||||||
|
|
||||||
cascade:
|
cascade:
|
||||||
showEdit: false
|
showEdit: false
|
||||||
showReadingTime: false
|
showReadingTime: false
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Showcase"
|
title: "Showcase"
|
||||||
description: "See what's possible with Blowfish."
|
description: "See what's possible with Blowfish."
|
||||||
|
|
||||||
showLikes: true
|
|
||||||
showViews: true
|
|
||||||
|
|
||||||
cascade:
|
cascade:
|
||||||
showEdit: false
|
showEdit: false
|
||||||
showReadingTime: false
|
showReadingTime: false
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint
|
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint
|
||||||
"sha512" }}
|
"sha512" }}
|
||||||
<script defer type="text/javascript" id="script-bundle" src="{{ $bundleJS.RelPermalink }}"
|
<script defer type="text/javascript" id="script-bundle" src="{{ $bundleJS.RelPermalink }}"
|
||||||
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied"
|
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n "code.copy" }}" data-copied="{{ i18n "code.copied"
|
||||||
}}"></script>
|
}}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if not .Site.Params.disableImageZoom | default true }}
|
{{ if not .Site.Params.disableImageZoom | default true }}
|
||||||
|
|||||||
@@ -1,5 +1,31 @@
|
|||||||
{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" }}
|
{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" }}
|
||||||
|
|
||||||
<div id="{{ $id }}" class="gallery">
|
<div id="{{ $id }}" class="gallery">
|
||||||
{{ .Inner }}
|
{{ $page := .Page }}
|
||||||
</div>
|
|
||||||
|
{{/* find all img tags */}}
|
||||||
|
{{ $imgTagRegex := `<img\s+[^>]*>` }}
|
||||||
|
{{ $imgTags := findRE $imgTagRegex .Inner }}
|
||||||
|
{{ $newContent := .Inner }}
|
||||||
|
|
||||||
|
{{ range $imgTags }}
|
||||||
|
{{ $imgTag := . }}
|
||||||
|
{{/* extract src attribute */}}
|
||||||
|
{{ $srcRegex := `src=['"]([^'"]+)['"]` }}
|
||||||
|
{{ $srcMatches := findRESubmatch $srcRegex $imgTag }}
|
||||||
|
|
||||||
|
{{ if $srcMatches }}
|
||||||
|
{{ $srcFull := index (index $srcMatches 0) 0 }}
|
||||||
|
{{ $src := index (index $srcMatches 0) 1 }}
|
||||||
|
|
||||||
|
{{ $resource := $page.Resources.GetMatch $src }}
|
||||||
|
{{ if $resource }}
|
||||||
|
{{ $newSrc := printf `src="%s"` $resource.RelPermalink }}
|
||||||
|
{{ $newImg := replace $imgTag $srcFull $newSrc }}
|
||||||
|
{{ $newContent = replace $newContent $imgTag $newImg }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $newContent | safeHTML }}
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
{{- $githubColors := .Site.Data.githubColors -}}
|
{{- $githubColors := .Site.Data.githubColors -}}
|
||||||
{{- with $githubData -}}
|
{{- with $githubData -}}
|
||||||
|
|
||||||
|
<div class="github-card-wrapper">
|
||||||
<a id="{{ $id }}" target="_blank" href="{{ .html_url }}" class="cursor-pointer">
|
<a id="{{ $id }}" target="_blank" href="{{ .html_url }}" class="cursor-pointer">
|
||||||
<div
|
<div
|
||||||
class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md shadow-2xl">
|
class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md shadow-2xl">
|
||||||
@@ -64,4 +65,5 @@
|
|||||||
.catch(error => console.error(error))
|
.catch(error => console.error(error))
|
||||||
</script>
|
</script>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.85.0",
|
"version": "2.85.1",
|
||||||
"description": "Blowfish theme for Hugo.",
|
"description": "Blowfish theme for Hugo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "vendor-copy",
|
"postinstall": "vendor-copy",
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v0.147.0
|
v0.147.1
|
||||||
|
|||||||
Reference in New Issue
Block a user