19 Commits

Author SHA1 Message Date
2ce3f4ff51 feat: CI/CD setup 2022-01-05 11:36:57 +01:00
36d5d2c976 Merge branch 'main' of ssh://git.autonomic.zone:2222/ruangrupa/living-room into main 2022-01-05 10:30:06 +01:00
d2cb5780bf chore: ignore lock files, sort 2022-01-05 10:28:20 +01:00
10d06b0a10 minor formatting 2022-01-01 20:45:49 +05:00
3a64678ea0 minor formatting 2022-01-01 13:08:59 +05:00
c15948115a remove redundant css declaration 2022-01-01 13:06:02 +05:00
e93cc66f5a reindent lines 2022-01-01 13:04:10 +05:00
405d99cd3c revert previous commit 2022-01-01 12:45:39 +05:00
edaffea130 test commit to check auto-deployment 2022-01-01 12:23:59 +05:00
0daf963061 add .venv to gitignore 2021-12-17 14:25:01 +05:00
93b9bc28d6 formatting 2021-12-17 14:23:49 +05:00
37c0fbe94f formatting 2021-12-17 14:22:40 +05:00
aa49ddaa9e add watch flag 2021-12-15 13:22:30 +01:00
567d587b89 Add auto reload 2021-12-15 13:21:15 +01:00
a03cc072da drop old config 2021-12-15 12:51:13 +01:00
3c67d2c862 cleaning out cruft 2021-12-15 12:41:24 +01:00
3b34e0d0e0 convenient generation 2021-12-15 12:40:25 +01:00
4205d64ff6 more hacking docs 2021-12-15 12:37:21 +01:00
e9115e275d more docs 2021-12-15 12:35:29 +01:00
11 changed files with 313 additions and 303 deletions

View File

@ -1,17 +1,18 @@
--- ---
kind: pipeline kind: pipeline
name: deploy beta.lumbung.space name: continuous deployment
steps: steps:
- name: bundle static - name: build image
image: plugins/docker image: plugins/docker
settings: settings:
username: decentral1se username:
from_secret: docker_reg_username
password: password:
from_secret: docker_reg_passwd from_secret: docker_reg_passwd
repo: decentral1se/beta.lumbung.space repo: decentral1se/beta.lumbung.space
tags: latest tags: latest
- name: deployment - name: deploy stack
image: decentral1se/stack-ssh-deploy:latest image: decentral1se/stack-ssh-deploy:latest
settings: settings:
stack: beta_lumbung_space stack: beta_lumbung_space
@ -21,3 +22,6 @@ steps:
trigger: trigger:
branch: branch:
- main - main
event:
exclude:
- pull_request

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
*.lock
.env .env
/public/ .venv/
/content/ /content/
/public/

View File

@ -1,11 +0,0 @@
FROM klakegg/hugo:alpine
RUN apk add --no-cache curl git
EXPOSE 1313
COPY . /src/
ENTRYPOINT ["/bin/bash"]
CMD ["-c", "hugo server --appendPort='false' --bind 0.0.0.0 --baseUrl='https://beta.lumbung.space' --port='1313' -F"]

7
Dockerfile.hugo Normal file
View File

@ -0,0 +1,7 @@
FROM klakegg/hugo:alpine
RUN apk add --no-cache curl git
EXPOSE 1313
COPY . /src/

View File

@ -1,5 +1,7 @@
# living room # living room
[![Build Status](https://drone.autonomic.zone/api/badges/ruangrupa/living-room/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/ruangrupa/living-room)
> A new attempt to bring together the ideas of the "splash" page, "portal" page > A new attempt to bring together the ideas of the "splash" page, "portal" page
> and a comfortable digital "living room" experience for lumbung[dot]space. > and a comfortable digital "living room" experience for lumbung[dot]space.
> This is a work in progress. The end goal of this is to have a new design and > This is a work in progress. The end goal of this is to have a new design and
@ -7,13 +9,27 @@
## Hacking ## Hacking
[Install Hugo](https://gohugo.io/getting-started/installing/).
### Generate the site
`hugo serve --watch`
### Generate `lumbung[dot]space` posts ### Generate `lumbung[dot]space` posts
Do this manually first:
``` ```
$ python3 -m venv .venv && source .venv/bin/activate mkdir -p content
$ pip install -e git+https://git.autonomic.zone/ruangrupa/lumbunglib python3 -m venv .venv && source .venv/bin/activate
$ export OUTPUT_DIR= pip install git+https://git.autonomic.zone/ruangrupa/lumbunglib
$ export CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
$ lumbunglib-cal export CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
$ lumbunglib-vid export OUTPUT_DIR=content/calendar
lumbunglib-cal
export OUTPUT_DIR=content/video
lumbunglib-vid
``` ```
Afterwards, you can automatically run it with `make gen`.

View File

@ -14,6 +14,14 @@ services:
start_period: 15s start_period: 15s
volumes: volumes:
- content:/src/content - content:/src/content
command: |
server
--appendPort='false'
--bind 0.0.0.0
--baseUrl='https://beta.lumbung.space'
--port='1313'
--buildFuture
--watch
deploy: deploy:
update_config: update_config:
failure_action: rollback failure_action: rollback

View File

@ -1,6 +1,16 @@
DEFAULT: serve DEFAULT: serve
serve: serve:
@hugo serve @hugo serve --watch
.PHONY: serve gen:
@CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"; \
OUTPUT_DIR=content/calendar; \
lumbunglib-cal && \
OUTPUT_DIR=content/video lumbunglib-vid
push-hugo:
@docker build -t decentral1se/beta.lumbung.space -f Dockerfile.hugo . && \
docker push decentral1se/beta.lumbung.space
.PHONY: serve gen push-hugo

View File

@ -1,18 +0,0 @@
# lumbung-theme
A Hugo theme for lumbung.space
### Installation
`cd /my/hugosite/themes`
`git clone https://git.vvvvvvaria.org/rra/lumbung-theme`
edit `/my/hugosite/config.toml`:
```
cat config.toml
baseURL = "http://localhost/"
languageCode = "en-us"
title = "lumbung.space"
theme = 'lumbung-theme'
```

View File

@ -57,7 +57,6 @@ body {
} }
.card { .card {
border: 2px solid var(--border-color); border: 2px solid var(--border-color);
box-shadow:1em 1em 0 #d2d1c8; box-shadow:1em 1em 0 #d2d1c8;
background-color: #fff09d; background-color: #fff09d;
@ -255,6 +254,7 @@ footer.post-footer {
border-top: 2px solid var(--border-color); border-top: 2px solid var(--border-color);
flex-grow: 1; flex-grow: 1;
} }
.read-more { .read-more {
border-top: 2px solid var(--border-color); border-top: 2px solid var(--border-color);
border-left: 2px solid var(--border-color); border-left: 2px solid var(--border-color);
@ -266,7 +266,6 @@ footer.post-footer {
/* network cards */ /* network cards */
.card.network { .card.network {
border: 2px solid darkcyan; border: 2px solid darkcyan;
box-shadow:1em 1em 0 #d2d1c8; box-shadow:1em 1em 0 #d2d1c8;
background-color: lightgreen; background-color: lightgreen;
@ -551,7 +550,6 @@ ul.pagination{
.page-item { .page-item {
display: block; display: block;
text-align: center; text-align: center;
vertical-align: middle;
font-size: 38px; font-size: 38px;
border: 2px solid #1B4C8A; border: 2px solid #1B4C8A;
box-shadow:0.4em 0.4em 0 #d2d1c8; box-shadow:0.4em 0.4em 0 #d2d1c8;

View File

@ -145,11 +145,11 @@
} }
.video-thumbnail:hover { .video-thumbnail:hover {
text-decoration:none!important text-decoration:none !important;
} }
.video-thumbnail:hover .play-overlay { .video-thumbnail:hover .play-overlay {
opacity:1 opacity: 1;
} }
.video-thumbnail:hover .play-overlay .play-icon { .video-thumbnail:hover .play-overlay .play-icon {
transform:translate(-50%,-50%) scale(1) transform:translate(-50%,-50%) scale(1);
} }

View File

@ -1,6 +1,3 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Lumbung" name = "Lumbung"
license = "AGPL3" license = "AGPL3"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
@ -9,12 +6,9 @@ homepage = "http://example.com/"
tags = [] tags = []
features = [] features = []
min_version = "0.41.0" min_version = "0.41.0"
[author] [author]
name = "" name = ""
homepage = "" homepage = ""
# If porting an existing theme
[original] [original]
name = "" name = ""
homepage = "" homepage = ""