Compare commits
19 Commits
666daa2c92
...
cnt-deploy
Author | SHA1 | Date | |
---|---|---|---|
2ce3f4ff51 | |||
36d5d2c976 | |||
d2cb5780bf | |||
10d06b0a10 | |||
3a64678ea0 | |||
c15948115a | |||
e93cc66f5a | |||
405d99cd3c | |||
edaffea130 | |||
0daf963061 | |||
93b9bc28d6 | |||
37c0fbe94f | |||
aa49ddaa9e | |||
567d587b89 | |||
a03cc072da | |||
3c67d2c862 | |||
3b34e0d0e0 | |||
4205d64ff6 | |||
e9115e275d |
12
.drone.yml
12
.drone.yml
@ -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
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
*.lock
|
||||||
.env
|
.env
|
||||||
/public/
|
.venv/
|
||||||
/content/
|
/content/
|
||||||
|
/public/
|
||||||
|
11
Dockerfile
11
Dockerfile
@ -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
7
Dockerfile.hugo
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM klakegg/hugo:alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache curl git
|
||||||
|
|
||||||
|
EXPOSE 1313
|
||||||
|
|
||||||
|
COPY . /src/
|
28
README.md
28
README.md
@ -1,5 +1,7 @@
|
|||||||
# living room
|
# living room
|
||||||
|
|
||||||
|
[](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`.
|
||||||
|
@ -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
|
||||||
|
14
makefile
14
makefile
@ -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
|
||||||
|
@ -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'
|
|
||||||
```
|
|
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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 = ""
|
||||||
|
Reference in New Issue
Block a user