Commit 792cb6e8 authored by Eugen Rochko's avatar Eugen Rochko

Finalize tutorial and add styles for code and embeds

parent 905483e5
Pipeline #39 passed with stages
in 0 seconds
......@@ -3,6 +3,8 @@ languageCode = "en-us"
title = "Official Mastodon Blog"
paginate = 6
preserveTaxonomyNames = true
pygmentsCodeFences = true
pygmentsStyle = "dracula"
[permalinks]
posts = "/:year/:month/:slug/"
......@@ -14,7 +14,7 @@ My name is Eugen Rochko and I’m the creator of Mastodon, a free, open-source f
If your organization is hosting a Mastodon instance, it is essentially a **self-perpetuating brand awareness campaign**. When people from other instances talk to or follow your users, they see your domain name all the time, since it is part of their globally unique usernames. It’s like those sticker ads on cars, except you don’t have to pay for them and it doesn’t disturb anyone because you’re providing a service.
![Addressing a user from another instance](https://cdn-images-1.medium.com/max/2000/1*LM_XJwv6YpeZxBFMJVty_A.jpeg)*Addressing a user from another instance*
{{< figure src="https://cdn-images-1.medium.com/max/2000/1*LM_XJwv6YpeZxBFMJVty_A.jpeg" caption="Addressing a user from another instance" >}}
Twitter has put their API behind a paywall, strangled the app ecosystem. Twitter censors tweets on behalf of countries like Turkey, messes with its content delivery algorithms in unknown ways. Remember when Facebook changed its news feed algorithms, and overnight every Facebook page’s posts became virtually invisible and “fans” worthless? Unless you paid up to Facebook, of course. **Being in control of your own megaphone** rather than relying on a third party letting you use theirs is increasingly important.
......
---
title: "How to implement a basic ActivityPub server"
date: 2018-06-23
draft: true
draft: false
author: gargron
categories:
- Guides
......@@ -86,7 +86,7 @@ Here is how the document could look:
```json
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://my-example.com/create-hello-world",
"type": "Create",
"actor": "https://my-example.com/actor",
......@@ -146,4 +146,10 @@ Let’s save it as `deliver.rb`. I am using the HTTP.rb gem here, so you’ll ne
### Conclusion
We have covered how to create a discoverable ActivityPub actor and how to send replies to other people. But there is a lot we haven’t covered: How to follow and be followed (it requires a working inbox), how to have a prettier profile, how to support document forwarding with LD-Signatures, and more.
\ No newline at end of file
We have covered how to create a discoverable ActivityPub actor and how to send replies to other people. But there is a lot we haven’t covered: How to follow and be followed (it requires a working inbox), how to have a prettier profile, how to support document forwarding with LD-Signatures, and more. If there is demand, I will write more in-depth tutorials!
Read more on:
* [ActivityPub](https://www.w3.org/TR/activitypub/)
* [Webfinger](https://tools.ietf.org/html/rfc7033)
* [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures-10)
This diff is collapsed.
This diff is collapsed.
@import url('https://fonts.googleapis.com/css?family=Quando|Judson|Montserrat:400,600|Roboto:400,500,700');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600|Roboto:400,500,700|Roboto+Mono:400');
@import url('https://unpkg.com/ionicons@4.2.0/dist/css/ionicons.min.css');
$white: #fff ; // color5
......@@ -457,6 +457,30 @@ body {
}
}
pre {
margin-bottom: 26px;
font-size: 16px;
line-height: 28px;
background-color: lighten($darkest, 8%);
border-radius: 4px;
padding: 16px;
overflow: auto;
}
code {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
font-family: 'Roboto Mono', monospace;
background-color: lighten($darkest, 8%);
border-radius: 3px;
}
pre code {
background: transparent;
padding: 0;
}
&-header {
padding: 50px 0;
......@@ -465,6 +489,15 @@ body {
margin-bottom: 0;
}
}
.mastodon-embed {
width: 100%;
display: block;
margin: 0 auto;
margin-bottom: 26px;
border-radius: 4px;
box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
}
}
.footer {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment