mirror of https://github.com/jpanther/congo.git
Compare commits
25 Commits
15a0588e13
...
de02ae263a
Author | SHA1 | Date |
---|---|---|
stereobooster | de02ae263a | |
James Panther | 6cfbf4d946 | |
James Panther | 2001d17a55 | |
James Panther | 84a99f1f34 | |
James Panther | 313ed046e8 | |
James Panther | 0083219c59 | |
Wen Junhua | f0288c6106 | |
James Panther | 6cb5dde1dd | |
Wen Junhua | 9a91dd93ce | |
Wen Junhua | aa3a3c6504 | |
Wen Junhua | 9f7047e662 | |
Wen Junhua | 444f3175aa | |
Wen Junhua | 3219dfac76 | |
James Panther | 0ac3f0e9d2 | |
Wen Junhua | baada03dd9 | |
Wen Junhua | f3125a6e75 | |
Wen Junhua | cb37292b9f | |
Wen Junhua | 2b63687c51 | |
Wen Junhua | 4aa27418b1 | |
dependabot[bot] | b314c40312 | |
dependabot[bot] | 747c995c04 | |
sussan0416 | dea1975e33 | |
Denis Koshelev | da0ea762d0 | |
stereobooster | 69f0e2e345 | |
stereobooster | 8c5f83e644 |
|
@ -1,6 +1,7 @@
|
||||||
i18n:
|
i18n:
|
||||||
- i18n/*
|
- changed-files:
|
||||||
|
- any-glob-to-any-file: i18n/*
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
- "*.md"
|
- changed-files:
|
||||||
- exampleSite/content/*
|
- any-glob-to-any-file: '**/*.md'
|
||||||
|
|
|
@ -12,7 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Automatic support for WebP images ([#693](https://github.com/jpanther/congo/pull/693))
|
- Automatic support for WebP images ([#693](https://github.com/jpanther/congo/pull/693))
|
||||||
- Warning when building if links to Markdown files cannot be resolved ([#691](https://github.com/jpanther/congo/pull/691))
|
- Warning when building if links to Markdown files cannot be resolved ([#691](https://github.com/jpanther/congo/pull/691))
|
||||||
- Ability to share articles to Telegram and Line ([#719](https://github.com/jpanther/congo/pull/719))
|
- Ability to share articles to Telegram and Line ([#719](https://github.com/jpanther/congo/pull/719))
|
||||||
- New icon for `line`([#719](https://github.com/jpanther/congo/pull/719))
|
- New icons for `line` and `google-scholar` ([#719](https://github.com/jpanther/congo/pull/719), [#755](https://github.com/jpanther/congo/pull/755))
|
||||||
|
- Table of contents will now scroll if taller than the browser height ([#733](https://github.com/jpanther/congo/pull/733))
|
||||||
- Korean translation ([#731](https://github.com/jpanther/congo/pull/731))
|
- Korean translation ([#731](https://github.com/jpanther/congo/pull/731))
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -21,7 +22,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- ⚠️ Author params block in language configuration has been moved to `params.author` ([#704](https://github.com/jpanther/congo/pull/704))
|
- ⚠️ Author params block in language configuration has been moved to `params.author` ([#704](https://github.com/jpanther/congo/pull/704))
|
||||||
- Refactored image logic into a new `picture.html` partial ([#693](https://github.com/jpanther/congo/pull/693))
|
- Refactored image logic into a new `picture.html` partial ([#693](https://github.com/jpanther/congo/pull/693))
|
||||||
- Upgrade to ChartJS v4.4.1 ([#736](https://github.com/jpanther/congo/pull/736))
|
- Upgrade to ChartJS v4.4.1 ([#736](https://github.com/jpanther/congo/pull/736))
|
||||||
- Upgrade to Tailwind v3.3.6 ([#737](https://github.com/jpanther/congo/pull/737))
|
- Upgrade to Tailwind v3.3.7 ([#737](https://github.com/jpanther/congo/pull/737), [#752](https://github.com/jpanther/congo/pull/752))
|
||||||
|
- Updated Japanese translation ([#750](https://github.com/jpanther/congo/pull/750))
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*! Congo v2.7.6 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.7.6 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
/*! tailwindcss v3.3.6 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v3.3.7 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
||||||
|
@ -1137,6 +1137,12 @@ body:has(#menu-controller:checked) {
|
||||||
|
|
||||||
/* Table of Contents */
|
/* Table of Contents */
|
||||||
|
|
||||||
|
.toc {
|
||||||
|
max-height: 100vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.toc ul,
|
.toc ul,
|
||||||
.toc li {
|
.toc li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
|
@ -59,6 +59,12 @@ body:has(#menu-controller:checked) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Table of Contents */
|
/* Table of Contents */
|
||||||
|
.toc {
|
||||||
|
max-height: 100vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.toc ul,
|
.toc ul,
|
||||||
.toc li {
|
.toc li {
|
||||||
@apply list-none px-0 leading-snug;
|
@apply list-none px-0 leading-snug;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path fill="currentColor" d="M390.9 298.5c0 0 0 .1 .1 .1c9.2 19.4 14.4 41.1 14.4 64C405.3 445.1 338.5 512 256 512s-149.3-66.9-149.3-149.3c0-22.9 5.2-44.6 14.4-64h0c1.7-3.6 3.6-7.2 5.6-10.7c4.4-7.6 9.4-14.7 15-21.3c27.4-32.6 68.5-53.3 114.4-53.3c33.6 0 64.6 11.1 89.6 29.9c9.1 6.9 17.4 14.7 24.8 23.5c5.6 6.6 10.6 13.8 15 21.3c2 3.4 3.8 7 5.5 10.5zm26.4-18.8c-30.1-58.4-91-98.4-161.3-98.4s-131.2 40-161.3 98.4L0 202.7 256 0 512 202.7l-94.7 77.1z"/></svg>
|
After Width: | Height: | Size: 689 B |
|
@ -59,4 +59,5 @@ title = "Congo"
|
||||||
# { whatsapp = "https://wa.me/phone-number" },
|
# { whatsapp = "https://wa.me/phone-number" },
|
||||||
# { x-twitter = "https://twitter.com/username" },
|
# { x-twitter = "https://twitter.com/username" },
|
||||||
# { youtube = "https://youtube.com/username" },
|
# { youtube = "https://youtube.com/username" },
|
||||||
|
# { google-scholar = "https://scholar.google.com/citations?user=user-id"}
|
||||||
# ]
|
# ]
|
||||||
|
|
|
@ -75,7 +75,7 @@ jobs:
|
||||||
|
|
||||||
設定ファイルをGitHubにプッシュすると、アクションが自動的に実行されるはずです。初回は失敗するかもしれないので、GitHubリポジトリの **Settings > Pages** にアクセスして、ソースが正しいか確認してください。 `gh-pages` ブランチを使うように設定されているべきです。
|
設定ファイルをGitHubにプッシュすると、アクションが自動的に実行されるはずです。初回は失敗するかもしれないので、GitHubリポジトリの **Settings > Pages** にアクセスして、ソースが正しいか確認してください。 `gh-pages` ブランチを使うように設定されているべきです。
|
||||||
|
|
||||||
{{< screenshot src="github-pages-source.jpg" alt="Screen capture of GitHub Pages source" >}}
|
![Screen capture of GitHub Pages source](github-pages-source.jpg?2x=true)
|
||||||
|
|
||||||
設定が完了したら、アクションを再実行し、サイトを正しくビルドしてデプロイします。すべてが正常にデプロイされたことを確認するためにアクションログを参照することができます。
|
設定が完了したら、アクションを再実行し、サイトを正しくビルドしてデプロイします。すべてが正常にデプロイされたことを確認するためにアクションログを参照することができます。
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ jobs:
|
||||||
|
|
||||||
[Netlify](https://www.netlify.com)にデプロイするには、Netlify側に新しいデプロイサイトを作成し、ソースコードとリンクします。Netlify UIでは、ビルド設定は空白のまま、使用するドメインだけを設定する必要があります。
|
[Netlify](https://www.netlify.com)にデプロイするには、Netlify側に新しいデプロイサイトを作成し、ソースコードとリンクします。Netlify UIでは、ビルド設定は空白のまま、使用するドメインだけを設定する必要があります。
|
||||||
|
|
||||||
{{< screenshot src="netlify-build-settings.jpg" alt="Screen capture of Netlify build settings" >}}
|
![Screen capture of Netlify build settings](netlify-build-settings.jpg?2x=true)
|
||||||
|
|
||||||
次に、サイト・リポジトリのルートに `netlify.toml` ファイルを作成します:
|
次に、サイト・リポジトリのルートに `netlify.toml` ファイルを作成します:
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ jobs:
|
||||||
|
|
||||||
新しい**静的サイト**を作成し、プロジェクトのコード・リポジトリにリンクします。そして、ビルドコマンドを `hugo --gc --minify` に、公開ディレクトリを `public` に設定するだけです。
|
新しい**静的サイト**を作成し、プロジェクトのコード・リポジトリにリンクします。そして、ビルドコマンドを `hugo --gc --minify` に、公開ディレクトリを `public` に設定するだけです。
|
||||||
|
|
||||||
{{< screenshot src="render-settings.jpg" alt="Screen capture of Render settings" >}}
|
![Screen capture of Render settings](render-settings.jpg?2x=true)
|
||||||
|
|
||||||
あなたが変更をリポジトリにプッシュするたびに、自動的にビルドとデプロイを行います。
|
あなたが変更をリポジトリにプッシュするたびに、自動的にビルドとデプロイを行います。
|
||||||
|
|
||||||
|
|
|
@ -76,11 +76,11 @@ jobs:
|
||||||
|
|
||||||
Push the config file to GitHub and the action should automatically run. It may fail the first time and you'll need to visit the **Settings > Pages** section of your GitHub repo to check the source is correct. It should be set to use the `gh-pages` branch.
|
Push the config file to GitHub and the action should automatically run. It may fail the first time and you'll need to visit the **Settings > Pages** section of your GitHub repo to check the source is correct. It should be set to use the `gh-pages` branch.
|
||||||
|
|
||||||
{{< screenshot src="github-pages-source.jpg" alt="Screen capture of GitHub Pages source settings" >}}
|
![Screen capture of GitHub Pages source settings](github-pages-source.jpg?2x=true)
|
||||||
|
|
||||||
You should also visit the **Settings > Actions > General** section and check that the workflow permissions allow actions to make changes to your repo.
|
You should also visit the **Settings > Actions > General** section and check that the workflow permissions allow actions to make changes to your repo.
|
||||||
|
|
||||||
{{< screenshot src="github-workflow-permissions.jpg" alt="Screen capture of GitHub Workflow Permissions settings" >}}
|
![Screen capture of GitHub Workflow Permissions settings](github-workflow-permissions.jpg?2x=true)
|
||||||
|
|
||||||
Once the settings are configured, re-run the action and the site should build and deploy correctly. You can consult the actions log to check everything deployed successfully.
|
Once the settings are configured, re-run the action and the site should build and deploy correctly. You can consult the actions log to check everything deployed successfully.
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ Once the settings are configured, re-run the action and the site should build an
|
||||||
|
|
||||||
To deploy to [Netlify](https://www.netlify.com), create a new continuous deployment site and link it to your source code. The build settings can be left blank in the Netlify UI. You will only need to configure the domain you'll be using.
|
To deploy to [Netlify](https://www.netlify.com), create a new continuous deployment site and link it to your source code. The build settings can be left blank in the Netlify UI. You will only need to configure the domain you'll be using.
|
||||||
|
|
||||||
{{< screenshot src="netlify-build-settings.jpg" alt="Screen capture of Netlify build settings" >}}
|
![Screen capture of Netlify build settings](netlify-build-settings.jpg?2x=true)
|
||||||
|
|
||||||
Then in the root of your site repository, create a `netlify.toml` file:
|
Then in the root of your site repository, create a `netlify.toml` file:
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ Deploying to [Render](https://render.com) is very straightforward and all config
|
||||||
|
|
||||||
Create a new **Static Site** and link it to your project's code repository. Then simply configure the build command to be `hugo --gc --minify` and publish directory to be `public`.
|
Create a new **Static Site** and link it to your project's code repository. Then simply configure the build command to be `hugo --gc --minify` and publish directory to be `public`.
|
||||||
|
|
||||||
{{< screenshot src="render-settings.jpg" alt="Screen capture of Render settings" >}}
|
![Screen capture of Render settings](render-settings.jpg?2x=true)
|
||||||
|
|
||||||
The site will automatically build and deploy whenever you push a change to your repo.
|
The site will automatically build and deploy whenever you push a change to your repo.
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ Congo 2.0の大きな変更点は、画像の自動リサイズ機能の追加
|
||||||
|
|
||||||
今回のアップデートでは、全体的にパフォーマンスが向上している。今回のリリースの主な目的はLighthouseのスコアを向上させることで、Congoは4つの指標すべてで100点満点を獲得しました。
|
今回のアップデートでは、全体的にパフォーマンスが向上している。今回のリリースの主な目的はLighthouseのスコアを向上させることで、Congoは4つの指標すべてで100点満点を獲得しました。
|
||||||
|
|
||||||
{{< screenshot src="lighthouse.jpg" >}}
|
![](lighthouse.jpg?2x=true)
|
||||||
|
|
||||||
個々の変更点が多すぎて、ここでは紹介しきれませんが、さらに詳しく知りたい場合は、[Lighthouseのレポート](lighthouse.html)をご覧ください。実際のパフォーマンスは、サーバーの構成によって異なります。
|
個々の変更点が多すぎて、ここでは紹介しきれませんが、さらに詳しく知りたい場合は、[Lighthouseのレポート](lighthouse.html)をご覧ください。実際のパフォーマンスは、サーバーの構成によって異なります。
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ Best of all there's nothing you need to change! Simply insert standard Markdown
|
||||||
|
|
||||||
This update packs performance improvements throughout. A key objective for this release was to improve Lighthouse scores and Congo now scores a perfect 100 on all four metrics.
|
This update packs performance improvements throughout. A key objective for this release was to improve Lighthouse scores and Congo now scores a perfect 100 on all four metrics.
|
||||||
|
|
||||||
{{< screenshot src="lighthouse.jpg" >}}
|
![](lighthouse.jpg?2x=true)
|
||||||
|
|
||||||
There's too many individual changes to highlight them here but the results speak for themselves. If you want to dig deeper, you can [view the Lighthouse report](lighthouse.html). Real world performance will vary based upon server configuration.
|
There's too many individual changes to highlight them here but the results speak for themselves. If you want to dig deeper, you can [view the Lighthouse report](lighthouse.html). Real world performance will vary based upon server configuration.
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin
|
||||||
| gitlab | {{< icon gitlab >}} |
|
| gitlab | {{< icon gitlab >}} |
|
||||||
| globe | {{< icon globe >}} |
|
| globe | {{< icon globe >}} |
|
||||||
| google | {{< icon google >}} |
|
| google | {{< icon google >}} |
|
||||||
|
| google-scholar | {{< icon google-scholar >}} |
|
||||||
| hashnode | {{< icon hashnode >}} |
|
| hashnode | {{< icon hashnode >}} |
|
||||||
| instagram | {{< icon instagram >}} |
|
| instagram | {{< icon instagram >}} |
|
||||||
| keybase | {{< icon keybase >}} |
|
| keybase | {{< icon keybase >}} |
|
||||||
|
|
|
@ -40,6 +40,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued
|
||||||
| gitlab | {{< icon gitlab >}} |
|
| gitlab | {{< icon gitlab >}} |
|
||||||
| globe | {{< icon globe >}} |
|
| globe | {{< icon globe >}} |
|
||||||
| google | {{< icon google >}} |
|
| google | {{< icon google >}} |
|
||||||
|
| google-scholar | {{< icon google-scholar >}} |
|
||||||
| hashnode | {{< icon hashnode >}} |
|
| hashnode | {{< icon hashnode >}} |
|
||||||
| instagram | {{< icon instagram >}} |
|
| instagram | {{< icon instagram >}} |
|
||||||
| keybase | {{< icon keybase >}} |
|
| keybase | {{< icon keybase >}} |
|
||||||
|
|
|
@ -40,6 +40,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ
|
||||||
| gitlab | {{< icon gitlab >}} |
|
| gitlab | {{< icon gitlab >}} |
|
||||||
| globe | {{< icon globe >}} |
|
| globe | {{< icon globe >}} |
|
||||||
| google | {{< icon google >}} |
|
| google | {{< icon google >}} |
|
||||||
|
| google-scholar | {{< icon google-scholar >}} |
|
||||||
| hashnode | {{< icon hashnode >}} |
|
| hashnode | {{< icon hashnode >}} |
|
||||||
| instagram | {{< icon instagram >}} |
|
| instagram | {{< icon instagram >}} |
|
||||||
| keybase | {{< icon keybase >}} |
|
| keybase | {{< icon keybase >}} |
|
||||||
|
|
|
@ -40,6 +40,7 @@ The full list of built-in icons and their corresponding names can referenced bel
|
||||||
| gitlab | {{< icon gitlab >}} |
|
| gitlab | {{< icon gitlab >}} |
|
||||||
| globe | {{< icon globe >}} |
|
| globe | {{< icon globe >}} |
|
||||||
| google | {{< icon google >}} |
|
| google | {{< icon google >}} |
|
||||||
|
| google-scholar | {{< icon google-scholar >}} |
|
||||||
| hashnode | {{< icon hashnode >}} |
|
| hashnode | {{< icon hashnode >}} |
|
||||||
| instagram | {{< icon instagram >}} |
|
| instagram | {{< icon instagram >}} |
|
||||||
| keybase | {{< icon keybase >}} |
|
| keybase | {{< icon keybase >}} |
|
||||||
|
|
|
@ -47,7 +47,7 @@ sharing:
|
||||||
email: " Eメールを送る"
|
email: " Eメールを送る"
|
||||||
facebook: "Facebookでシェアする"
|
facebook: "Facebookでシェアする"
|
||||||
linkedin: "LinkedInでシェアする"
|
linkedin: "LinkedInでシェアする"
|
||||||
# mastodon: "Toot on Mastodon"
|
mastodon: "Mastodonに投稿する"
|
||||||
pinterest: "Pinterestでピンする"
|
pinterest: "Pinterestでピンする"
|
||||||
reddit: "Redditに投稿する"
|
reddit: "Redditに投稿する"
|
||||||
twitter: "Twitterに投稿する"
|
twitter: "Twitterに投稿する"
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $webp }}
|
{{ if $webp }}
|
||||||
<source
|
<source
|
||||||
{{ if lt .Width 660 }}
|
{{ if or (lt .Width 660) $x2 }}
|
||||||
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
|
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -64,17 +64,12 @@
|
||||||
{{- (.Resize "660x webp").RelPermalink }} 660w
|
{{- (.Resize "660x webp").RelPermalink }} 660w
|
||||||
{{ if gt .Width 1024 }}
|
{{ if gt .Width 1024 }}
|
||||||
,{{ (.Resize "1024x webp").RelPermalink }} 1024w
|
,{{ (.Resize "1024x webp").RelPermalink }} 1024w
|
||||||
{{ else }}
|
|
||||||
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
|
|
||||||
,{{ .RelPermalink }} {{ .Width }}w
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt .Width 1320 }}
|
{{ if gt .Width 1320 }}
|
||||||
,{{ (.Resize "1320x webp").RelPermalink }} 2x
|
,{{ (.Resize "1320x webp").RelPermalink }} 2x
|
||||||
{{ else }}
|
{{ end }}
|
||||||
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
|
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
|
||||||
,{{ .RelPermalink }} {{ .Width }}w
|
,{{ .RelPermalink }} {{ .Width }}w
|
||||||
{{ end }}
|
|
||||||
{{ end }}"
|
{{ end }}"
|
||||||
src="{{ (.Resize "660x webp").RelPermalink }}"
|
src="{{ (.Resize "660x webp").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -88,7 +83,7 @@
|
||||||
{{ with $class }} class="{{ . }}" {{ end }}
|
{{ with $class }} class="{{ . }}" {{ end }}
|
||||||
{{ with $alt }} alt="{{ . }}" {{ end }}
|
{{ with $alt }} alt="{{ . }}" {{ end }}
|
||||||
{{ with $lazy }} loading="lazy" decoding="async" {{ end }}
|
{{ with $lazy }} loading="lazy" decoding="async" {{ end }}
|
||||||
{{ if lt .Width 660 }}
|
{{ if or (lt .Width 660) $x2 }}
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset="
|
srcset="
|
||||||
|
@ -96,14 +91,11 @@
|
||||||
{{- (.Resize "660x").RelPermalink }} 660w
|
{{- (.Resize "660x").RelPermalink }} 660w
|
||||||
{{ if gt .Width 1024 }}
|
{{ if gt .Width 1024 }}
|
||||||
,{{ (.Resize "1024x").RelPermalink }} 1024w
|
,{{ (.Resize "1024x").RelPermalink }} 1024w
|
||||||
{{ else }}
|
|
||||||
,{{ .RelPermalink }} {{ .Width }}w
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt .Width 1320 }}
|
{{ if gt .Width 1320 }}
|
||||||
,{{ (.Resize "1320x").RelPermalink }} 2x
|
,{{ (.Resize "1320x").RelPermalink }} 2x
|
||||||
{{ else }}
|
{{ end }}
|
||||||
,{{ .RelPermalink }} {{ .Width }}w
|
,{{ .RelPermalink }} {{ .Width }}w"
|
||||||
{{ end }}"
|
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
{{ if .Get "src" }}
|
|
||||||
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }}
|
|
||||||
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
|
|
||||||
{{- if .Get "href" -}}
|
|
||||||
<a href="{{ .Get "href" }}">
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{ $altText := "" }}
|
|
||||||
{{ with .Get "alt" }}
|
|
||||||
{{ $altText = . }}
|
|
||||||
{{ else }}
|
|
||||||
{{ $altText = (.Get "caption") | markdownify | plainify }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "picture.html" (dict "img" $image "alt" $altText "x2" true) }}
|
|
||||||
|
|
||||||
{{- if .Get "href" }}</a>{{ end -}}
|
|
||||||
{{- if .Get "caption" -}}
|
|
||||||
<figcaption>
|
|
||||||
{{- .Get "caption" | markdownify -}}
|
|
||||||
</figcaption>
|
|
||||||
{{- end }}
|
|
||||||
</figure>
|
|
||||||
{{ end }}
|
|
|
@ -20,7 +20,7 @@
|
||||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||||
"quicklink": "^2.3.0",
|
"quicklink": "^2.3.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.7",
|
||||||
"vendor-copy": "^3.0.1"
|
"vendor-copy": "^3.0.1"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
@ -2896,9 +2896,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
"version": "3.3.6",
|
"version": "3.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.7.tgz",
|
||||||
"integrity": "sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==",
|
"integrity": "sha512-pjgQxDZPvyS/nG3ZYkyCvsbONJl7GdOejfm24iMt2ElYQQw8Jc4p0m8RdMp7mznPD0kUhfzwV3zAwa80qI0zmQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
|
@ -5199,9 +5199,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"tailwindcss": {
|
"tailwindcss": {
|
||||||
"version": "3.3.6",
|
"version": "3.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.7.tgz",
|
||||||
"integrity": "sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==",
|
"integrity": "sha512-pjgQxDZPvyS/nG3ZYkyCvsbONJl7GdOejfm24iMt2ElYQQw8Jc4p0m8RdMp7mznPD0kUhfzwV3zAwa80qI0zmQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||||
"quicklink": "^2.3.0",
|
"quicklink": "^2.3.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.7",
|
||||||
"vendor-copy": "^3.0.1"
|
"vendor-copy": "^3.0.1"
|
||||||
},
|
},
|
||||||
"vendorCopy": [],
|
"vendorCopy": [],
|
||||||
|
|
Loading…
Reference in New Issue