Browse Source

*

main
earnest ma 1 month ago
commit
007d28c8cb
Signed by: earnestma GPG Key ID: A343F43342EB6E2A
  1. 30
      .drone.yml
  2. 1
      .envrc
  3. 2
      .gitignore
  4. 17
      Makefile
  5. 53
      config.toml
  6. 27
      content/_index.md
  7. 16
      content/chat.md
  8. 88
      content/code-of-conduct.md
  9. 17
      content/contact.md
  10. 5
      content/docs/_index.md
  11. 3
      content/docs/faq.md
  12. 31
      content/service-policy.md
  13. 19
      layouts/docs/list.html
  14. 35
      layouts/docs/single.html
  15. 39
      layouts/index.html
  16. 17
      layouts/partials/footer.html
  17. 1
      layouts/shortcodes/rawhtml.html
  18. 42
      shell.nix

30
.drone.yml

@ -0,0 +1,30 @@
---
kind: pipeline
type: docker
name: default
trigger:
branch:
- main
event:
exclude:
- pull_request
steps:
- name: build
image: nixos/nix
commands:
- nix-env -iA --quiet nixpkgs.gitFull
- nix-shell --run make
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ["earne.link"]
user: root
recursive: true
delete: true
target: /var/www/earne.link
source: public/
key:
from_secret: deploy_ssh_key

1
.envrc

@ -0,0 +1 @@
use_nix

2
.gitignore

@ -0,0 +1,2 @@
public
themes/archie

17
Makefile

@ -0,0 +1,17 @@
SERVERPORT = 1313
.PHONY: all
all: clean build
.PHONY: clean
clean:
rm -rf public
.PHONY: build
build:
hugo --gc
.PHONY: live
live:
hugo serve

53
config.toml

@ -0,0 +1,53 @@
baseURL = "https://earne.link/"
languageCode = "en-us"
title = "earne.link"
theme = "archie"
copyright = "(c) earne.link"
pygmentsstyle = "monokai"
pygmentscodefences = true
paginate = 2
[params]
mode = "dark"
useCDN = false
# subtitle = ""
[[params.social]]
#name = "Mastodon"
#icon = "twitter" # mastodon
#url = "https://mstdn.social/@earne"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "Help"
url = "/docs"
weight = 2
[[menu.main]]
name = "Contact"
url = "/contact"
weight = 3
[[menu.main]]
name = "Blog"
url = "/posts"
weight = 4
[[menu.main]]
name = "Services"
url = "/#services"
weight = 5
[[menu.main]]
name = "Donate"
url = "/donate"
weight = 6
[markup.goldmark.renderer]
unsafe = true

27
content/_index.md

@ -0,0 +1,27 @@
---
---
---
earne.link hosts a variety of free services :) -- **[chat with us](/chat)** -- [donate](/donate)
<!--{{< callout text="We just launched and are limiting" >}}-->
- [Terms of service + privacy](/service-policy)
- [Code of conduct](/code-of-conduct)
# Services:
| URL | Description + help |
| --------------------- | --------------------- |
| * [f.earne.link](https://f.earne.link) | *Goploader*: temporary file and text sharing [^]() |
| * [git.earne.link](https://git.earne.link) | *Gitea* instance + CI [*]() |
| [m.earne.link](https://m.earne.link) | *Modoboa* (web)email + contacts + calendar [*]() |
| [chat.earne.link](https://chat.earne.link) | *TheLounge* web-irc client [*]() |
| [write.cybermoon.pw](https://write.cybermoon.pw) | *Writefreely* instance |
Services with * don't require a login or have open registration!
---
# Recent announcements:

16
content/chat.md

@ -0,0 +1,16 @@
---
title: "Chat with us!"
date: 2021-08-18
---
# Matrix
Join the [#earne:envs.net](https://matrix.to/#/#earne:envs.net) space!
If you have a project that uses/ is on earne.link and would like a room added to the space, we'd be happy to have you!
# IRC
![](https://tilde.chat/badges/badge.php?channel=%23earne)
`#earne` on [tilde.chat](https://tilde.chat)

88
content/code-of-conduct.md

@ -0,0 +1,88 @@
---
title: "Code of Conduct"
date: 2021-08-18
---
## Our Pledge
We as users and administrators pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Enforcement Responsibilities
Community administrators are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community administrators have the right and responsibility to remove, edit, or reject content that is not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces (including chat channels such as Matrix and IRC, and earne.link services), and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community administrators responsible for enforcement [listed here](/contact). All complaints will be reviewed and investigated promptly and fairly.
All community administrators are obligated to respect the privacy and security of the reporter of any incident.
## Enforcement Guidelines
Community administrators will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community administrators, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.
## Security Issues
All users are obligated to first report security issues to <~earnestma/earne.link-admins@lists.sr.ht> and wait for a response before posting information in public channels. The discussions of security related incidents should be handled with care, and all effort taken to protect all users of the service.
Posting security issues publicly before engaging the earne.link community administrators may result in a permanent ban to earne.link services.
## Attribution
This Code of Conduct has been adapted from:
* The [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1],
* The [envs.net](https://envs.net/code-of-conduct) Code of Conduct, used under the terms of [Creatice Commons Attribution-ShareAlike license](https://creativecommons.org/licenses/by-sa/3.0/).
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html

17
content/contact.md

@ -0,0 +1,17 @@
---
title: "Contact us"
date: 2021-08-18
---
### [Help](/docs) // [Chat](/chat)
Reach all of the community admins by sending an email to: <~earnestma/earne.link-admins@lists.sr.ht>
## Your admins are:
- [earne](https://earnestma.xyz) (they/he):
- `me AT earne DOT link`
- IRC: usually `earne`
- Matrix: `@earne:envs.net`
Interested in becoming an admin? Please let us know!

5
content/docs/_index.md

@ -0,0 +1,5 @@
---
title: "Help"
---
hi there! check out the help articles/ videos below, for more help jump into the [chat](/chat).

3
content/docs/faq.md

@ -0,0 +1,3 @@
---
title: "Frequently Asked Questions"
---

31
content/service-policy.md

@ -0,0 +1,31 @@
---
title: "Terms of Service + Privacy"
date: 2021-08-18
---
As well as illegal or harmful content, the following are not permitted and will result in an immediate **permanent ban**:
- Deliberately tampering with or defacing the account of another user
- Deliberately tampering with or disrupting the earne.link servers or any earne.link service
- Disrupting other servers
- Impersonation of someone else, a website, or a business
- Storing/ distributing pornography of any kind (especially child pornography)
- Storing/ distributing content that defames any individual
- Doxing
- Promoting racial, ethnic, religious, political, and other forms of bigotry, including transphobia, homophobia, ableism, etc.
- Mining cryptocurrencies or storing CI artifacts/ backups
- Outgoing net- or portscanning
If you see anything that violates the terms of service or the [Code of Conduct](/code-of-conduct), please use the report feature (if it exists in the service), [let an admin know](/contact), and/ or email <~earnestma/earne.link-admins@lists.sr.ht>.
Violation of these terms or the [Code of Conduct](/code-of-conduct) will lead to a permanent ban; your access will be revoked and account/ services deleted.
## Resource usage
Please be reasonable and don't run anything that would disrupt other users.
# Privacy Policy
The email you use to sign up and your recovery email will be stored, as well as recent IP addresses when you sign in. Information will not be shared or sold to a third-party.
You may [contact](/contact) the admin team at any time should you have questions or want an export of your data.

19
layouts/docs/list.html

@ -0,0 +1,19 @@
{{ define "main" }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">{{ .Title }}</h1>
{{ end }}
{{ .Content }}
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}
</ul>
{{ end }}

35
layouts/docs/single.html

@ -0,0 +1,35 @@
{{ define "main" }}
<main>
<article>
<div class="title">
<h1 class="title">{{ .Title }}</h1>
<!--<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>-->
</div>
{{ if isset .Params "tldr" }}
<div class="tldr">
<strong>tl;dr:</strong>
{{ .Params.tldr }}
</div>{{ end }}
<p><a href="/docs">Go back</a></p>
<section class="body">
{{ .Content }}
</section>
<!--<div class="post-tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<nav class="nav tags">
<ul class="tags">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</nav>
{{ end }}
{{ end }}
</div>-->
</article>
</main>
{{ end }}

39
layouts/index.html

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="content">
{{ partial "head.html" . }}
<main class="list">
<div class="site-description">
{{- if isset .Site.Params "subtitle" -}}
<p>{{ .Site.Params.Subtitle | markdownify }}</p>
{{- end -}}
</div>
{{ .Content }}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<section class="list-item">
<h1 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h1>
<time>{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
<br><div class="description">
{{ if isset .Params "description" }}
{{ .Description }}
{{ else }}
{{ .Summary }}&hellip;
{{ end }}
</div>
<a href="{{ .RelPermalink }}">Read more ⟶</a>
</section>
{{ end }}
{{ template "partials/paginator.html" . }}
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>

17
layouts/partials/footer.html

@ -0,0 +1,17 @@
<footer>
<hr>
{{- range $index, $key := .Site.Params.Social -}}
<a class="soc" href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a>|
{{- end -}} ⚡️
{{ dateFormat "2006" now }} {{ with .Site.Copyright }} {{ . }} | {{ end }} <a href="https://git.earne.link/earne.link/earne.link">Source code</a>
| {{ printf "[Security](/code-of-conduct#security-issues)" | markdownify }}
</footer>
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{- if (isset .Site.Params "social") -}}
<script>
feather.replace()
</script>
{{- end -}}

1
layouts/shortcodes/rawhtml.html

@ -0,0 +1 @@
{{ .Inner }}

42
shell.nix

@ -0,0 +1,42 @@
{
pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/860b56be91fb874d48e23a950815969a7b832fbc.tar.gz";}
) {}
}:
with pkgs;
let
hugo-archie-theme = runCommand "hugo-archie-theme" {
pinned = builtins.fetchGit {
url = "https://github.com/athul/archie";
ref = "refs/heads/master";
rev = "5321e4817fbed7cf57de9171f994f8720cbcf411";
};
patches = [];
preferLocalBuild = true;
}
''
cp -r $pinned $out
chmod -R u+w $out
for p in $patches; do
echo "Applying patch $p"
patch -d $out -p1 < "$p"
done
'';
in
mkShell {
buildInputs = [
gnumake
hugo
];
shellHook = ''
mkdir -p themes
ln -snf "${hugo-archie-theme}" themes/archie
'';
# HUGO_ENV = "production";
}
Loading…
Cancel
Save