-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
bcf4f03
commit 09e341e
Showing
100 changed files
with
3,587 additions
and
3 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,78 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- website | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.115.4 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v3 | ||
- name: Install Node.js dependencies | ||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
- name: Build with Hugo | ||
env: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
run: | | ||
hugo \ | ||
--gc \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | 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,34 @@ | ||
--- | ||
description: "A cozy, cooperative puzzle game for two players" | ||
paige: | ||
search: | ||
hide_page: true | ||
style: | | ||
#paige-collections, | ||
#paige-sections, | ||
#paige-pages { | ||
display: none; | ||
} | ||
#paige-title { | ||
font-size: 5rem; | ||
} | ||
title: "The Cube's Traveller" | ||
--- | ||
|
||
|
||
<p>{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="40rem" loading="eager" src="main_image.png" width="100%" %}}</p> | ||
|
||
<p class="display-5 fw-bold h2 text-center">A new way to play together</p> | ||
|
||
<div class="container-fluid"> | ||
<div class="justify-content-center row"> | ||
<div class="col col-auto col-lg-7 px-0"> | ||
<p class="lead text-center">Enter description.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<!-- <div class="column-gap-3 d-flex display-6 justify-content-center mb-3"> | ||
{{< paige/icon class="bi bi-github" title="GitHub" url="https://github.com/willfaught/paige" >}} | ||
</div> --> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
--- | ||
description: "The team behind the project" | ||
paige: | ||
search: | ||
hide_page: true | ||
style: | | ||
title: "Team" | ||
--- | ||
|
||
<div style="display:flex;flex-direction:column;justify-content:left;"> | ||
|
||
<div style="display:flex;gap:10px;flex-direction:row;align-items:center;"> | ||
<p style="width:10rem">{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="12rem" loading="eager" src="david.png" width="100%" %}}</p> | ||
<p class="display-7 fw-bold h3">David Åsberg</p> | ||
</div> | ||
|
||
<div style="display:flex;gap:10px;flex-direction:row;align-items:center;"> | ||
<p style="width:10rem">{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="12rem" loading="eager" src="anders.png" width="100%" %}}</p> | ||
<p class="display-7 fw-bold h3">Anders Blomqvist</p> | ||
</div> | ||
|
||
<div style="display:flex;gap:10px;flex-direction:row;align-items:center;"> | ||
<p style="width:10rem">{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="12rem" loading="eager" src="gabriel.png" width="100%" %}}</p> | ||
<p class="display-7 fw-bold h3">Gabriel Françon</p> | ||
</div> | ||
|
||
<div style="display:flex;gap:10px;flex-direction:row;align-items:center;"> | ||
<p style="width:10rem">{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="12rem" loading="eager" src="jean-louis.png" width="100%" %}}</p> | ||
<p class="display-7 fw-bold h3">Jean-Louis Werthe</p> | ||
</div> | ||
|
||
<div style="display:flex;gap:10px;flex-direction:row;align-items:center;"> | ||
<p style="width:10rem">{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4" fetchpriority="high" height="12rem" loading="eager" src="jeremy.png" width="100%" %}}</p> | ||
<p class="display-7 fw-bold h3">Jeremy Carneau</p> | ||
</div> | ||
|
||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
module github.com/davidasberg/cubes_traveller | ||
|
||
go 1.21.3 | ||
|
||
require ( | ||
github.com/hugomods/images v0.8.0 // indirect | ||
github.com/willfaught/paige v0.71.2 // indirect | ||
) |
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 @@ | ||
github.com/hugomods/images v0.8.0 h1:rsI+Akwbz+Vd3mI0leAlCD8R696usHw13nH972mTe4E= | ||
github.com/hugomods/images v0.8.0/go.mod h1:U6Gwj16LKvk66rOMyGFrnF6f0aV8lT89lqOsckOAjYY= | ||
github.com/willfaught/paige v0.71.2 h1:hH7Pmratgecp2+NzbSi0fuHhi1MBXPBlRECEnTGmEcA= | ||
github.com/willfaught/paige v0.71.2/go.mod h1:0Nt8ifl7UVYQIBaMtpZmg+BrQHHzFNqKcrBoA2Oo4/E= |
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,112 @@ | ||
baseurl = "https://github.com/davidasberg/cubes_traveller" | ||
enablerobotstxt = true | ||
languagecode = "en-us" | ||
paginate = 50 | ||
timezone = "Europe/Stockholm" | ||
titlecasestyle = "Go" | ||
|
||
[languages.en] | ||
title = "Cube's Traveller" | ||
weight = 10 | ||
|
||
[[languages.en.menu.main]] | ||
identifier = "home" | ||
name = "Home" | ||
url = "/" | ||
weight = 10 | ||
|
||
[[languages.en.menu.main]] | ||
identifier = "team" | ||
name = "Team" | ||
url = "/team/" | ||
weight = 20 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "content" | ||
# name = "Content" | ||
# url = "/content/" | ||
# weight = 30 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "layouts" | ||
# name = "Layouts" | ||
# url = "/layouts/" | ||
# weight = 30 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "shortcodes" | ||
# name = "Shortcodes" | ||
# url = "/shortcodes/" | ||
# weight = 40 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "customization" | ||
# name = "Customization" | ||
# url = "/customization/" | ||
# weight = 50 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "authors" | ||
# name = "Authors" | ||
# url = "/authors/" | ||
# weight = 60 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "series" | ||
# name = "Series" | ||
# url = "/series/" | ||
# weight = 70 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "categories" | ||
# name = "Categories" | ||
# url = "/categories/" | ||
# weight = 80 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "tags" | ||
# name = "Tags" | ||
# url = "/tags/" | ||
# weight = 90 | ||
|
||
# [[languages.en.menu.main]] | ||
# identifier = "search" | ||
# name = "Search" | ||
# url = "/search/" | ||
# weight = 100 | ||
|
||
[markup.goldmark.renderer] | ||
unsafe = true | ||
|
||
[markup.highlight] | ||
noclasses = false | ||
|
||
[markup.tableofcontents] | ||
endlevel = 6 | ||
ordered = true | ||
startlevel = 2 | ||
|
||
[[module.imports]] | ||
path = "github.com/willfaught/paige" | ||
|
||
[[module.imports]] | ||
path = 'github.com/hugomods/images' | ||
disable = false | ||
|
||
[outputs] | ||
home = ["atom", "html", "json", "rss"] | ||
section = ["atom", "html", "rss"] | ||
taxonomy = ["atom", "html", "rss"] | ||
term = ["atom", "html", "rss"] | ||
|
||
|
||
[params.paige.file_link] | ||
content = "Edit this page" | ||
disable = true | ||
url = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" | ||
|
||
[taxonomies] | ||
author = "authors" | ||
category = "categories" | ||
series = "series" | ||
tag = "tags" |
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,3 @@ | ||
{{ define "main" }} | ||
<h1 class="display-5 fw-bold text-center">Not Found</h1> | ||
{{ end }} |
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 @@ | ||
{{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}} | ||
{{- $target := partial "paige/target.html" (dict "page" .Page "url" .Destination) -}} | ||
{{- $targetattr := cond ($target | not | not) (printf ` target="%s"` $target) "" -}} | ||
{{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}} | ||
|
||
{{- printf `<a%s%s%s>%s</a>` $href $targetattr $title .Text | safeHTML -}} |
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,39 @@ | ||
{{ $page := . }} | ||
|
||
<!doctype html> | ||
{{ partial "paige/html.html" $page }} | ||
{{ partial "paige/head.html" $page }} | ||
{{ partial "paige/body.html" $page }} | ||
{{ if templates.Exists "partials/paige/body-first.html" }} | ||
{{ partial "paige/body-first.html" $page }} | ||
{{ end }} | ||
|
||
<div class="container flex-fill" id="paige-root"> | ||
<div class="row"> | ||
<div class="col"> | ||
{{ partial "paige/header.html" $page }} | ||
|
||
<main class="mt-3" id="paige-main"> | ||
{{ if templates.Exists "partials/paige/main-first.html" }} | ||
{{ partial "paige/main-first.html" $page }} | ||
{{ end }} | ||
|
||
{{ block "main" $page }}{{ end }} | ||
|
||
{{ if templates.Exists "partials/paige/main-last.html" }} | ||
{{ partial "paige/main-last.html" $page }} | ||
{{ end }} | ||
</main> | ||
|
||
{{ partial "paige/footer.html" $page }} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{ partial "paige/scripts.html" $page }} | ||
|
||
{{ if templates.Exists "partials/paige/body-last.html" }} | ||
{{ partial "paige/body-last.html" $page }} | ||
{{ end }} | ||
</body> | ||
</html> |
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 @@ | ||
{{ define "main" }} | ||
{{ $page := . }} | ||
|
||
{{ partial "paige/article.html" $page }} | ||
{{ partial "paige/pages.html" $page }} | ||
{{ end }} |
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,17 @@ | ||
{{- $page := . -}} | ||
|
||
{{- $page.Scratch.Add "paige_index" slice -}} | ||
|
||
{{- range where site.RegularPages "Params.paige.search.hide_page" "ne" true -}} | ||
{{- $page.Scratch.Add "paige_index" (dict | ||
"categories" .Params.categories | ||
"date" .PublishDate | ||
"description" (.Description | markdownify | plainify | htmlUnescape) | ||
"keywords" .Params.keywords | ||
"link" .RelPermalink | ||
"tags" .Params.tags | ||
"text" (strings.TrimRight " " (replace (.Plain | htmlUnescape) "\n" " ")) | ||
"title" (.Title | markdownify | plainify | htmlUnescape)) -}} | ||
{{- end -}} | ||
|
||
{{- $page.Scratch.Get "paige_index" | jsonify -}} |
Oops, something went wrong.