Skip to content

Commit

Permalink
fix: sanitize slug (#189)
Browse files Browse the repository at this point in the history
Co-authored-by: pengx17 <[email protected]>
  • Loading branch information
pengx17 and pengx17 authored Nov 9, 2024
1 parent cd33519 commit 1db793c
Show file tree
Hide file tree
Showing 26 changed files with 44 additions and 46 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/blog-localization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:
run: yarn gen:all
- name: "Commit sync contents"
uses: stefanzweifel/git-auto-commit-action@v4
# only commit when branch is production
if: github.ref == 'refs/heads/production'
with:
commit_message: "[GitHub Action] Sync blog contents from AFFiNE Cloud"
file_pattern: "content/blog/*.json content/templates/*.json content/changelogs/*.json public/rss.xml public/sitemap.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"relatedBlogs": [
],
"slug": "express-yourself-with-6-free-and-customizable-all-about-me- templates-canva-alternatives",
"slug": "express-yourself-with-6-free-and-customizable-all-about-me-templates-canva-alternatives",
"tags": [
"Content"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"best-open-source-notion-alternatives",
"top-10-visual-note-taking-apps-revolutionize-workflow-linked-notes-mindmaps"
],
"slug": "top-25-free-best- ai-productivity-tools",
"slug": "top-25-free-best-ai-productivity-tools",
"tags": [
"Content"
],
Expand Down
2 changes: 1 addition & 1 deletion content/templates/151-set-checklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "151-set-checklist",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "annual-physical-exam-checklist-by-age",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/army-career-tracker.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "army-career-tracker",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "aws-environment-assessment-checklist",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/camping-checklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "camping-checklist",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/first-apartment-checklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "first-apartment-checklist",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "free-diy-spring-cleaning-checklist",
"slug": "free-diy-spring-cleaning-checklist",
"tags": [
"Checklist Template"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "habit-tracker-printable",
"slug": "habit-tracker-printable",
"tags": [
"Checklist Template"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "kindergarten-supplies-checklist",
"slug": "kindergarten-supplies-checklist",
"tags": [
"Checklist Template"
],
Expand Down
2 changes: 1 addition & 1 deletion content/templates/password-tracker-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "password-tracker-template",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/planning-checklist-for-wedding.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "planning-checklist-for-wedding",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"grocery-list-template",
"hourly-planner"
],
"slug": "printable-template-to-track-hitting-lessons",
"slug": "printable-template-to-track-hitting-lessons",
"tags": [
"Checklist Template"
],
Expand Down
2 changes: 1 addition & 1 deletion content/templates/simple-planner.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"free-best-8-storyboard-templates-examples"
],
"relatedTemplates": [
"printable-template-to-track-hitting-lessons",
"printable-template-to-track-hitting-lessons",
"weekly-planner",
"hourly-planner"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "simpsons-episode-checklist-printable",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/template-to-track-hitting-lessons.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "template-to-track-hitting-lessons",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/topps-finest-baseball-checklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "topps-finest-baseball-checklist",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "travel-checklist-packing",
"slug": "travel-checklist-packing",
"tags": [
"Checklist Template"
],
Expand Down
2 changes: 1 addition & 1 deletion content/templates/video-planner-free.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"vision-board-template-2024",
"cornell-notes-template",
"kindergarten-supplies-checklist"
"kindergarten-supplies-checklist"
],
"slug": "video-planner-free",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion content/templates/wedding-decor-checklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"relatedTemplates": [
"planner-2024",
"grocery-list-template",
"printable-template-to-track-hitting-lessons"
"printable-template-to-track-hitting-lessons"
],
"slug": "wedding-decor-checklist",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@unocss/extractor-pug": "^0.49.4",
"@unocss/nuxt": "^0.49.4",
"@zadigetvoltaire/nuxt-gtm": "^0.0.13",
"affine-reader": "^3.3.3",
"affine-reader": "^3.3.4",
"fs-extra": "^11.2.0",
"json-stable-stringify": "^1.1.1",
"lodash": "^4.17.21",
Expand Down
12 changes: 6 additions & 6 deletions public/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<description>All In One KnowledgeOS</description>
<link>https://affine.pro</link>
<atom:link href="https://affine.pro/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 09 Nov 2024 15:19:13 GMT</lastBuildDate>
<pubDate>Sat, 09 Nov 2024 15:19:13 GMT</pubDate>
<lastBuildDate>Sat, 09 Nov 2024 15:45:24 GMT</lastBuildDate>
<pubDate>Sat, 09 Nov 2024 15:45:24 GMT</pubDate>
<ttl>60</ttl>

<item>
Expand Down Expand Up @@ -1443,8 +1443,8 @@
<item>
<title>25 Best Free AI Productivity Tools in 2024</title>
<description><![CDATA[This article compiles a list of the top 25 best free AI productivity generators, covering everything from text to videos, and provides an in-depth app review for a comprehensive overview]]></description>
<link>https://affine.pro/blog/top-25-free-best- ai-productivity-tools</link>
<guid isPermaLink="true">https://affine.pro/blog/top-25-free-best- ai-productivity-tools</guid>
<link>https://affine.pro/blog/top-25-free-best-ai-productivity-tools</link>
<guid isPermaLink="true">https://affine.pro/blog/top-25-free-best-ai-productivity-tools</guid>
<pubDate>Fri, 19 Apr 2024 00:00:00 GMT</pubDate>
<enclosure url="https://app.affine.pro/api/workspaces/qf73AF6vzWphbTJdN7KiX/blobs/7_gXSKTpfruUz4Lf1S5XY9SfpZmfPUko2UfJvch9GXs=" type="image/png" />
</item>
Expand Down Expand Up @@ -2211,8 +2211,8 @@ Boost your writing productivity with advanced tools offering unique features, fr
<item>
<title>Express Yourself with 6 Free and Customizable All About Me Templates: Canva Alternatives</title>
<description><![CDATA[Get ready to tap into your creative side in 2023 with 10 free and fully customizable templates. Unleash your self-expression and let your unique personality shine through.]]></description>
<link>https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me- templates-canva-alternatives</link>
<guid isPermaLink="true">https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me- templates-canva-alternatives</guid>
<link>https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me-templates-canva-alternatives</link>
<guid isPermaLink="true">https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me-templates-canva-alternatives</guid>
<pubDate>Mon, 27 Nov 2023 00:00:00 GMT</pubDate>
<enclosure url="https://app.affine.pro/api/workspaces/qf73AF6vzWphbTJdN7KiX/blobs/u5SNrrMTHsCDOdpzyHhe3ewzvsULvCiXj3or-tJDcZs=" type="image/png" />
</item>
Expand Down
14 changes: 7 additions & 7 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/blog/top-25-free-best-%20ai-productivity-tools</loc>
<loc>https://affine.pro/blog/top-25-free-best-ai-productivity-tools</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down Expand Up @@ -1073,7 +1073,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me-%20templates-canva-alternatives</loc>
<loc>https://affine.pro/blog/express-yourself-with-6-free-and-customizable-all-about-me-templates-canva-alternatives</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down Expand Up @@ -1958,7 +1958,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/templates/free-diy-spring-cleaning-checklist%E2%80%8B</loc>
<loc>https://affine.pro/templates/free-diy-spring-cleaning-checklist</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand All @@ -1978,7 +1978,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/templates/habit-tracker-printable%E2%80%8B</loc>
<loc>https://affine.pro/templates/habit-tracker-printable</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down Expand Up @@ -2008,7 +2008,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/templates/kindergarten-supplies-checklist%E2%80%8B</loc>
<loc>https://affine.pro/templates/kindergarten-supplies-checklist</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down Expand Up @@ -2093,7 +2093,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/templates/printable-template-to-track-hitting-lessons%E2%80%8B</loc>
<loc>https://affine.pro/templates/printable-template-to-track-hitting-lessons</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down Expand Up @@ -2168,7 +2168,7 @@
<priority>1.0</priority>
</url>
<url>
<loc>https://affine.pro/templates/travel-checklist-packing%E2%80%8B</loc>
<loc>https://affine.pro/templates/travel-checklist-packing</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5161,17 +5161,17 @@ __metadata:
languageName: node
linkType: hard

"affine-reader@npm:^3.3.3":
version: 3.3.3
resolution: "affine-reader@npm:3.3.3"
"affine-reader@npm:^3.3.4":
version: 3.3.4
resolution: "affine-reader@npm:3.3.4"
dependencies:
"@blocksuite/affine": "npm:^0.17.27"
"@blocksuite/blocks": "npm:^0.17.27"
"@blocksuite/presets": "npm:^0.17.27"
"@blocksuite/store": "npm:^0.17.27"
fflate: "npm:^0.8.2"
yjs: "npm:^13.6.18"
checksum: 10/2d945f847f51127c286ef6b6b97bf2a33802b448f9fa953a7387527a9399b71ec3c5c4b555c69dffdcd38c5fe9ca500ff15c1be6c682117001f34b161a0f8a8c
checksum: 10/ebb51cb62f131037c5c82c82e56c53d34e27fa57c64b2efb82b2967a0f65617f4767eb3b9843d749931f52ee88c1bbe419220917cdbc6d1755e75a02ce8de58c
languageName: node
linkType: hard

Expand Down Expand Up @@ -5199,7 +5199,7 @@ __metadata:
"@unocss/nuxt": "npm:^0.49.4"
"@vueuse/core": "npm:^9.12.0"
"@zadigetvoltaire/nuxt-gtm": "npm:^0.0.13"
affine-reader: "npm:^3.3.3"
affine-reader: "npm:^3.3.4"
axios: "npm:^1.3.2"
cacheables: "npm:^1.2.2"
element-plus: "npm:^2.2.29"
Expand Down

0 comments on commit 1db793c

Please sign in to comment.