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

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudnautique committed Jul 16, 2022
0 parents commit ef5a6cd
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Examples from the [Acorn docs](https://docs.acorn.io)
5 changes: 5 additions & 0 deletions hugo-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Hugo Example

## Using this demo

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`.
13 changes: 13 additions & 0 deletions hugo-example/acorn-demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM klakegg/hugo:0.101.0-alpine AS hugo

ADD . /src
WORKDIR /src
RUN mkdir -p /target && \
hugo -d /target/ --minify

FROM nginx AS prod
COPY --from=hugo /target /usr/share/nginx/html

FROM hugo AS dev
EXPOSE 1313
CMD [ "server", "--bind", "0.0.0.0", "-D" ]
20 changes: 20 additions & 0 deletions hugo-example/acorn-demo/acorn.cue.complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
containers: {
app: {
build: {
context: "."
}

if args.dev {
build: target: "dev"
expose: "1313/http"
dirs: {
"/src": "./"
}
}

if !args.dev {
build: target: "prod"
expose: "80/http"
}
}
}
6 changes: 6 additions & 0 deletions hugo-example/acorn-demo/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
---

4 changes: 4 additions & 0 deletions hugo-example/acorn-demo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = "ananke"
1 change: 1 addition & 0 deletions hugo-example/acorn-demo/themes/ananke
Submodule ananke added at 470ea4

0 comments on commit ef5a6cd

Please sign in to comment.