2.3 KiB
Contributing rules and suggestions
1. File name [RULE]
Your file name must contain a name or username at first, like yourname-my-first-post
, this is to keep the posts directory organized.
2. Author [RULE]
When making a post, set the author
field to your name (can be either username or realname), and the first part of the page should contain
By [Your Name](https://your.site)
Replacing Your Name
with what you put in the author
field, and https://your.site
to your website (can be external like social media and gravatar)
Example:
---
layout: post
title: "My First Post!"
date: 2024-06-01 00:00:00 -0700
categories: foo_bar
excerpt: A summary of your post.
author: Your Name
usemathjax: false
---
By [Your Name](https://your.site)
3. Comments [Suggestion]
If you want comments on your post, you can make an empty post in the SweeBlogs Comments portion of Discuss Swee
After making a post, copy its post ID, for example if the URL is
https://discuss.swee.codes/t/using-cloudflare-r2-object-storage-with-nextcloud/104
then the ID us 104
.
Set the comments
attribute to the Discourse ID you found.
Example:
---
layout: post
title: "My First Post!"
date: 2024-06-01 00:00:00 -0700
categories: foo_bar
excerpt: A summary of your post.
author: Your Name
usemathjax: false
comments: 104
---
By [Your Name](https://your.site)
4. Social Media Attribution [Suggestion]
If you want to help support more social media platforms for attribution, you can contribute!
Here are the supported social medias that can be used:
- Mastodon & The Fediverse
4.1 Mastodon/Fediverse
Set the fediverse
attribute to your Mastodon/Fediverse username, you may also have to configure Mastodon or other Fediverse-compatible software to trust blogs.swee.codes to attribute you (In mastodon, Settings -> Public Profile -> Verification -> Author Attribution -> Websites allowed to credit you)
Warning
To avoid breaking the markdown renderer, use double quotes.
Example:
---
layout: post
title: "My First Post!"
date: 2024-06-01 00:00:00 -0700
categories: foo_bar
excerpt: A summary of your post.
author: Your Name
usemathjax: false
fediverse: "you@mastodon.example.com"
---
By [Your Name](https://your.site)