This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ef5a6cd
Showing
7 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Examples from the [Acorn docs](https://docs.acorn.io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: "{{ replace .Name "-" " " | title }}" | ||
date: {{ .Date }} | ||
draft: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Submodule ananke
added at
470ea4