mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-18 09:25:41 +00:00
Beginning work on sticking website into container
saved all the relevent docs into a window, can't continue work now because I need to rest before I go back to driving, need to setup a conditional so I can do a docker build without having the comments section enabled though maybe have the arg be the name nginx should hit up for the comments instead of 0 v 1 for on v off
This commit is contained in:
parent
580557779d
commit
92186c3a58
3 changed files with 24 additions and 1 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM alpine:3.18 as build
|
||||||
|
# making my own image for hugo because there doesn't seem to be an official one in repo, lazy so we're going with alpine
|
||||||
|
RUN ["apk", "update"]
|
||||||
|
RUN ["apk", "add hugo"]
|
||||||
|
ADD . /root/
|
||||||
|
WORKDIR /root
|
||||||
|
ARG WITH_COMMENTS=0
|
||||||
|
RUN ["hugo", "--minify"]
|
||||||
|
|
||||||
|
FROM nginx:1.25
|
||||||
|
|
||||||
|
RUN
|
|
@ -24,6 +24,16 @@ Because I'm not writing a CMS, I'm just writing the backend for comments and sti
|
||||||
|
|
||||||
## [Writing the Go backend]
|
## [Writing the Go backend]
|
||||||
|
|
||||||
|
### Why Go?
|
||||||
|
|
||||||
|
### Annoyances
|
||||||
|
- Doesn't handle html multipart forms correctly(or the browser is wrong but I doubt that)
|
||||||
|
- Magic redirect when there's no trailing /
|
||||||
|
|
||||||
|
### Anyways
|
||||||
|
|
||||||
|
- yeeted oauth midway through
|
||||||
|
|
||||||
## [Writing the Hugo templating frontend]
|
## [Writing the Hugo templating frontend]
|
||||||
|
|
||||||
## [Setting up the docker Containers]
|
## [Setting up the docker Containers]
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/libraries/normalize.3.0.1.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}/libraries/normalize.3.0.1.css" />
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/liquorice.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/liquorice.css" />
|
||||||
{{ cond (eq .Page.Kind "page") (safeHTML (printf "<link rel='stylesheet' href='%s/css/single.css'>" .Site.BaseURL)) "" }}
|
{{ cond (eq .Page.Kind "page") (safeHTML (printf "<link rel='stylesheet' href='%s/css/single.css'>" .Site.BaseURL)) "" }}
|
||||||
|
<script src="https://unpkg.com/htmx.org@1.9.5" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>
|
||||||
<link rel="icon" href="{{ .Site.BaseURL }}/img/icon.png" />
|
<link rel="icon" href="{{ .Site.BaseURL }}/img/icon.png" />
|
||||||
<meta property="og:title" content="{{ .Title }}"/>
|
<meta property="og:title" content="{{ .Title }}"/>
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
|
|
Loading…
Reference in a new issue