From 028e67fc645cf6e024b9bee5d86647ac6603365f Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 15 Aug 2022 23:19:45 +0200 Subject: [PATCH] refactor: move to blog.ipfs.tech Closes #417 --- .../front_matter/templates/blog-post.yml | 4 ++-- .../front_matter/templates/newslinks.yml | 4 ++-- .github/workflows/scheduled-publishing.yml | 2 +- README.md | 6 ++--- scripts/data/latest-news.js | 2 +- scripts/data/latest-posts.js | 2 +- scripts/data/latest-videos.js | 2 +- .../theme/components/blog/Comments.vue | 23 ++++++++++++++----- src/.vuepress/theme/layouts/BlogPost.vue | 12 +++++++++- src/.vuepress/theme/util/countly.js | 2 +- 10 files changed, 40 insertions(+), 19 deletions(-) diff --git a/.forestry/front_matter/templates/blog-post.yml b/.forestry/front_matter/templates/blog-post.yml index d612354e..77e6467f 100644 --- a/.forestry/front_matter/templates/blog-post.yml +++ b/.forestry/front_matter/templates/blog-post.yml @@ -32,7 +32,7 @@ fields: Data is saved in the ipfs/ipfs-blog public GitHub repo as soon as you hit the save button. So any sensitive information will also be publicly available - on GitHub, but hidden from the website blog.ipfs.io.' + on GitHub, but hidden from the website blog.ipfs.tech.' config: required: true date_format: YYYY/MM/DD @@ -59,7 +59,7 @@ fields: page.
Must be twice as wide as it is tall (2:1 aspect ratio) and at least 400px tall. Name the image file something that can be easily searched for in the media directory later (consider adding a date).
Need - help? Use this crop/scale tool to save a revised image to your local machine, then upload here. - name: tags diff --git a/.forestry/front_matter/templates/newslinks.yml b/.forestry/front_matter/templates/newslinks.yml index c12cc15f..a15c7697 100644 --- a/.forestry/front_matter/templates/newslinks.yml +++ b/.forestry/front_matter/templates/newslinks.yml @@ -43,7 +43,7 @@ fields: leave this blank.

WARNING: Data is saved in the ipfs/ipfs-blog public GitHub repo as soon as you hit the Save button. This means anything you - save will also be publicly visible on GitHub, but not on the blog.ipfs.io site. + save will also be publicly visible on GitHub, but not on the blog.ipfs.tech site. Be careful if you are drafting something sensitive!' config: required: false @@ -66,7 +66,7 @@ fields: description: 'Must be twice as wide as it is tall (2:1 aspect ratio) and at least 400px tall. Name the image file something that can be easily searched for in the media directory later (consider adding a date). -
Need help? Use this crop/scale tool to save a revised image to your local machine, then upload here.
Video links don''t need images: they use the video thumbnail!' diff --git a/.github/workflows/scheduled-publishing.yml b/.github/workflows/scheduled-publishing.yml index 21ab785f..019209b0 100644 --- a/.github/workflows/scheduled-publishing.yml +++ b/.github/workflows/scheduled-publishing.yml @@ -19,5 +19,5 @@ jobs: run: curl -H "Authorization:${{ secrets.FLEEK_API_KEY }}" -H "Content-Type:application/json" -d '{"query":"mutation { triggerDeploy(siteId:\"${{ secrets.FLEEK_SITE_ID }}\") { status } }"}' https://api.fleek.co/graphql - name: Scheduled posts published if: ${{ steps.should_publish_step.outputs.should_publish == 'true' }} - run: echo "Check https://blog.ipfs.io" + run: echo "Check https://blog.ipfs.tech" diff --git a/README.md b/README.md index d0c27851..cf2e18d2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ![Image of IPFS blog displayed on a laptop](https://user-images.githubusercontent.com/1507828/110040308-d2331580-7cff-11eb-8a05-8f5bad5ca819.png) -This repository contains code and content for the [IPFS Blog & News](https://blog.ipfs.io) website. To contribute to the site, please follow the instructions below for _post authors/editors_ and _site developers_. +This repository contains code and content for the [IPFS Blog & News](https://blog.ipfs.tech) website. To contribute to the site, please follow the instructions below for _post authors/editors_ and _site developers_. **If you just want to submit a link (event, academic paper, tutorial, video or news coverage) to add to the site, [use this easy form](https://airtable.com/shrNH8YWole1xc70I)!** @@ -16,12 +16,12 @@ This repository contains code and content for the [IPFS Blog & News](https://blo While it's possible to manually PR a new blog post from a local build, **you are strongly encouraged to [use this site's Forestry integration](https://forestry.io) for drafting and editing new content.** Using Forestry offers you WYSIWYG editing (in addition to raw markdown mode), easy image upload/crop tools, and instant previews. If you're an IPFS core team member and don't have Forestry access, contact Jessica Schilling. -Forestry uses the `staging` branch as a work-in-progress scratchpad for blog content. Once content in `staging` is approved, it can be merged into `main`, which is the branch that feeds the production site at blog.ipfs.io. Merges into `main` are _automatically deployed_ to the production site using [Fleek](https://fleek.co/). +Forestry uses the `staging` branch as a work-in-progress scratchpad for blog content. Once content in `staging` is approved, it can be merged into `main`, which is the branch that feeds the production site at blog.ipfs.tech. Merges into `main` are _automatically deployed_ to the production site using [Fleek](https://fleek.co/). ### Forestry authoring/editing tips - Use the "Content Types" section of Forestry's left-hand menu to drill down to the type of item (blog post, video, news coverage, event) you want to create/edit. -- For card and blog post header images, **be sure to use the [image crop/scale tool](https://blog.ipfs.io/image-crop/)** to resize and save images so they're the correct dimensions. (Don't have an image? Don't worry, there are generic fallback images.) +- For card and blog post header images, **be sure to use the [image crop/scale tool](https://blog.ipfs.tech/image-crop/)** to resize and save images so they're the correct dimensions. (Don't have an image? Don't worry, there are generic fallback images.) - Want to embed a YouTube video in a blog post? Switch to raw markdown view and use `@[youtube](videoID)`, substituting the video's unique ID from the URL (e.g. `https://www.youtube.com/watch?v=eFbKKsEoQNg`) for `videoID`. - To switch between WYSIWYG and raw markdown while writing a blog post, choose "Raw Editor" or "WYSIWYG Editor" from the dots menu at the top right of the page:
![image](https://user-images.githubusercontent.com/1507828/110036257-fbe93e00-7cf9-11eb-935c-a70f9d21c14f.png) diff --git a/scripts/data/latest-news.js b/scripts/data/latest-news.js index 0d45754c..cbaf7f85 100755 --- a/scripts/data/latest-news.js +++ b/scripts/data/latest-news.js @@ -1,7 +1,7 @@ 'use strict' /** - The ipfs.io website requests for a blog.ipfs.io/news.json file + The ipfs.io website requests for a blog.ipfs.tech/news.json file with the latest 3 news. */ diff --git a/scripts/data/latest-posts.js b/scripts/data/latest-posts.js index c5a5f3bf..aea886b8 100755 --- a/scripts/data/latest-posts.js +++ b/scripts/data/latest-posts.js @@ -1,7 +1,7 @@ 'use strict' /** - The ipfs.io website requests for a blog.ipfs.io/index.json file + The ipfs.io website requests for a blog.ipfs.tech/index.json file with the latest 4 posts. This script parses the rss feed file index.xml and generates the required index.json file. diff --git a/scripts/data/latest-videos.js b/scripts/data/latest-videos.js index 54808ea1..476d6f28 100755 --- a/scripts/data/latest-videos.js +++ b/scripts/data/latest-videos.js @@ -1,7 +1,7 @@ 'use strict' /** - The ipfs.io website requests for a blog.ipfs.io/videos.json file + The ipfs.io website requests for a blog.ipfs.tech/videos.json file with the latest 2 videos. */ diff --git a/src/.vuepress/theme/components/blog/Comments.vue b/src/.vuepress/theme/components/blog/Comments.vue index 1b9c2074..1d018b79 100644 --- a/src/.vuepress/theme/components/blog/Comments.vue +++ b/src/.vuepress/theme/components/blog/Comments.vue @@ -6,9 +6,20 @@