Skip to content

Commit

Permalink
hugo site init
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed Jan 26, 2024
1 parent 7cf898c commit 2f24513
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
Empty file added .hugo_build.lock
Empty file.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM klakegg/hugo:0.111.3-alpine as build-stage

ARG hugobuildargs
ENV HUGO_BUILD_ARGS $hugobuildargs

WORKDIR /app
ADD . .

RUN hugo ${HUGO_BUILD_ARGS}

FROM nginx:1.23-alpine

COPY --from=build-stage /app/public/ /usr/share/nginx/html
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
11 changes: 11 additions & 0 deletions content/posts/my-first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "My First Post"
date: 2024-01-26T14:01:27Z
draft: true
---
## Introduction

This is **bold** text, and this is *emphasized* text.

Visit the [Hugo](https://gohugo.io) website!

1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme = 'ananke'
1 change: 1 addition & 0 deletions themes/ananke
Submodule ananke added at 91df00

0 comments on commit 2f24513

Please sign in to comment.