Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit ef5a6cd

Browse files
committed
initial commit
0 parents  commit ef5a6cd

File tree

7 files changed

+50
-0
lines changed

7 files changed

+50
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Examples from the [Acorn docs](https://docs.acorn.io)

hugo-example/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Hugo Example
2+
3+
## Using this demo
4+
5+
This is a bare bones Hugo application. It is meant to have the Acornfile built as part of the [Docs exercise](https://docs.acorn.io/Develop%20with%20Acorn/Develop%20with%20Acorn). If you would like to skip that, you can copy the `Acorn.cue.complete` to `acorn.cue`.

hugo-example/acorn-demo/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM klakegg/hugo:0.101.0-alpine AS hugo
2+
3+
ADD . /src
4+
WORKDIR /src
5+
RUN mkdir -p /target && \
6+
hugo -d /target/ --minify
7+
8+
FROM nginx AS prod
9+
COPY --from=hugo /target /usr/share/nginx/html
10+
11+
FROM hugo AS dev
12+
EXPOSE 1313
13+
CMD [ "server", "--bind", "0.0.0.0", "-D" ]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
containers: {
2+
app: {
3+
build: {
4+
context: "."
5+
}
6+
7+
if args.dev {
8+
build: target: "dev"
9+
expose: "1313/http"
10+
dirs: {
11+
"/src": "./"
12+
}
13+
}
14+
15+
if !args.dev {
16+
build: target: "prod"
17+
expose: "80/http"
18+
}
19+
}
20+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
baseURL = 'http://example.org/'
2+
languageCode = 'en-us'
3+
title = 'My New Hugo Site'
4+
theme = "ananke"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 470ea40982f5036554819253c3ac6ed4a34193f4

0 commit comments

Comments
 (0)