Compare commits

...

11 Commits

Author SHA1 Message Date
stereobooster 6f07ab60ca
Merge 69f0e2e345 into 0c5d6d1125 2023-12-11 07:11:51 -07:00
James Panther 0c5d6d1125
🔀 Merge pull request #746 from jpanther/dependabot/github_actions/actions/stale-9
👷 Bump actions/stale from 8 to 9
2023-12-10 10:12:43 +11:00
James Panther 5142e27a62
🔀 Merge pull request #745 from jpanther/dependabot/github_actions/actions/labeler-5
👷 Bump actions/labeler from 4 to 5
2023-12-10 10:12:20 +11:00
dependabot[bot] d23e94b820
👷 Bump actions/stale from 8 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 22:54:01 +00:00
dependabot[bot] adc5f4a80d
👷 Bump actions/labeler from 4 to 5
Bumps [actions/labeler](https://github.com/actions/labeler) from 4 to 5.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 22:53:57 +00:00
James Panther 153e6a60d1
🔀 Merge pull request #740 from yoganathp/patch-1
Added yoganath.me
2023-12-07 13:34:42 +11:00
James Panther 84379f67ff
🔀 Merge pull request #744 from jpanther/dependabot/npm_and_yarn/prettier-plugin-tailwindcss-0.5.9
📌 Bump prettier-plugin-tailwindcss from 0.5.7 to 0.5.9
2023-12-07 13:33:35 +11:00
dependabot[bot] cf6f3bed58
📌 Bump prettier-plugin-tailwindcss from 0.5.7 to 0.5.9
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.7 to 0.5.9.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.7...v0.5.9)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 22:27:34 +00:00
Yoganath 71af1b71ac
Added yoganath.me
Added https://yoganath.me to user list.
2023-12-05 13:35:56 +05:30
stereobooster 69f0e2e345 just an example, not sure about actual code 2023-11-26 22:53:14 +01:00
stereobooster 8c5f83e644 remove screenshot shortcode 2023-11-26 22:18:31 +01:00
11 changed files with 28 additions and 62 deletions

View File

@ -12,7 +12,7 @@ jobs:
steps:
- name: Label
uses: actions/labeler@v4
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeller.yml

View File

@ -10,7 +10,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
days-before-stale: 120
days-before-close: 30

View File

@ -75,7 +75,7 @@ jobs:
設定ファイルを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では、ビルド設定は空白のまま、使用するドメインだけを設定する必要があります。
{{< 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` ファイルを作成します:
@ -114,7 +114,7 @@ jobs:
新しい**静的サイト**を作成し、プロジェクトのコード・リポジトリにリンクします。そして、ビルドコマンドを `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)
あなたが変更をリポジトリにプッシュするたびに、自動的にビルドとデプロイを行います。

View File

@ -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.
{{< 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.
{{< 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.
@ -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.
{{< 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:
@ -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`.
{{< 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.

View File

@ -62,7 +62,7 @@ Congo 2.0の大きな変更点は、画像の自動リサイズ機能の追加
今回のアップデートでは、全体的にパフォーマンスが向上している。今回のリリースの主な目的はLighthouseのスコアを向上させることで、Congoは4つの指標すべてで100点満点を獲得しました。
{{< screenshot src="lighthouse.jpg" >}}
![](lighthouse.jpg?2x=true)
個々の変更点が多すぎて、ここでは紹介しきれませんが、さらに詳しく知りたい場合は、[Lighthouseのレポート](lighthouse.html)をご覧ください。実際のパフォーマンスは、サーバーの構成によって異なります。

View File

@ -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.
{{< 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.

View File

@ -64,5 +64,6 @@ The list below is just a handful of the websites that are built using the Congo
| [simaosilva.com](https://simaosilva.com) | Personal Site |
| [kom.al](https://kom.al) | Personal Site |
| [andrea.mortaro.it](https://andrea.mortaro.it) | Personal Site and Blog |
| [yoganath.me](https://yoganath.me) | Personal Site and Blog |
**Congo user?** To add your site to this list, [submit a pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md).

View File

@ -54,7 +54,7 @@
{{ end }}
{{ if $webp }}
<source
{{ if lt .Width 660 }}
{{ if or (lt .Width 660) $x2 }}
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
src="{{ .RelPermalink }}"
{{ end }}
@ -64,17 +64,12 @@
{{- (.Resize "660x webp").RelPermalink }} 660w
{{ if gt .Width 1024 }}
,{{ (.Resize "1024x webp").RelPermalink }} 1024w
{{ else }}
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
,{{ .RelPermalink }} {{ .Width }}w
{{ end }}
{{ end }}
{{ if gt .Width 1320 }}
,{{ (.Resize "1320x webp").RelPermalink }} 2x
{{ else }}
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
,{{ .RelPermalink }} {{ .Width }}w
{{ end }}
{{ end }}
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}
,{{ .RelPermalink }} {{ .Width }}w
{{ end }}"
src="{{ (.Resize "660x webp").RelPermalink }}"
{{ end }}
@ -88,7 +83,7 @@
{{ with $class }} class="{{ . }}" {{ end }}
{{ with $alt }} alt="{{ . }}" {{ end }}
{{ with $lazy }} loading="lazy" decoding="async" {{ end }}
{{ if lt .Width 660 }}
{{ if or (lt .Width 660) $x2 }}
src="{{ .RelPermalink }}"
{{ else }}
srcset="
@ -96,14 +91,11 @@
{{- (.Resize "660x").RelPermalink }} 660w
{{ if gt .Width 1024 }}
,{{ (.Resize "1024x").RelPermalink }} 1024w
{{ else }}
,{{ .RelPermalink }} {{ .Width }}w
{{ end }}
{{ if gt .Width 1320 }}
,{{ (.Resize "1320x").RelPermalink }} 2x
{{ else }}
,{{ .RelPermalink }} {{ .Width }}w
{{ end }}"
{{ end }}
,{{ .RelPermalink }} {{ .Width }}w"
src="{{ (.Resize "660x").RelPermalink }}"
{{ end }}
>

View File

@ -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 }}

19
package-lock.json generated
View File

@ -17,7 +17,7 @@
"mermaid": "^10.6.1",
"prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7",
"prettier-plugin-tailwindcss": "^0.5.9",
"quicklink": "^2.3.0",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.6",
@ -2363,9 +2363,9 @@
}
},
"node_modules/prettier-plugin-tailwindcss": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz",
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==",
"version": "0.5.9",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.9.tgz",
"integrity": "sha512-9x3t1s2Cjbut2QiP+O0mDqV3gLXTe2CgRlQDgucopVkUdw26sQi53p/q4qvGxMLBDfk/dcTV57Aa/zYwz9l8Ew==",
"dev": true,
"engines": {
"node": ">=14.21.3"
@ -2374,13 +2374,13 @@
"@ianvs/prettier-plugin-sort-imports": "*",
"@prettier/plugin-pug": "*",
"@shopify/prettier-plugin-liquid": "*",
"@shufo/prettier-plugin-blade": "*",
"@trivago/prettier-plugin-sort-imports": "*",
"prettier": "^3.0",
"prettier-plugin-astro": "*",
"prettier-plugin-css-order": "*",
"prettier-plugin-import-sort": "*",
"prettier-plugin-jsdoc": "*",
"prettier-plugin-marko": "*",
"prettier-plugin-organize-attributes": "*",
"prettier-plugin-organize-imports": "*",
"prettier-plugin-style-order": "*",
@ -2396,9 +2396,6 @@
"@shopify/prettier-plugin-liquid": {
"optional": true
},
"@shufo/prettier-plugin-blade": {
"optional": true
},
"@trivago/prettier-plugin-sort-imports": {
"optional": true
},
@ -4863,9 +4860,9 @@
}
},
"prettier-plugin-tailwindcss": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz",
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==",
"version": "0.5.9",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.9.tgz",
"integrity": "sha512-9x3t1s2Cjbut2QiP+O0mDqV3gLXTe2CgRlQDgucopVkUdw26sQi53p/q4qvGxMLBDfk/dcTV57Aa/zYwz9l8Ew==",
"dev": true,
"requires": {}
},

View File

@ -36,7 +36,7 @@
"mermaid": "^10.6.1",
"prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7",
"prettier-plugin-tailwindcss": "^0.5.9",
"quicklink": "^2.3.0",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.6",