Skip to content

Commit 9a7d74d

Browse files
committed
update 404
1 parent 4a4d216 commit 9a7d74d

File tree

21 files changed

+162
-160
lines changed

21 files changed

+162
-160
lines changed

.github/workflows/hugo.yml

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

public/404.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr" class="scroll-smooth" data-default-appearance="dark"
3-
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
3+
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=52897&amp;path=livereload" data-no-instant defer></script>
44
<meta charset="utf-8" />
55

66
<meta http-equiv="content-language" content="en" />
@@ -15,7 +15,7 @@
1515

1616

1717

18-
<link rel="canonical" href="http://localhost:1313/404.html" />
18+
<link rel="canonical" href="http://localhost:52897/404.html" />
1919

2020

2121

@@ -63,7 +63,7 @@
6363
<meta property="og:title" content="404 Page not found" />
6464
<meta property="og:description" content="" />
6565
<meta property="og:type" content="website" />
66-
<meta property="og:url" content="http://localhost:1313/404.html" />
66+
<meta property="og:url" content="http://localhost:52897/404.html" />
6767

6868
<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="404 Page not found"/>
6969
<meta name="twitter:description" content=""/>
@@ -450,7 +450,7 @@ <h1 class="mb-3 text-4xl font-extrabold">Page Not Found 😕</h1>
450450
<div
451451
id="search-wrapper"
452452
class="invisible fixed inset-0 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]"
453-
data-url="http://localhost:1313/"
453+
data-url="http://localhost:52897/"
454454
style="z-index:500"
455455
>
456456
<div

public/about/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr" class="scroll-smooth" data-default-appearance="dark"
3-
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
3+
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=52897&amp;path=livereload" data-no-instant defer></script>
44
<meta charset="utf-8" />
55

66
<meta http-equiv="content-language" content="en" />
@@ -15,7 +15,7 @@
1515

1616

1717

18-
<link rel="canonical" href="http://localhost:1313/about/" />
18+
<link rel="canonical" href="http://localhost:52897/about/" />
1919

2020

2121

@@ -63,7 +63,7 @@
6363
<meta property="og:title" content="About" />
6464
<meta property="og:description" content="An independent security researcher & developer auditing smart contracts for a living." />
6565
<meta property="og:type" content="article" />
66-
<meta property="og:url" content="http://localhost:1313/about/" /><meta property="article:section" content="" />
66+
<meta property="og:url" content="http://localhost:52897/about/" /><meta property="article:section" content="" />
6767
<meta property="article:published_time" content="2024-08-04T00:00:00+00:00" />
6868
<meta property="article:modified_time" content="2024-08-04T00:00:00+00:00" />
6969

@@ -81,7 +81,7 @@
8181

8282
"abstract": "An independent security researcher \u0026 developer auditing smart contracts for a living.",
8383
"inLanguage": "en",
84-
"url" : "http:\/\/localhost:1313\/about\/",
84+
"url" : "http:\/\/localhost:52897\/about\/",
8585
"author" : {
8686
"@type": "Person",
8787
"name": "Aditya"
@@ -532,7 +532,7 @@ <h4> <ins>Quotes I Like</ins>
532532
<div
533533
id="search-wrapper"
534534
class="invisible fixed inset-0 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]"
535-
data-url="http://localhost:1313/"
535+
data-url="http://localhost:52897/"
536536
style="z-index:500"
537537
>
538538
<div

public/authors/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr" class="scroll-smooth" data-default-appearance="dark"
3-
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
3+
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=52897&amp;path=livereload" data-no-instant defer></script>
44
<meta charset="utf-8" />
55

66
<meta http-equiv="content-language" content="en" />
@@ -15,7 +15,7 @@
1515

1616

1717

18-
<link rel="canonical" href="http://localhost:1313/authors/" />
18+
<link rel="canonical" href="http://localhost:52897/authors/" />
1919

2020
<link rel="alternate" type="application/rss+xml" href="/authors/index.xml" title="0xAdra" />
2121

@@ -65,7 +65,7 @@
6565
<meta property="og:title" content="Authors" />
6666
<meta property="og:description" content="" />
6767
<meta property="og:type" content="website" />
68-
<meta property="og:url" content="http://localhost:1313/authors/" />
68+
<meta property="og:url" content="http://localhost:52897/authors/" />
6969

7070
<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Authors"/>
7171
<meta name="twitter:description" content=""/>
@@ -502,7 +502,7 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">Auth
502502
<div
503503
id="search-wrapper"
504504
class="invisible fixed inset-0 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]"
505-
data-url="http://localhost:1313/"
505+
data-url="http://localhost:52897/"
506506
style="z-index:500"
507507
>
508508
<div

public/authors/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>Authors on 0xAdra</title>
5-
<link>http://localhost:1313/authors/</link>
5+
<link>http://localhost:52897/authors/</link>
66
<description>Recent content in Authors on 0xAdra</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
99
<copyright>0xAdra ©2024</copyright>
10-
<atom:link href="http://localhost:1313/authors/index.xml" rel="self" type="application/rss+xml" />
10+
<atom:link href="http://localhost:52897/authors/index.xml" rel="self" type="application/rss+xml" />
1111
</channel>
1212
</rss>

public/blogs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr" class="scroll-smooth" data-default-appearance="dark"
3-
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
3+
data-auto-appearance="true"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=52897&amp;path=livereload" data-no-instant defer></script>
44
<meta charset="utf-8" />
55

66
<meta http-equiv="content-language" content="en" />
@@ -15,7 +15,7 @@
1515

1616

1717

18-
<link rel="canonical" href="http://localhost:1313/blogs/" />
18+
<link rel="canonical" href="http://localhost:52897/blogs/" />
1919

2020
<link rel="alternate" type="application/rss+xml" href="/blogs/index.xml" title="0xAdra" />
2121

@@ -65,7 +65,7 @@
6565
<meta property="og:title" content="Blogs" />
6666
<meta property="og:description" content="" />
6767
<meta property="og:type" content="website" />
68-
<meta property="og:url" content="http://localhost:1313/blogs/" />
68+
<meta property="og:url" content="http://localhost:52897/blogs/" />
6969

7070
<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Blogs"/>
7171
<meta name="twitter:description" content=""/>
@@ -713,7 +713,7 @@ <h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutra
713713
<div
714714
id="search-wrapper"
715715
class="invisible fixed inset-0 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]"
716-
data-url="http://localhost:1313/"
716+
data-url="http://localhost:52897/"
717717
style="z-index:500"
718718
>
719719
<div

public/blogs/index.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>Blogs on 0xAdra</title>
5-
<link>http://localhost:1313/blogs/</link>
5+
<link>http://localhost:52897/blogs/</link>
66
<description>Recent content in Blogs on 0xAdra</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
99
<copyright>0xAdra ©2024</copyright>
10-
<lastBuildDate>Fri, 15 Nov 2024 01:27:18 +0530</lastBuildDate><atom:link href="http://localhost:1313/blogs/index.xml" rel="self" type="application/rss+xml" />
10+
<lastBuildDate>Fri, 15 Nov 2024 01:27:18 +0530</lastBuildDate><atom:link href="http://localhost:52897/blogs/index.xml" rel="self" type="application/rss+xml" />
1111
<item>
1212
<title>The Pivot Year</title>
13-
<link>http://localhost:1313/blogs/the-pivot-year/</link>
13+
<link>http://localhost:52897/blogs/the-pivot-year/</link>
1414
<pubDate>Fri, 15 Nov 2024 01:27:18 +0530</pubDate>
1515

16-
<guid>http://localhost:1313/blogs/the-pivot-year/</guid>
16+
<guid>http://localhost:52897/blogs/the-pivot-year/</guid>
1717
<description>Author : Brianna Wiest</description>
18-
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/blogs/the-pivot-year/featured.jpg" />
18+
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:52897/blogs/the-pivot-year/featured.jpg" />
1919
</item>
2020

2121
<item>
2222
<title>The War of Art</title>
23-
<link>http://localhost:1313/blogs/the-war-of-art/</link>
23+
<link>http://localhost:52897/blogs/the-war-of-art/</link>
2424
<pubDate>Sun, 04 Aug 2024 22:26:37 +0530</pubDate>
2525

26-
<guid>http://localhost:1313/blogs/the-war-of-art/</guid>
26+
<guid>http://localhost:52897/blogs/the-war-of-art/</guid>
2727
<description>Author : Steven Pressfield</description>
28-
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/blogs/the-war-of-art/featured.jpg" />
28+
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:52897/blogs/the-war-of-art/featured.jpg" />
2929
</item>
3030

3131
</channel>

public/blogs/page/1/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>http://localhost:1313/blogs/</title>
5-
<link rel="canonical" href="http://localhost:1313/blogs/">
4+
<title>http://localhost:52897/blogs/</title>
5+
<link rel="canonical" href="http://localhost:52897/blogs/">
66
<meta name="robots" content="noindex">
77
<meta charset="utf-8">
8-
<meta http-equiv="refresh" content="0; url=http://localhost:1313/blogs/">
8+
<meta http-equiv="refresh" content="0; url=http://localhost:52897/blogs/">
99
</head>
1010
</html>

0 commit comments

Comments
 (0)