···11+---
22+title: "Showing comments using Bluesky"
33+description: "showing comments on your blog posts using bluesky"
44+pubDate: "Dec 02 2024"
55+published: true
66+heroImage: "/src/assets/blog-placeholder-1.jpg"
77+tags: ["setup"]
88+---
99+1010+You can also show comments on your blog posts using bluesky.
1111+1212+## How it works
1313+1414+Set the `BLUESKY_IDENTIFIER` in your `src/config.json` file to your bluesky handle (without the `@`).
1515+1616+Then just post a link to your blog post on bluesky and comments will be shown on your blog posts, looking something like this:
1717+1818+<div class="max-w-md rounded-xl overflow-hidden border border-base-200 dark:border-base-800 shadow-lg not-prose">
1919+ 
2020+</div>
2121+2222+Note that no "add comment" link is shown if there is no post on bluesky linking to your blog post.
2323+2424+Comments are both server-side rendered on build and updated on the client when you navigate to the page
2525+(so they work without javascript, but might be a bit outdated).
2626+2727+If you post a link to your blog post on bluesky, likes will also be shown (see [likes via bluesky](../likes-via-bluesky)).
2828+If you don't want to show likes, you can disable them using the `disableLikes` option in your post options.
2929+3030+```yml
3131+disableLikes: true
3232+```
3333+3434+See a live example below:
···77tags: ["setup"]
88---
991010-Editing the code: Change the values in `src/config.json` to configure the blog to your liking, see below for more information.
1010+Change the values in `src/config.json` to configure the blog to your liking, see below for more information.
1111+1212+## SITE
11131212-Editing using [pagecms](https://next.pagescms.org): After having logged in and opened your repository, click on "Website Configuration" and fill out the form, changing the values to your liking. Click "Save" to apply the changes (takes about 1 minute to deploy).
1414+- set this to your blog url, e.g. `https://flo-bit.dev`
1515+1616+## BASE
1717+1818+- set this to the base path of your blog, e.g. `/blog-template`
13191420## SITE_TITLE
15211622- will be shown in the title and meta tags and og image
2323+2424+## SITE_NAME
2525+2626+- will be shown in the header, leave blank to hide
17271828## SITE_DESCRIPTION
1929···5161 one of 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal',
5262 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'
53636464+## BLUESKY_IDENTIFIER
6565+6666+- set this to your bluesky handle, e.g. `flo-bit.dev` (without the `@`) will be used to show likes and comments on your blog posts from bluesky
6767+5468## SOCIAL MEDIA LINKS
55695670- set any of these to '' to hide the respective icon in the footer
···6276- LINKEDIN_URL
6377- YOUTUBE_URL
6478- SUBSTACK_URL
7979+- BLUESKY_URL
6580- EMAIL
6666-6767-## MANUAL_SITE_BASE
6868-6969-- set this to true if you want to manually set the site and base url
7070- (e.g. when not deploying to github pages)
7171-7272-## SITE
7373-7474-- will be set automatically when deploying to github pages
7575-7676-## BASE
7777-7878-- will be set automatically when deploying to github pages
···2020- ✅ Tag your posts
2121- ✅ Super easy to deploy as a static site
2222- ✅ Includes some prebuilt components for you to use
2323-- ✅ Easy to edit using [pagecms](https://pagescms.org) (see [how to use](posts/how-to-use))
2323+- ✅ Likes and comments via bluesky
-37
src/content/blog/how-to-use.md
···11----
22-title: "Minimal setup with github pages"
33-description: "Learn how to use this blog template with github pages (for free, with no coding required)"
44-pubDate: "Oct 26 2024"
55-published: true
66-heroImage: "/src/assets/blog-placeholder-2.jpg"
77-tags: ["setup"]
88----
99-1010-1. Fork [the repository of this blog](https://github.com/flo-bit/blog-template) (note: this repository per default uses github actions which are only free for public repositories)
1111-1212-2. In your repository settings, set up github pages to deploy using github actions (*SETTINGS* -> *PAGES* -> *SOURCE*: **Github Actions**)
1313-1414-3. Your blog should be live in about 1 minute at `https://<your-github-username>.github.io/<your-repo-name>`
1515-1616-For editing the blog you can either edit the code directly or use the preconfigured [pagescms](https://next.pagescms.org).
1717-1818-### Editing with pagescms
1919-2020-4. Go to [pagescms](https://next.pagescms.org) and log in with your github account and authorize the app.
2121-2222-5. Add your repository to pagescms and open it.
2323-2424-6. Now you can edit your website configuration, about page, description and blog posts directly in the browser.
2525-2626-7. Your changes will be automatically pushed to your repository and deployed to github pages in about 1 minute everytime you hit save.
2727-2828-### Editing the code
2929-3030-4. Set up your blog info in `src/config.json` (leaving SITE, BASE, and MANUAL_SITE_BASE, as they are).
3131-3232-5. Add your blog posts in `src/content/blog/`
3333-3434-6. Add your info in `src/content/info/`:
3535-3636-- `description.md` is used for the homepage description
3737-- `about.md` is used for the about page
···11+---
22+title: "Minimal setup with github pages"
33+description: "Learn how to use this blog template with github pages (for free, with no coding required)"
44+pubDate: "Oct 26 2024"
55+published: true
66+heroImage: "/src/assets/blog-placeholder-2.jpg"
77+tags: ["setup"]
88+---
99+1010+1. Fork [the repository of this blog](https://github.com/flo-bit/blog-template) (note: this repository per default uses github actions which are only free for public repositories)
1111+1212+2. In your repository settings, set up github pages to deploy using github actions (*SETTINGS* -> *PAGES* -> *SOURCE*: **Github Actions**)
1313+1414+3. Set up your blog info in `src/config.json` (see [all options](../configuring-the-blog))
1515+1616+4. Your blog should be live in about 1 minute at `https://<your-github-username>.github.io/<your-repo-name>`
1717+1818+5. Add your blog posts in `src/content/blog/`
1919+2020+6. Add your info in `src/content/info/`:
2121+2222+- `about.mdx` is used for the about page
-26
src/content/blog/likes-via-bluesky.md
···11----
22-title: "Showing Likes using Bluesky"
33-description: "how to show likes on your blog posts using bluesky"
44-pubDate: "Nov 22 2024"
55-published: true
66-heroImage: "/src/assets/blog-placeholder-3.jpg"
77-tags: ["setup"]
88-disableComments: true
99----
1010-1111-You can show likes on your blog posts using bluesky.
1212-1313-## How it works
1414-1515-Set the `BLUESKY_IDENTIFIER` in your `src/config.json` file to your bluesky handle (without the `@`).
1616-1717-Then just post a link to your blog post on bluesky and likes will be shown on your blog posts, looking something like this:
1818-1919-
2020-2121-Note that no like button is shown if there is no post on bluesky linking to your blog post.
2222-2323-Likes are both server-side rendered on build and updated on the client when you navigate to the page
2424-(so they work without javascript, but might be a bit outdated).
2525-2626-See a live example below:
···11+---
22+title: "Showing Likes using Bluesky"
33+description: "how to show likes on your blog posts using bluesky"
44+pubDate: "Nov 22 2024"
55+published: true
66+heroImage: "/src/assets/blog-placeholder-3.jpg"
77+tags: ["setup"]
88+disableComments: false
99+---
1010+1111+You can show likes on your blog posts using bluesky.
1212+1313+## How it works
1414+1515+Set the `BLUESKY_IDENTIFIER` in your `src/config.json` file to your bluesky handle (without the `@`).
1616+1717+Then just post a link to your blog post on bluesky and likes will be shown on your blog posts, looking something like this:
1818+1919+<div class="max-w-md rounded-xl overflow-hidden border border-base-200 dark:border-base-800 shadow-lg not-prose">
2020+ 
2121+</div>
2222+2323+Note that no like link is shown if there is no post on bluesky linking to your blog post.
2424+2525+Likes are both server-side rendered on build and updated on the client when you navigate to the page
2626+(so they work without javascript, but might be a bit outdated).
2727+2828+If you post a link to your blog post on bluesky, comments will also be shown (see [comments via bluesky](../comments-via-bluesky)).
2929+If you don't want to show comments, you can disable them using the `disableComments` option in your post options.
3030+3131+```yml
3232+disableComments: true
3333+```
3434+3535+See a live example below:
···80808181#### Output
82828383-> Don't communicate by sharing memory, share memory by communicating.<br>
8383+> Don't communicate by sharing memory, share memory by communicating.<br />
8484> — <cite>Rob Pike[^1]</cite>
85858686[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
···77tags: ["setup"]
88---
991010-> You only need this when you edit the markdown files directly. When you use [pagecms](https://next.pagescms.org) you can configure the post directly in the browser and don't need to worry about this.
1111-1210here are all options you can use in the frontmatter of a blog post:
13111412### title: string (required)
···9088```yml
9189noTextInOGImage: false
9290```
9191+9292+### disable comments (optional)
9393+9494+- whether to disable comments, default: false
9595+9696+```yml
9797+disableComments: false
9898+```
9999+100100+### disable likes (optional)
101101+102102+- whether to disable likes, default: false
103103+104104+```yml
105105+disableLikes: false
106106+```
-21
src/content/info/about.md
···11-# Hello world! 🌎
22-33-Here you can write something about yourself, who are you, why are you writing this blog, what are you going to write about, etc.
44-55-You can also add some images or links like this:
66-77-### Image
88-99-```markdown
1010-
1111-```
1212-1313-
1414-1515-### Link
1616-1717-```markdown
1818-here is a [post about how to use this template](posts/how-to-use)
1919-```
2020-2121-here is a [post about how to use this template](posts/how-to-use)
···11# Blog template
2233-> This description will be shown on the main page of your blog above your most recent posts. It could be a short summary of what your blog is about, and what readers can expect.
44-53Minimalistic but opinionated blog template using [astro](https://astro.build/) and [svelte](https://svelte.dev/). aims to be super easy to deploy and use, with a focus on performance and SEO, ease-of-use and design (see all [features here](posts/features)).
6475This blog doubles as a tutorial on how to use this template, start by [setting up your github repo](posts/how-to-use), then [add some content](posts/adding-content). For more information read about [supported markdown features here](posts/markdown-style-guide).