Skip to content

Commit 6b07eb2

Browse files
Add GitHub Actions workflow and welcome post
1 parent 7073288 commit 6b07eb2

5 files changed

Lines changed: 168 additions & 1 deletion

File tree

.DS_Store

6 KB
Binary file not shown.

.github/workflows/deploy.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Deploy Hugo site to Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
env:
33+
HUGO_VERSION: 0.152.2
34+
steps:
35+
- name: Install Hugo CLI
36+
run: |
37+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
38+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39+
- name: Install Dart Sass
40+
run: sudo snap install dart-sass
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
with:
44+
submodules: recursive
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v5
48+
- name: Install Node.js dependencies
49+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
50+
- name: Build with Hugo
51+
env:
52+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
53+
HUGO_ENVIRONMENT: production
54+
TZ: America/Los_Angeles
55+
run: |
56+
hugo \
57+
--gc \
58+
--minify \
59+
--baseURL "${{ steps.pages.outputs.base_url }}/"
60+
- name: Upload artifact
61+
uses: actions/upload-pages-artifact@v3
62+
with:
63+
path: ./public
64+
65+
# Deployment job
66+
deploy:
67+
environment:
68+
name: github-pages
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v4

.hugo_build.lock

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: "Welcome to Natural Function"
3+
date: 2025-11-03T21:45:00-06:00
4+
description: "Welcome to my new Hugo blog powered by the Stack theme"
5+
categories: ["General"]
6+
tags: ["welcome", "hugo", "blog"]
7+
---
8+
9+
# Welcome to Natural Function!
10+
11+
This is my new blog built with Hugo and the Stack theme, automatically deployed to GitHub Pages.
12+
13+
## What's Next?
14+
15+
I can now:
16+
- Write posts in Markdown
17+
- Push to GitHub for automatic deployment
18+
- Customize the theme as needed
19+
- Add new content easily
20+
21+
The Stack theme provides a clean, modern design with great features like:
22+
- Responsive layout
23+
- Search functionality
24+
- Tag and category organization
25+
- Fast loading times
26+
27+
Looking forward to sharing more content here!

public/sitemap.xml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://naturalfunction.github.io/p/hello-world/</loc><lastmod>2022-03-06T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/categories/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/css/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/html/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/markdown/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/p/markdown-syntax-guide/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/post/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/categories/syntax/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/categories/themes/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/themes/</loc><lastmod>2023-09-07T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/p/image-gallery/</loc><lastmod>2023-08-26T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/p/shortcodes/</loc><lastmod>2023-08-25T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/p/math-typesetting/</loc><lastmod>2023-08-24T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/archives/</loc><lastmod>2022-03-06T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/categories/example-category/</loc><lastmod>2022-03-06T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/tags/example-tag/</loc><lastmod>2022-03-06T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/page/</loc><lastmod>2022-03-06T00:00:00+00:00</lastmod></url><url><loc>https://naturalfunction.github.io/links/</loc></url><url><loc>https://naturalfunction.github.io/search/</loc></url></urlset>
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4+
<url>
5+
<loc>https://naturalfunction.github.io/p/hello-world/</loc>
6+
<lastmod>2022-03-06T00:00:00+00:00</lastmod>
7+
</url><url>
8+
<loc>https://naturalfunction.github.io/</loc>
9+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
10+
</url><url>
11+
<loc>https://naturalfunction.github.io/categories/</loc>
12+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
13+
</url><url>
14+
<loc>https://naturalfunction.github.io/tags/css/</loc>
15+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
16+
</url><url>
17+
<loc>https://naturalfunction.github.io/tags/html/</loc>
18+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
19+
</url><url>
20+
<loc>https://naturalfunction.github.io/tags/markdown/</loc>
21+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
22+
</url><url>
23+
<loc>https://naturalfunction.github.io/p/markdown-syntax-guide/</loc>
24+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
25+
</url><url>
26+
<loc>https://naturalfunction.github.io/post/</loc>
27+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
28+
</url><url>
29+
<loc>https://naturalfunction.github.io/categories/syntax/</loc>
30+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
31+
</url><url>
32+
<loc>https://naturalfunction.github.io/tags/</loc>
33+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
34+
</url><url>
35+
<loc>https://naturalfunction.github.io/categories/themes/</loc>
36+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
37+
</url><url>
38+
<loc>https://naturalfunction.github.io/tags/themes/</loc>
39+
<lastmod>2023-09-07T00:00:00+00:00</lastmod>
40+
</url><url>
41+
<loc>https://naturalfunction.github.io/p/image-gallery/</loc>
42+
<lastmod>2023-08-26T00:00:00+00:00</lastmod>
43+
</url><url>
44+
<loc>https://naturalfunction.github.io/p/shortcodes/</loc>
45+
<lastmod>2023-08-25T00:00:00+00:00</lastmod>
46+
</url><url>
47+
<loc>https://naturalfunction.github.io/p/math-typesetting/</loc>
48+
<lastmod>2023-08-24T00:00:00+00:00</lastmod>
49+
</url><url>
50+
<loc>https://naturalfunction.github.io/archives/</loc>
51+
<lastmod>2022-03-06T00:00:00+00:00</lastmod>
52+
</url><url>
53+
<loc>https://naturalfunction.github.io/categories/example-category/</loc>
54+
<lastmod>2022-03-06T00:00:00+00:00</lastmod>
55+
</url><url>
56+
<loc>https://naturalfunction.github.io/tags/example-tag/</loc>
57+
<lastmod>2022-03-06T00:00:00+00:00</lastmod>
58+
</url><url>
59+
<loc>https://naturalfunction.github.io/page/</loc>
60+
<lastmod>2022-03-06T00:00:00+00:00</lastmod>
61+
</url><url>
62+
<loc>https://naturalfunction.github.io/links/</loc>
63+
</url><url>
64+
<loc>https://naturalfunction.github.io/search/</loc>
65+
</url>
66+
</urlset>

0 commit comments

Comments
 (0)