Set up Hugo

Set up the Hugo static site generator with a new custom theme,
generating exactly what we have right now.
This commit is contained in:
Basti 2022-05-26 18:10:44 +02:00
parent e77a7184d3
commit 5a05ef1d98
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
27 changed files with 225 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
node_modules
out

0
.hugo_build.lock Normal file
View File

View File

@ -1,6 +1,10 @@
# kosmos.org
This website (or rather foundation for a future website) is just a simple
static site. There are no dependencies to install or build tools to run.
This website (or rather foundation for a future website) is a simple static
site. It is built using the [Hugo](https://gohugo.io/) static site generator.
Just edit and submit a PR.
## Getting started
1. Clone this Git repository
2. [Install Hugo](https://gohugo.io/getting-started/installing/)
3. Run `hugo server`

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

5
config.toml Normal file
View File

@ -0,0 +1,5 @@
theme = "kosmos-22"
baseURL = 'https://kosmos.org/'
languageCode = 'en-us'
title = 'Kosmos'
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT"]

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

49
public/index.html Normal file
View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="Hugo 0.99.1" />
<meta charset="utf-8">
<title>Kosmos</title>
<meta content='width=device-width, minimum-scale=1.0, maximum-scale=1.0' name='viewport'>
<link href='https://assets.kosmos.org/fonts/open-sans/open-sans.css' rel='stylesheet'>
<link href="/css/style.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<header>
<h1>Kosmos</h1>
<h2>Group communication for the 21st century</h2>
</header>
<main>
<p>
We are an open co-operative of people, who are developing a free,
open-source, and user-centric alternative to centralized group chat
platforms, based on widely used protocols and standards.
</p>
<p>
We also develop a system for rewarding contributors and enabling
governance based on contributions, called Kredits, which we started
using in production recently.
</p>
<p>
You can find all relevant information and further links in our
<a href="https://wiki.kosmos.org">wiki</a>.
We collaborate on source code on
<a href="https://github.com/67P" rel="me">GitHub</a>
as well as our own
<a href="https://gitea.kosmos.org/kosmos" rel="me">Gitea</a>.
For announcements and other news, you can follow us on the
<a href="https://kosmos.social/@kosmos" rel="me">fediverse</a>
(recommended) or on
<a href="https://twitter.com/KosmosHQ" rel="me">Twitter</a>.
</p>
<p class="hidden">
For status and incident updates regarding Kosmos infrastructure, please follow
<a href="https://kosmos.social/@ops" rel="me">ops@kosmos.social</a>.
</p>
</main>
<footer>
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,12 @@
{
"links": [
{
"rel": "urn:xmpp:alt-connections:xbosh",
"href": "https://xmpp.kosmos.org:5443/bosh"
},
{
"rel": "urn:xmpp:alt-connections:websocket",
"href": "wss://xmpp.kosmos.org:5443/ws"
}
]
}

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

20
themes/kosmos-22/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2022 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,2 @@
+++
+++

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -5,7 +5,7 @@
<title>Kosmos</title>
<meta content='width=device-width, minimum-scale=1.0, maximum-scale=1.0' name='viewport'>
<link href='https://assets.kosmos.org/fonts/open-sans/open-sans.css' rel='stylesheet'>
<link href="/styles/style.css" rel="stylesheet" />
<link href="/css/style.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">

View File

@ -0,0 +1,91 @@
* {
margin: 0;
padding: 0;
}
body, html {
box-sizing: border-box;
height: 100%;
font-size: 16px;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
background-color: #fff;
color: #232323;
font-family: 'Open Sans', sans-serif;
text-rendering: optimizeLegibility;
text-align: center;
}
html, body, #wrapper {
min-height: 100%;
}
#wrapper {
min-height: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
header {
height: 100%;
max-width: 90%;
margin: 0 auto 10vh;
text-align: center;
}
header h1 {
display: inline-block;
margin-bottom: 2rem;
margin-right: -0.25em; /* fix trailing space from letter-spacing */
font-size: 7vw;
font-weight: 700;
letter-spacing: 0.5em;
text-transform: uppercase;
background: #232323 url(https://kredits.kosmos.org/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);
background-size: cover;
background-repeat: no-repeat;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
header h2 {
font-weight: 300;
font-size: 1.4rem;
}
main {
width: 768px;
max-width: 90%;
text-align: left;
}
main p {
line-height: 1.6em;
margin-bottom: 1em;
}
.hidden {
display: none !important;
}
@media screen and (max-width: 760px) {
header {
margin-top: 4rem;
}
header h1 {
font-size: 8vw;
}
footer {
margin-bottom: 4rem;
}
}

View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Kosmos 22"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""