diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d16bc22 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,42 @@ +--- +kind: pipeline +type: docker +name: Deploy to boba.best + +trigger: + branch: + - master + event: + exclude: + - pull_request + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: build + image: mapitman/docker-hugo + commands: + - hugo version + - hugo --minify + + - name: tree + image: alpine:latest + commands: + - apk add tree + - tree -a public/ + + - name: upload + image: appleboy/drone-scp + settings: + host: boba.best + port: 22 + username: droneci + key: + from_secret: SSH_KEY + target: /var/www/boba.best/public/ + rm: true + source: public/ + strip_components: 1 diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d0c9f8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*.{md,toml}] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +max_line_length = 80 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f32553a --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/hugo +# Edit at https://www.toptal.com/developers/gitignore?templates=hugo + +### Hugo ### +# Generated files by hugo +/public/ +/resources/_gen/ +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# End of https://www.toptal.com/developers/gitignore/api/hugo diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c53b474 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-bearblog"] + path = themes/hugo-bearblog + url = https://github.com/janraasch/hugo-bearblog.git diff --git a/archetypes/blog.md b/archetypes/blog.md new file mode 100644 index 0000000..136b4a0 --- /dev/null +++ b/archetypes/blog.md @@ -0,0 +1,13 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +date = "{{ .Date }}" +# Format date like 2006-01-02 (it gives an error if I use .Format) + +description = """ +Lorem ipsum +""" + +tags = [ + "", +] ++++ diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..d3cb10b --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,4 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +menu = "main" ++++ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..92c91bb --- /dev/null +++ b/config.toml @@ -0,0 +1,64 @@ + +baseURL = "https://boba.best" + +# The name of this wonderful theme ;-). +theme = 'hugo-bearblog' + +# Basic metadata configuration for your blog. +title = "boba.best" +author = "bbaovanc" +copyright = "Copyright © 2021, bbaovanc." +languageCode = "en-US" + +# Generate a nice robots.txt for SEO +enableRobotsTXT = true + +# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/. +disableKinds = ["taxonomy"] +ignoreErrors = ["error-disable-taxonomy"] +[permalinks] + #blog = "/:slug/" + tags = "/blog/:slug" + +[params] + # The "description" of your website. This is used in the meta data of your generated html. + description = "Be your boba best" + + # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. + # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder. + favicon = "img/boba_mochi.png" + + # These "images" are used for the structured data templates. This will show up, when + # services like Twitter or Slack want to generate a preview of a link to your site. + # See https://gohugo.io/templates/internal#twitter-cards and + # https://gohugo.io/templates/internal#open-graph. + images = ["img/boba_mochi.gif"] + + # Another "title" :-). This one is used as the site_name on the Hugo's internal + # opengraph structured data template. + # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. + title = "boba.best" + + # This theme will, by default, inject a made-with-line at the bottom of the page. + # You can turn it off, but we would really appreciate if you don’t :-). + # hideMadeWithLine = true + + # By default, this theme displays dates with a format like "02 Jan, 2006", but + # you can customize it by setting the `dateFormat` param in your site's config + # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/) + # for details. An example TOML config that uses [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format: + # dateFormat = "2006-01-02" + +#[menu] +# +# [[menu.main]] +# identifier = "pleroma" +# name = "Pleroma" +# url = "/pleroma/" +# weight = 0 + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..1f79052 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,6 @@ +Full list of the services hosted by boba.best: + +- [PeerTube](https://peertube.boba.best) +- [Pleroma](https://pleroma.boba.best) + +See the navigation bar on top for more information about each service. diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..34651ab --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Blog" ++++ diff --git a/content/peertube.md b/content/peertube.md new file mode 100644 index 0000000..11b72da --- /dev/null +++ b/content/peertube.md @@ -0,0 +1,36 @@ ++++ +title = "PeerTube" +menu = "main" ++++ + +## What is PeerTube? + +From JoinPeerTube[^1] +> PeerTube aspires to be a **decentralized and free/libre alternative** to +> video broadcasting services. +> +> Our aim is not to replace them, but rather to simultaneously offer something +> else, with different values. + +> PeerTube uses [**ActivityPub**](https://activitypub.rocks/), a federating +> protocol that **allows you to interact with other software**, provided they +> also use this protocol. For example, PeerTube and Mastodon -a Twitter +> alternative- are connected: **you can follow a PeerTube user from Mastodon** +> (the latest videos from the PeerTube account you follow will appear in your +> feed), **and even comment on a PeerTube-hosted video directly from your +> Mastodon's account**. + +> With PeerTube, choose **your hosting company and the rules you believe in**. + +> Direct contact with a human-scale hoster allows for two things: you no longer +> are the client of a huge tech company, and **you can nurture a special +> relationship with your hoster, who distributes your data**. + +> The PeerTube software can, whenever necessary, use a peer-to-peer protocol +> (P2P) to broadcast viral videos, **lowering the load of their hosts**. + +## peertube.boba.best + +Instance URL: https://peertube.boba.best + +[^1]: https://joinpeertube.org/ diff --git a/content/pleroma.md b/content/pleroma.md new file mode 100644 index 0000000..5e075f2 --- /dev/null +++ b/content/pleroma.md @@ -0,0 +1,27 @@ ++++ +title = "Pleroma" +menu = "main" ++++ + +## What is Pleroma? + +From *What Is Pleroma?*[^1] +> Pleroma is a microblogging server software that can federate (= exchange +> messages with) other servers that support the same federation standards +> (OStatus and ActivityPub). What that means is that you can host a server for +> yourself or your friends and stay in control of your online identity, but +> still exchange messages with people on larger servers. Pleroma will federate +> with all servers that implement either OStatus or ActivityPub, like GNU +> Social, Friendica, Hubzilla and Mastodon. + +Since it all uses ActivityPub in the background, that means that, for example, +you can comment on a video from [PeerTube](https://joinpeertube.org/) using an +existing account on an ActivityPub-compatible service such as +[Pleroma](https://pleroma.social/) or [Mastodon](https://joinmastodon.org/).[^2] + +## pleroma.boba.best + +Instance URL: https://pleroma.boba.best + +[^1]: [https://blog.soykaf.com/post/what-is-pleroma/](https://web.archive.org/web/20210409094551/https://blog.soykaf.com/post/what-is-pleroma/) +[^2]: [https://pleroma.social/blog/2021/01/13/the-big-pleroma-and-fediverse-faq/](https://web.archive.org/web/20210321192935/https://pleroma.social/blog/2021/01/13/the-big-pleroma-and-fediverse-faq/) diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..77cb9ab Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/img/boba_mochi.gif b/static/img/boba_mochi.gif new file mode 100644 index 0000000..f0fff20 Binary files /dev/null and b/static/img/boba_mochi.gif differ diff --git a/static/img/boba_mochi.png b/static/img/boba_mochi.png new file mode 100644 index 0000000..37c8b6d Binary files /dev/null and b/static/img/boba_mochi.png differ diff --git a/themes/hugo-bearblog b/themes/hugo-bearblog new file mode 160000 index 0000000..11d7e54 --- /dev/null +++ b/themes/hugo-bearblog @@ -0,0 +1 @@ +Subproject commit 11d7e54cb9467ecc27df791a9db9153fbc9b0c7f