diff --git a/Dockerfile b/Dockerfile index bafa20f..ae84dda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 as build +FROM docker.io/golang:1.19 as build RUN go install git.sr.ht/~sircmpwn/openring@latest RUN go install --tags extended github.com/gohugoio/hugo@latest @@ -8,5 +8,5 @@ WORKDIR /go/src/blog RUN make public -FROM nginx -COPY --from=build /go/src/blog/public /usr/share/nginx/html \ No newline at end of file +FROM docker.io/nginx +COPY --from=build /go/src/blog/public /usr/share/nginx/html diff --git a/Makefile b/Makefile index d2fb518..d90bba8 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,11 @@ GOBIN = $(shell go env GOPATH)/bin .PHONY: serve serve: assets - $(HUGO_BIN) server -D --log -w --bind 0.0.0.0 + @hugo server -D --log -w --bind 0.0.0.0 .PHONY: new-post new-post: - @$(HUGO_BIN) new posts/$(TITLE).md + @hugo new posts/$(TITLE).md .PHONY: build build: @@ -23,36 +23,36 @@ test-publish: build .PHONY: clean clean: - @rm -rf ./public ./resources ./assets/css/syntax.* ./layouts/partials/single/footer.html + @rm -rf ./public ./resources ./themes ./assets/css/syntax.* ./layouts/partials/single/footer.html .PHONY: tools tools: $(HUGO_BIN) $(OPENRING_BIN) HUGO_BIN = $(GOBIN)/hugo $(HUGO_BIN): - @go install --tags extended github.com/gohugoio/hugo@latest + go install --tags extended github.com/gohugoio/hugo@latest OPENRING_BIN = $(GOBIN)/openring $(OPENRING_BIN): - @go install git.sr.ht/~sircmpwn/openring@latest + go install git.sr.ht/~sircmpwn/openring@latest public: $(HUGO_BIN) ./themes/lines ./assets/css/syntax.light.css ./assets/css/syntax.dark.css ./layouts/partials/single/footer.html - $(HUGO_BIN) --verbose --gc --minify --templateMetrics --templateMetricsHints --enableGitInfo --environment production + $(HUGO_BIN) --verbose --gc --minify --templateMetrics --templateMetricsHints --enableGitInfo --environment production ./themes/lines: - git submodule update + @git submodule update --init ./assets/css: - mkdir -p ./assets/css + @mkdir -p ./assets/css ./assets/css/syntax.light.css: $(HUGO_BIN) ./assets/css - $(HUGO_BIN) gen chromastyles --style=github > assets/css/syntax.light.css + @$(HUGO_BIN) gen chromastyles --style=github > assets/css/syntax.light.css ./assets/css/syntax.dark.css: $(HUGO_BIN) ./assets/css - $(HUGO_BIN) gen chromastyles --style=github-dark > assets/css/syntax.dark.css + @$(HUGO_BIN) gen chromastyles --style=github-dark > assets/css/syntax.dark.css ./layouts/partials/single/footer.html: $(OPENRING_BIN) - mkdir -p ./layouts/partials/single/ + @mkdir -p ./layouts/partials/single/ $(OPENRING_BIN) \ -s https://dave.cheney.net/feed/atom \ -s https://tech.davis-hansson.com/index.xml \ diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html deleted file mode 100644 index 0c51ab3..0000000 --- a/layouts/partials/single/footer.html +++ /dev/null @@ -1,79 +0,0 @@ -
-

Articles from blogs I follow

-
- -
-

- My plans at FOSDEM: SourceHut, Hare, and Helios -

-

FOSDEM is right around the corner, and finally in person after long years of -dealing with COVID. I’ll be there again this year, and I’m looking forward to -it! I have four slots on the schedule (wow! Thanks for arranging these, FOSDEM -team) and I’ll be talkin…

- - via Drew DeVault's blog - - January 24, 2023 -
- -
-

- YSK: Google allows spoofing news headlines in search results -

-

A minor scandal unfolding in the Swedish election highlights a way to influence news narratives: -Google allows you to set headlines for news articles in search results by paying for adwords placements of legitimate articles. -This is being used by political …

- - via Jacob Davis-Hansson - - September 9, 2022 -
- -
-

- Going multipath without Multipath TCP -

-

Going multipath without Multipath TCP - - - -Gigabit ethernet has been around for a long time, it’s so ubiquitous that there is a very strong chance that if you have a RJ-45 port on your compu -

- - via benjojo blog - - February 24, 2022 -
- -
-

- Generated by - openring -

-
- diff --git a/themes/lines b/themes/lines deleted file mode 160000 index a85d561..0000000 --- a/themes/lines +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a85d561cac091fcd73a248c3d3c426d39ac15155