-
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
Showing
24 changed files
with
380 additions
and
1 deletion.
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,14 @@ | ||
--- | ||
# from https://github.com/goreleaser/nfpm/blob/main/.github/dependabot.yml | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" |
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,82 @@ | ||
# Workflow for building and deploying a Hugo site to GitHub Pages from https://gohugo.io/hosting-and-deployment/hosting-on-github/ | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# 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.126.1 | ||
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 | ||
# disabled since not used for this site | ||
#- name: Install Dart Sass | ||
# run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
# disabled since not used for this site | ||
#- 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 | ||
TZ: America/Los_Angeles | ||
run: | | ||
hugo \ | ||
--gc \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
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@v4 | ||
|
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 @@ | ||
out/ | ||
public/ | ||
.hugo_build.lock |
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 @@ | ||
[submodule "themes/quint"] | ||
path = themes/quint | ||
url = https://github.com/victoriadrake/hugo-theme-quint.git |
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,86 @@ | ||
--- | ||
default_language_version: {python: python3} | ||
minimum_pre_commit_version: "1.15" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
name: Check for valid YAML syntax in repo | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_yaml.py | ||
- id: detect-private-key | ||
name: Check for existence of private key in repo | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/detect_private_key.py | ||
- id: trailing-whitespace | ||
name: Remove trailing whitespace in YAML,Bash files | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/trailing_whitespace_fixer.py | ||
files: \.(sh|yaml|yml)$ | ||
- id: end-of-file-fixer | ||
name: Ensure EOF is consistently only a newline | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/end_of_file_fixer.py | ||
files: \.(sh|yaml|yml)$ | ||
- id: mixed-line-ending | ||
name: Ensure line-ending is consistent | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/mixed_line_ending.py | ||
files: \.(sh|yaml|yml)$ | ||
- id: check-executables-have-shebangs | ||
name: Checks that non-binary executables have a proper shebang | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_executables_have_shebangs.py | ||
files: \.(sh)$ | ||
- id: check-shebang-scripts-are-executable | ||
name: Checks that scripts with shebangs are executable. | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_shebang_scripts_are_executable.py | ||
files: \.(sh)$ | ||
#- id: check-json | ||
# name: Attempts to load all json files to verify syntax. | ||
# description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_json.py | ||
# files: \.(json)$ | ||
#- id: check-toml | ||
# name: Attempts to load all toml files to verify syntax. | ||
# description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_toml.py | ||
# files: \.(toml)$ | ||
- id: check-yaml | ||
name: Attempts to load all yaml files to verify syntax. | ||
description: https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_yaml.py | ||
files: \.(yaml)$ | ||
|
||
# format yaml | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, "2", --sequence, "4", --offset, "2", --width, "88", --preserve-quotes] | ||
|
||
# run shellcheck on Bash scripts | ||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
rev: v0.10.0 | ||
hooks: | ||
- id: shellcheck | ||
|
||
# lint Dockerfile | ||
- repo: https://github.com/hadolint/hadolint | ||
rev: v2.12.1-beta | ||
hooks: | ||
- id: hadolint-docker | ||
args: ["--ignore", "DL3007"] | ||
|
||
# lint Makefile | ||
- repo: https://github.com/mrtazz/checkmake/ | ||
rev: 0.2.2 | ||
hooks: | ||
- id: checkmake | ||
files: Makefile | ||
|
||
# run semgrep on all known filetypes | ||
- repo: https://github.com/returntocorp/semgrep | ||
rev: 'v1.66.0' | ||
hooks: | ||
- id: semgrep | ||
# See https://semgrep.dev/explore to select a ruleset and copy its URL | ||
args: ['--config', 'auto', '--error', '--skip-unknown-extensions', '--quiet'] | ||
|
||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes |
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,14 @@ | ||
# CREDITS | ||
|
||
## Hugo | ||
- https://gohugo.io/getting-started/quick-start/ | ||
- https://gohugo.io/content-management/static-files/ | ||
|
||
## Hugo Theme | ||
- https://github.com/victoriadrake/hugo-theme-quint | ||
|
||
## Makefile for Hugo | ||
- https://victoria.dev/blog/a-portable-makefile-for-continuous-delivery-with-hugo-and-github-pages/ | ||
|
||
## Hugo on GitHub Pages | ||
- https://gohugo.io/hosting-and-deployment/hosting-on-github/ |
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,66 @@ | ||
# Set sane defaults for Make | ||
SHELL = bash | ||
.DELETE_ON_ERROR: | ||
MAKEFLAGS += --warn-undefined-variables | ||
MAKEFLAGS += --no-builtin-rules | ||
|
||
# Set default goal such that `make` runs `make help` | ||
.DEFAULT_GOAL := help | ||
|
||
# Build info | ||
BUILDER = $(shell whoami)@$(shell hostname) | ||
NOW = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
|
||
OPTIMIZE = find $(CURDIR)/public/ -not -path "*/static/*" \( -name '*.png' -o -name '*.jpg' -o -name '*.jpeg' -o -name '*.JPG' \) -print0 | \ | ||
xargs -0 -P8 -n2 mogrify -strip -thumbnail '1000>' | ||
|
||
|
||
OS = $(shell uname -s) | ||
ifeq ($(OS), Linux) | ||
OPENER=xdg-open | ||
else | ||
OPENER=open | ||
endif | ||
|
||
.PHONY: all pre-reqs pre-commit pre-commit-install pre-commit-run build deploy serve run clean help | ||
|
||
all: pre-reqs pre-commit clean build serve ## Default workflow | ||
|
||
pre-reqs: pre-commit-install ## Install pre-commit hooks and necessary binaries | ||
command -v hugo || brew install hugo || sudo dnf install -y hugo || sudo apt install -y hugo | ||
command -v magick || brew install imagemagick || sudo dnf install -y imagemagick || sudo apt install -y imagemagick | ||
|
||
build: ## Build website to "public" output directory | ||
hugo --gc --minify -d $(CURDIR)/public/ | ||
$(OPTIMIZE) | ||
|
||
serve: ## Run local web server | ||
$(OPENER) http://localhost:1313 | ||
hugo server --gc --minify -p 1313 --watch | ||
|
||
run: serve ## Run local web server | ||
|
||
pre-commit: pre-commit-install pre-commit-run ## Install and run pre-commit hooks | ||
|
||
pre-commit-install: ## Install pre-commit hooks and necessary binaries | ||
# shellcheck | ||
command -v shellcheck || sudo dnf install -y ShellCheck || sudo apt install -y shellcheck || brew install shellcheck | ||
# checkmake | ||
go install github.com/mrtazz/checkmake/cmd/checkmake@latest | ||
# syft | ||
command -v syft || curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin | ||
# cosign | ||
go install github.com/sigstore/cosign/cmd/cosign@latest | ||
# install and update pre-commits | ||
pre-commit install | ||
pre-commit autoupdate | ||
|
||
pre-commit-run: ## Run pre-commit hooks against all files | ||
pre-commit run --all-files | ||
# manually run the following checks since their pre-commits aren't working or don't exist | ||
|
||
clean: ## Remove any locally built files | ||
rm -rf $(CURDIR)/public/* | ||
|
||
help: ## Display help text | ||
@grep -E '^[a-zA-Z_-]+ ?:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# travels | ||
Travels and Adventures | ||
|
||
Travels and Adventures website generated using Hugo and `make`, and hosted with GitHub Pages |
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,8 @@ | ||
+++ | ||
title = 'Travels and Adventures' | ||
date = 2024-05-22 | ||
draft = false | ||
+++ | ||
|
||
Travel photos from recent trips. | ||
|
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,15 @@ | ||
--- | ||
title: "Boo-batical 2024 - Albuquerque, NM" | ||
date: "2024-05-18" | ||
draft: false | ||
description: "The sixth stop on Boo-batical 2024 - Albuquerque, New Mexico. This was our second time in ABQ, and we really enjoyed it! A bunch of tasty food, art, and history. Not to mention several great craft breweries." | ||
image: 'images/bb2024-abq.jpg' | ||
--- | ||
|
||
The sixth stop on Boo-batical 2024 - Albuquerque, New Mexico. This was our second time in ABQ, and we really enjoyed it! A bunch of tasty food, art, and history. Not to mention several great craft breweries. | ||
|
||
(Map here) | ||
|
||
![ABQ](/images/bb2024-abq.jpg) | ||
|
||
[More photos](https://photos.app.goo.gl/JyUbyATLcEB9oMN86) |
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,15 @@ | ||
--- | ||
title: "Boo-batical 2024 - Cosmic Campground, NM" | ||
date: "2024-05-13" | ||
draft: false | ||
description: "The fourth stop on Boo-batical 2024 - Cosmic Campground, NM. Cosmic Campground was the first dark sky sanctuary in North America. Sadly it was cloudy all nights we were here..." | ||
image: 'images/bb2024-cosmic-campground.JPG' | ||
--- | ||
|
||
The fourth stop on Boo-batical 2024 - Cosmic Campground, NM. Cosmic Campground was the first dark sky sanctuary in North America. Sadly it was cloudy all nights we were here... | ||
|
||
(Map here) | ||
|
||
![Cosmic Campground](/images/bb2024-cosmic-campground.JPG) | ||
|
||
[More photos](https://photos.app.goo.gl/sfaC9T3z7f5iTNtv6) |
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,15 @@ | ||
--- | ||
title: "Boo-batical 2024 - Death Valley, CA" | ||
date: "2024-05-11" | ||
draft: false | ||
description: "The second stop on Boo-batical 2024 - Death Valley, California. It's so hot here! 100F+ even in the evening. We stayed at Furnace Creek Campground." | ||
image: 'images/bb2024-death-valley.JPG' | ||
--- | ||
|
||
The second stop on Boo-batical 2024 - Death Valley, California. It's so hot here! 100F+ even in the evening. We stayed at Furnace Creek Campground. | ||
|
||
(Map here) | ||
|
||
![Death Valley](/images/bb2024-death-valley.JPG) | ||
|
||
[More photos](https://photos.app.goo.gl/zCC2MsBgEQ4KQjYC8) |
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,15 @@ | ||
--- | ||
title: "Boo-batical 2024 - Lake Tahoe, NV" | ||
date: "2024-05-11" | ||
draft: false | ||
description: "The first stop on Boo-batical 2024 - Lake Tahoe, Nevada. We stayed at the wonderful Zephyr Cove Campground and had a great time plodding around in the sand and enjoying the beautiful bright blue waters of Lake Tahoe." | ||
image: 'images/bb2024-lake-tahoe.JPG' | ||
--- | ||
|
||
The first stop on Boo-batical 2024 - Lake Tahoe, Nevada. We stayed at the wonderful Zephyr Cove Campground and had a great time plodding around in the sand and enjoying the beautiful bright blue waters of Lake Tahoe. | ||
|
||
(Map here) | ||
|
||
![Lake Tahoe](/images/bb2024-lake-tahoe.JPG) | ||
|
||
[More photos](https://photos.app.goo.gl/bpmH1qCJysec1sV17) |
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,15 @@ | ||
--- | ||
title: "Boo-batical 2024 - SE California and Arizona" | ||
date: "2024-05-12" | ||
draft: false | ||
description: "The third stop on Boo-batical 2024 - SE California and Arizona. We got overheated in Death Valley, so decided to stay at a hotel in Blythe, CA and then power through Arizona (which was also mega-hot) to allow us to camp sooner in cooler weather in western New Mexico." | ||
image: 'images/bb2024-se-california-arizona.jpg' | ||
--- | ||
|
||
The third stop on Boo-batical 2024 - SE California and Arizona. We got overheated in Death Valley, so decided to stay at a hotel in Blythe, CA and then power through Arizona (which was also mega-hot) to allow us to camp sooner in cooler weather in western New Mexico. | ||
|
||
(Map here) | ||
|
||
![SE California and Arizona](/images/bb2024-se-california-arizona.jpg) | ||
|
||
[More photos](https://photos.app.goo.gl/erRfRi84SWej6u9Z6) |
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 @@ | ||
--- | ||
title: "Boo-batical 2024 - White Sands, NM" | ||
date: "2024-05-16" | ||
draft: false | ||
description: "The fifth stop on Boo-batical 2024 - White Sands, New Mexico. We stayed at the Oliver Lee Memorial Campground, which had spectacular sunset views and was nestled up against Dog Canyon, providing much needed breeze from the increasing heat. We visited White Sands National Park near Las Cruces, but alas most of the park was closed due to a downed Air Force plane in the park boundary. We also attempted to camp at San Lorenzo Canyon afterwards, but all the good shady spots were taken. Next time! It made for great photos anyhow." | ||
image: 'images/bb2024-white-sands.jpg' | ||
--- | ||
|
||
The fifth stop on Boo-batical 2024 - White Sands, New Mexico. We stayed at the Oliver Lee Memorial Campground, which had spectacular sunset views and was nestled up against Dog Canyon, providing much needed breeze from the increasing heat. We visited White Sands National Park near Las Cruces, but alas most of the park was closed due to a downed Air Force plane in the park boundary. We also attempted to camp at San Lorenzo Canyon afterwards, but all the good shady spots were taken. Next time! It made for great photos anyhow. | ||
|
||
(Map here) | ||
|
||
![White Sands](/images/bb2024-white-sands.jpg) | ||
|
||
|
||
[More photos](https://photos.app.goo.gl/cbn9sHEG2XRc8PFe7) | ||
|
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 = 'https://travels.toozej.com' | ||
languageCode = 'en-us' | ||
title = 'Travels and Adventures' | ||
theme = 'quint' |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.