Skip to content

Commit fbfc25e

Browse files
committed
Initial commit
1 parent 6d76b38 commit fbfc25e

33 files changed

+1860
-1
lines changed

.github/workflows/hugo.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches:
8+
- main
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
# Default to bash
26+
defaults:
27+
run:
28+
# GitHub-hosted runners automatically enable `set -eo pipefail` for Bash shells.
29+
shell: bash
30+
31+
jobs:
32+
# Build job
33+
build:
34+
runs-on: ubuntu-latest
35+
env:
36+
# DART_SASS_VERSION: 1.89.2
37+
# HUGO_VERSION: 0.148.0
38+
HUGO_VERSION: 0.142.0
39+
HUGO_ENVIRONMENT: production
40+
TZ: America/Los_Angeles
41+
steps:
42+
- name: Install Hugo CLI
43+
run: |
44+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
45+
sudo dpkg -i ${{ runner.temp }}/hugo.deb
46+
# - name: Install Dart Sass
47+
# run: |
48+
# wget -O ${{ runner.temp }}/dart-sass.tar.gz https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
49+
# tar -xf ${{ runner.temp }}/dart-sass.tar.gz --directory ${{ runner.temp }}
50+
# mv ${{ runner.temp }}/dart-sass/ /usr/local/bin
51+
# echo "/usr/local/bin/dart-sass" >> $GITHUB_PATH
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
with:
55+
submodules: recursive
56+
fetch-depth: 0
57+
- name: Setup Pages
58+
id: pages
59+
uses: actions/configure-pages@v5
60+
- name: Install Node.js dependencies
61+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
62+
- name: Cache Restore
63+
id: cache-restore
64+
uses: actions/cache/restore@v4
65+
with:
66+
path: |
67+
${{ runner.temp }}/hugo_cache
68+
key: hugo-${{ github.run_id }}
69+
restore-keys:
70+
hugo-
71+
- name: Configure Git
72+
run: git config core.quotepath false
73+
- name: Build with Hugo
74+
run: |
75+
hugo \
76+
--gc \
77+
--minify \
78+
--baseURL "${{ steps.pages.outputs.base_url }}/" \
79+
--cacheDir "${{ runner.temp }}/hugo_cache"
80+
- name: Cache Save
81+
id: cache-save
82+
uses: actions/cache/save@v4
83+
with:
84+
path: |
85+
${{ runner.temp }}/hugo_cache
86+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
87+
- name: Upload artifact
88+
uses: actions/upload-pages-artifact@v3
89+
with:
90+
path: ./public
91+
92+
# Deployment job
93+
deploy:
94+
environment:
95+
name: github-pages
96+
url: ${{ steps.deployment.outputs.page_url }}
97+
runs-on: ubuntu-latest
98+
needs: build
99+
steps:
100+
- name: Deploy to GitHub Pages
101+
id: deployment
102+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# .gitignore
2+
3+
public/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/risotto"]
2+
path = themes/risotto
3+
url = https://github.com/joeroe/risotto.git

.hugo_build.lock

Whitespace-only changes.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# kraker.github.io
2-
My minimalist personal site built in Hugo and hosted on GitHub Pages.
2+
3+
My minimalist personal site built in [Hugo](https://gohugo.io) and hosted on
4+
GitHub Pages.

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

content/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Alex Kraker
3+
---
4+
5+

content/about/head-shot-2.jpg

388 KB
Loading

content/about/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "About"
3+
draft: false
4+
---
5+
6+
## Me in 10 Seconds
7+
8+
* **Name:** Alex Kraker
9+
* **Age:** 40
10+
* **Occupation:** Cloud Security Engineer
11+
* **Employer:** Insight Global - Contractor @ [Peraton](https://www.peraton.com/)
12+
* **Location:** Tulsa, OK
13+
* **Dependents:** 1 dog _"Feather"_
14+
* **Hobbies & interests:** Piano, violin/fiddle, hiking, camping, tech,
15+
learning, Linux, open-source
16+
17+
<!--
18+
## Me in 60 Seconds
19+
20+
## Me in 5 minutes
21+
-->

content/blog/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Blog
3+
author: Alex Kraker
4+
description: Blog posts about various things, mostly tech
5+
---

0 commit comments

Comments
 (0)