working build and clean hugo

This commit is contained in:
Shihaam Abdul Rahman 2023-07-01 22:05:59 +05:00
parent 58edd501fb
commit ec3ad75108
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
7 changed files with 46 additions and 0 deletions

23
.build/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM nginx
# set work dir
WORKDIR /etc/nginx/
# Set build shell to bash, default has has some issues sometimes
SHELL ["/bin/bash", "-c"]
## Language setup and Initial repo update
#RUN apt update \
# && apt install -y --no-install-recommends nginx-extras iputils-ping ca-certificates wget curl nano locales \
# && apt auto-remove -y \
# && apt clean -y
#ENV LANG en_US.UTF-8
#ENV LANGUAGE en_US:en
#ENV LC_ALL en_US.UTF-8
#RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
# && locale-gen
#
## clean up
#RUN rm -rfv /var/lib/apt/lists /var/lib/dpkg/info
COPY public/ /usr/share/nginx/html

View File

@ -0,0 +1,9 @@
version: '3.5'
services:
#########################
nginx:
build:
context: ../
dockerfile: .build/Dockerfile
hostname: sarbblog
image: sarblog

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke

6
archetypes/default.md Normal file
View File

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

3
config.toml Normal file
View File

@ -0,0 +1,3 @@
baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'

1
hugo.toml Normal file
View File

@ -0,0 +1 @@
theme = 'ananke'

1
themes/ananke Submodule

@ -0,0 +1 @@
Subproject commit a1a99cf12681ad95b006e648a28139e6b9b75f09