mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
style(article-link): run prettier format
This commit is contained in:
@@ -28,9 +28,6 @@ static
|
|||||||
layouts/_default/_markup/render-heading.html
|
layouts/_default/_markup/render-heading.html
|
||||||
layouts/_default/index.json
|
layouts/_default/index.json
|
||||||
layouts/_default/list.html
|
layouts/_default/list.html
|
||||||
layouts/partials/article-link/card-related.html
|
|
||||||
layouts/partials/article-link/card.html
|
|
||||||
layouts/partials/article-link/simple.html
|
|
||||||
layouts/partials/hero/background.html
|
layouts/partials/hero/background.html
|
||||||
layouts/shortcodes/screenshot.html
|
layouts/shortcodes/screenshot.html
|
||||||
layouts/shortcodes/figure.html
|
layouts/shortcodes/figure.html
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<a {{ partial "article-link/_external-link.html" . | safeHTMLAttr }} class="min-w-full">
|
<a {{ partial "article-link/_external-link.html" . | safeHTMLAttr }} class="min-w-full">
|
||||||
<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">
|
<div
|
||||||
|
class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">
|
||||||
{{- with $.Params.images -}}
|
{{- with $.Params.images -}}
|
||||||
{{- range first 6 . }}
|
{{- range first 6 . }}
|
||||||
<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
|
<meta property="og:image" content="{{ . | absURL }}">
|
||||||
|
{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ $images := $.Resources.ByType "image" }}
|
{{ $images := $.Resources.ByType "image" }}
|
||||||
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
||||||
@@ -25,7 +26,7 @@
|
|||||||
<div class="w-full thumbnail_card_related nozoom {{ $className }}"></div>
|
<div class="w-full thumbnail_card_related nozoom {{ $className }}"></div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with $.Site.Params.images }}
|
{{ with $.Site.Params.images }}
|
||||||
<meta property="og:image" content="{{ index . 0 | absURL }}" />
|
<meta property="og:image" content="{{ index . 0 | absURL }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -36,8 +37,8 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="px-6 py-4">
|
|
||||||
|
|
||||||
|
<div class="px-6 py-4">
|
||||||
{{ with .Params.externalUrl }}
|
{{ with .Params.externalUrl }}
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
@@ -50,10 +51,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
<div
|
||||||
href="{{ .RelPermalink }}">{{ .Title | emojify }}</div>
|
class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
||||||
|
href="{{ .RelPermalink }}">
|
||||||
|
{{ .Title | emojify }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
||||||
{{ partial "article-meta/basic.html" . }}
|
{{ partial "article-meta/basic.html" . }}
|
||||||
</div>
|
</div>
|
||||||
@@ -64,8 +69,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="px-6 pt-4 pb-2">
|
<div class="px-6 pt-4 pb-2"></div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<a {{ partial "article-link/_external-link.html" . | safeHTMLAttr }} class="min-w-full">
|
<a {{ partial "article-link/_external-link.html" . | safeHTMLAttr }} class="min-w-full">
|
||||||
<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">
|
<div
|
||||||
|
class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">
|
||||||
{{- with $.Params.images -}}
|
{{- with $.Params.images -}}
|
||||||
{{- range first 6 . }}
|
{{- range first 6 . }}
|
||||||
<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
|
<meta property="og:image" content="{{ . | absURL }}">
|
||||||
|
{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ $images := $.Resources.ByType "image" }}
|
{{ $images := $.Resources.ByType "image" }}
|
||||||
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
||||||
@@ -28,20 +29,19 @@
|
|||||||
<div class="w-full thumbnail_card nozoom {{ $className }}"></div>
|
<div class="w-full thumbnail_card nozoom {{ $className }}"></div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with $.Site.Params.images }}
|
{{ with $.Site.Params.images }}
|
||||||
<meta property="og:image" content="{{ index . 0 | absURL }}" />
|
<meta property="og:image" content="{{ index . 0 | absURL }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
||||||
<span class="absolute top-0 right-0 m-2">
|
<span class="absolute top-0 right-0 m-2">
|
||||||
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="px-6 py-4">
|
|
||||||
|
|
||||||
|
<div class="px-6 py-4">
|
||||||
{{ with .Params.externalUrl }}
|
{{ with .Params.externalUrl }}
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
@@ -54,10 +54,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
<div
|
||||||
href="{{ .RelPermalink }}">{{ .Title | emojify }}</div>
|
class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
||||||
|
href="{{ .RelPermalink }}">
|
||||||
|
{{ .Title | emojify }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
||||||
{{ partial "article-meta/basic.html" . }}
|
{{ partial "article-meta/basic.html" . }}
|
||||||
</div>
|
</div>
|
||||||
@@ -68,8 +72,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="px-6 pt-4 pb-2">
|
<div class="px-6 pt-4 pb-2"></div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -29,7 +29,8 @@
|
|||||||
<a class="{{ $articleClasses }}" {{ partial "article-link/_external-link.html" . | safeHTMLAttr }}>
|
<a class="{{ $articleClasses }}" {{ partial "article-link/_external-link.html" . | safeHTMLAttr }}>
|
||||||
{{- with $.Params.images -}}
|
{{- with $.Params.images -}}
|
||||||
{{- range first 6 . }}
|
{{- range first 6 . }}
|
||||||
<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
|
<meta property="og:image" content="{{ . | absURL }}">
|
||||||
|
{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ $images := $.Resources.ByType "image" }}
|
{{ $images := $.Resources.ByType "image" }}
|
||||||
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
{{ $featuredImage := $images.GetMatch "*feature*" }}
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
<div class="{{ $articleImageClasses }} {{ $className }}"></div>
|
<div class="{{ $articleImageClasses }} {{ $className }}"></div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with $.Site.Params.images }}
|
{{ with $.Site.Params.images }}
|
||||||
<meta property="og:image" content="{{ index . 0 | absURL }}" />
|
<meta property="og:image" content="{{ index . 0 | absURL }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -74,8 +75,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
<div
|
||||||
href="{{ .RelPermalink }}">{{ .Title | emojify }}</div>
|
class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
||||||
|
href="{{ .RelPermalink }}">
|
||||||
|
{{ .Title | emojify }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
||||||
<div class=" ltr:ml-2 rtl:mr-2">
|
<div class=" ltr:ml-2 rtl:mr-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user