Skip to content

Commit 4aede50

Browse files
authored
Merge pull request #1 from CS-EVA-LAB/dev
Release the quick start sample
2 parents d5df5e7 + 0a6bef8 commit 4aede50

24 files changed

+1011
-0
lines changed

.github/workflows/hugo.yaml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
shell: bash
29+
30+
jobs:
31+
# Build job
32+
build:
33+
runs-on: ubuntu-latest
34+
env:
35+
HUGO_VERSION: 0.124.0
36+
steps:
37+
- name: Install Hugo CLI
38+
run: |
39+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
- name: Install Dart Sass
42+
run: sudo snap install dart-sass
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
48+
- name: Setup Pages
49+
id: pages
50+
uses: actions/configure-pages@v4
51+
- name: Install Node.js dependencies
52+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
53+
- name: Build with Hugo
54+
env:
55+
# For maximum backward compatibility with Hugo modules
56+
HUGO_ENVIRONMENT: production
57+
HUGO_ENV: production
58+
run: |
59+
hugo \
60+
--gc \
61+
--minify \
62+
--baseURL "${{ steps.pages.outputs.base_url }}/"
63+
- name: Upload artifact
64+
uses: actions/upload-pages-artifact@v3
65+
with:
66+
path: ./public
67+
68+
# Deployment job
69+
deploy:
70+
environment:
71+
name: github-pages
72+
url: ${{ steps.deployment.outputs.page_url }}
73+
runs-on: ubuntu-latest
74+
needs: build
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/ananke"]
2+
path = themes/ananke
3+
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git

.hugo_build.lock

Whitespace-only changes.

archetypes/default.md

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

content/posts/my-first-post.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+++
2+
title = 'My First Post'
3+
date = 2024-04-19T18:34:49+08:00
4+
draft = true
5+
+++
6+
## Introduction
7+
8+
This is **bold** text, and this is *emphasized* text.
9+
10+
Visit the [Hugo](https://gohugo.io) website!

hugo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
baseURL = 'https://example.org/'
2+
languageCode = 'en-us'
3+
title = 'My New Hugo Site'
4+
theme = 'ananke'

public/404.html

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
7+
<title>My New Hugo Site</title>
8+
<meta name="viewport" content="width=device-width,minimum-scale=1">
9+
<meta name="description" content="">
10+
<meta name="generator" content="Hugo 0.125.1">
11+
12+
13+
14+
15+
<meta name="robots" content="noindex, nofollow">
16+
17+
18+
19+
20+
<link rel="stylesheet" href="/ananke/css/main.min.css" >
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
<link rel="canonical" href="http://localhost:1313/404.html">
35+
36+
37+
<meta property="og:url" content="http://localhost:1313/404.html">
38+
<meta property="og:site_name" content="My New Hugo Site">
39+
<meta property="og:title" content="404 Page not found">
40+
<meta property="og:locale" content="en-us">
41+
<meta property="og:type" content="website">
42+
43+
<meta itemprop="name" content="404 Page not found"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="404 Page not found">
44+
<meta name="twitter:description" content="">
45+
46+
47+
</head>
48+
49+
<body class="ma0 avenir bg-near-white">
50+
51+
52+
53+
<header>
54+
<div class="bg-black">
55+
<nav class="pv3 ph3 ph4-ns" role="navigation">
56+
<div class="flex-l justify-between items-center center">
57+
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
58+
59+
My New Hugo Site
60+
61+
</a>
62+
<div class="flex-l items-center">
63+
64+
65+
66+
67+
<div class="ananke-socials">
68+
69+
</div>
70+
71+
</div>
72+
</div>
73+
</nav>
74+
75+
</div>
76+
</header>
77+
78+
79+
<main class="pb7" role="main">
80+
81+
<article class="center cf pv5 measure-wide-l">
82+
<h1>
83+
This is not the page you were looking for
84+
</h1>
85+
</article>
86+
87+
</main>
88+
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
89+
<div class="flex justify-between">
90+
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost:1313/" >
91+
&copy; My New Hugo Site 2024
92+
</a>
93+
<div>
94+
<div class="ananke-socials">
95+
96+
</div>
97+
</div>
98+
</div>
99+
</footer>
100+
101+
</body>
102+
</html>

public/ananke/css/main.css.map

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/ananke/css/main.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/categories/index.html

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
7+
<title>My New Hugo Site</title>
8+
<meta name="viewport" content="width=device-width,minimum-scale=1">
9+
<meta name="description" content="">
10+
<meta name="generator" content="Hugo 0.125.1">
11+
12+
13+
14+
15+
<meta name="robots" content="noindex, nofollow">
16+
17+
18+
19+
20+
<link rel="stylesheet" href="/ananke/css/main.min.css" >
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
<link href="/categories/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Site" />
34+
<link href="/categories/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Site" />
35+
36+
37+
38+
39+
<link rel="canonical" href="http://localhost:1313/categories/">
40+
41+
42+
<meta property="og:url" content="http://localhost:1313/categories/">
43+
<meta property="og:site_name" content="My New Hugo Site">
44+
<meta property="og:title" content="Categories">
45+
<meta property="og:locale" content="en-us">
46+
<meta property="og:type" content="website">
47+
48+
<meta itemprop="name" content="Categories"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="Categories">
49+
<meta name="twitter:description" content="">
50+
51+
52+
</head>
53+
54+
<body class="ma0 avenir bg-near-white">
55+
56+
57+
58+
<header>
59+
<div class="pb3-m pb6-l bg-black">
60+
<nav class="pv3 ph3 ph4-ns" role="navigation">
61+
<div class="flex-l justify-between items-center center">
62+
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
63+
64+
My New Hugo Site
65+
66+
</a>
67+
<div class="flex-l items-center">
68+
69+
70+
71+
72+
<div class="ananke-socials">
73+
74+
</div>
75+
76+
</div>
77+
</div>
78+
</nav>
79+
80+
<div class="tc-l pv3 ph3 ph4-ns">
81+
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
82+
Categories
83+
</h1>
84+
85+
</div>
86+
</div>
87+
</header>
88+
89+
90+
<main class="pb7" role="main">
91+
92+
93+
<article class="cf pa3 pa4-m pa4-l">
94+
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links mid-gray">
95+
96+
</div>
97+
</article>
98+
<div class="mw8 center">
99+
<section class="ph4">
100+
101+
</section>
102+
</div>
103+
104+
</main>
105+
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
106+
<div class="flex justify-between">
107+
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://localhost:1313/" >
108+
&copy; My New Hugo Site 2024
109+
</a>
110+
<div>
111+
<div class="ananke-socials">
112+
113+
</div>
114+
</div>
115+
</div>
116+
</footer>
117+
118+
</body>
119+
</html>

public/categories/index.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on My New Hugo Site</title>
5+
<link>http://localhost:1313/categories/</link>
6+
<description>Recent content in Categories on My New Hugo Site</description>
7+
<generator>Hugo 0.125.1</generator>
8+
<language>en-us</language>
9+
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
10+
</channel>
11+
</rss>
Loading

0 commit comments

Comments
 (0)