Skip to content

Commit

Permalink
Add Green Web Check results
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Jul 29, 2023
1 parent 759d2e1 commit b1cf75a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions content/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ The term {{< external-link text="bus factor" url="https://en.wikipedia.org/wiki/
A provider's service is seen as *professionally hosted* if it has a good internet connection speed, an uninterruptible power supply, access protection and regular backups.
That is usually the case if the service is hosted in a data center.

### Green Hosting

[thegreenwebfoundation.org](https://www.thegreenwebfoundation.org/) offers a [Green Web Check](https://www.thegreenwebfoundation.org/green-web-check/) which enables you to check if your provider's servers run on green energy. Please note that we use the provider's XMPP host for checking, which might differ from the provider's public internet address.

### Client-to-Server

The *client-to-server (C2S)* connection is used for the communication between your app and your provider.
Expand All @@ -113,3 +117,9 @@ The *client-to-server (C2S)* connection is used for the communication between yo
### Server-to-Server

*Server-to-server (S2S)* connections are used for the communication between your provider and the provider of your contact.

{{< spacer size="large" >}}
{{< spacer size="large" >}}
{{< spacer size="large" >}}
{{< spacer size="large" >}}
{{< spacer size="large" >}}
14 changes: 13 additions & 1 deletion themes/xmpp-providers/layouts/shortcodes/provider-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,19 @@ <h2>Service</h2>
{{ if .professionalHosting }}
<a href="/faq/#professional-hosting" class="abbr">Professional hosting</a>
{{ else }}
No professional hosting
No <a href="/faq/#professional-hosting" class="abbr">professional hosting</a>
{{ end }}
</td>
</tr>
<tr>
<td class="text-center">
<i class="fa-solid fa-leaf px-2 text-body-secondary"></i>
</td>
<td>
{{ if .ratingGreenWebCheck }}
<a href="/faq/#green-hosting" class="abbr">Green hosting</a>
{{ else }}
No <a href="/faq/#green-hosting" class="abbr">green hosting</a>
{{ end }}
</td>
</tr>
Expand Down
2 changes: 2 additions & 0 deletions themes/xmpp-providers/layouts/shortcodes/spacer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
{{ $number = 2 }}
{{ else if eq $size "middle" }}
{{ $number = 3 }}
{{ else if eq $size "large" }}
{{ $number = 5 }}
{{ end }}
<div class="py-{{ $number }}"></div>

0 comments on commit b1cf75a

Please sign in to comment.