@use crate::{ config::{Config, UrlKind}, data::Node, templates::{info_html, instance_html, statics::index_css}, }; @(local: &[Node], nodes: &[Node], config: &Config) @config.hostname() | ActivityPub Relay

@Config::software_name()@Config::software_version()

on @config.hostname()

@if !local.is_empty() || config.local_blurb().is_some() {

About

@if let Some(blurb) = config.local_blurb() { @blurb } else {

These domains are run by the same admins as this relay.

}
@if !local.is_empty() { }
}

Joining

@if config.restricted_mode() {

This relay is Restricted

This relay is currently in Restricted Mode, which means servers need to be approved ahead of time by the relay administrator. Please contact the admin before attempting to join.

} else {

If you are the admin of a server that supports activitypub relays, you can add this relay to your server.

}

Mastodon

Mastodon admins can add this relay by adding

@config.generate_url(UrlKind::Inbox)
in their relay settings.

Pleroma

Pleroma admins can add this relay by adding

@config.generate_url(UrlKind::Actor)
to their relay settings.

Others

Consult the documentation for your server. It's likely that it follows either Mastodon or Pleroma's relay formatting.

@if !nodes.is_empty() {

@nodes.len() Connected Servers

}