Skip to content

Commit 8ec6ffc

Browse files
committed
added homepage using hugo papermod
1 parent 7ae95b3 commit 8ec6ffc

File tree

8 files changed

+191
-0
lines changed

8 files changed

+191
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish to GH Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
deploy:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
19+
- name: Checkout destination
20+
uses: actions/checkout@v3
21+
if: github.ref == 'refs/heads/main'
22+
with:
23+
ref: gh-pages
24+
path: built-site
25+
26+
- name: Setup Hugo
27+
run: |
28+
curl -L -o /tmp/hugo.tar.gz 'https://github.com/gohugoio/hugo/releases/download/v0.140.2/hugo_extended_0.140.2_linux-amd64.tar.gz'
29+
tar -C ${RUNNER_TEMP} -zxvf /tmp/hugo.tar.gz hugo
30+
- name: Build
31+
run: ${RUNNER_TEMP}/hugo
32+
33+
- name: Deploy
34+
if: github.ref == 'refs/heads/main'
35+
run: |
36+
cp -R public/* ${GITHUB_WORKSPACE}/built-site/
37+
cd ${GITHUB_WORKSPACE}/built-site
38+
git add .
39+
git config user.name 'Alan Davide Bovo'
40+
git config user.email '[email protected]'
41+
git commit -m 'Updated site'
42+
git push

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
25+
/public
26+
.DS_Store
27+
.hugo_build.lock
28+
resources/_gen/

.gitmodules

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

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+
---

assets/logo.ico

37.2 KB
Binary file not shown.

assets/logo.png

15.3 KB
Loading

hugo.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
baseURL: https://pascalctf.it/
2+
languageCode: en-us
3+
title: PascalCTF
4+
theme: "PaperMod"
5+
6+
enableRobotsTXT: true
7+
buildDrafts: false
8+
buildFuture: false
9+
buildExpired: false
10+
11+
minify:
12+
disableXML: true
13+
minifyOutput: true
14+
15+
params:
16+
env: production # to enable google analytics, opengraph, twitter-cards and schema.
17+
title: PascalCTF
18+
description: "PascalCTF is a Capture The Flag (CTF) competition organized by the team Paolo."
19+
keywords: [Blog, CTF, Capture The Flag, Paolo, PascalCTF]
20+
# author: PascalCTF
21+
# images: ["<link or path of image for opengraph, twitter-cards>"]
22+
DateFormat: "January 2, 2006"
23+
defaultTheme: auto # dark, light
24+
disableThemeToggle: false
25+
26+
ShowReadingTime: true
27+
ShowShareButtons: true
28+
ShowPostNavLinks: true
29+
ShowBreadCrumbs: true
30+
ShowCodeCopyButtons: false
31+
ShowWordCount: true
32+
ShowRssButtonInSectionTermList: true
33+
UseHugoToc: true
34+
disableSpecial1stPost: false
35+
disableScrollToTop: false
36+
comments: false
37+
hidemeta: false
38+
hideSummary: false
39+
showtoc: false
40+
tocopen: false
41+
42+
assets:
43+
# disableHLJS: true # to disable highlight.js
44+
# disableFingerprinting: true
45+
favicon: "/assets/logo.ico"
46+
47+
label:
48+
text: "Home"
49+
icon: /apple-touch-icon.png
50+
iconHeight: 35
51+
52+
# profile-mode
53+
profileMode:
54+
enabled: true # needs to be explicitly set
55+
title: PascalCTF
56+
subtitle: "PascalCTF is a Capture The Flag (CTF) competition organized by the team Paolo."
57+
imageUrl: "/logo.png"
58+
imageWidth: 250
59+
imageHeight: 250
60+
# imageTitle: "PascalCTF"
61+
62+
socialIcons:
63+
- name: ctftime
64+
url: "https://ctftime.org/team/263145"
65+
- name: github
66+
url: "https://github.com/PascalCTF"
67+
- name: discord
68+
url: "https://discord.com/invite/5rbB4CFeAd"
69+
70+
# analytics:
71+
# google:
72+
# SiteVerificationTag: "XYZabc"
73+
# bing:
74+
# SiteVerificationTag: "XYZabc"
75+
# yandex:
76+
# SiteVerificationTag: "XYZabc"
77+
78+
cover:
79+
hidden: true # hide everywhere but not in structured data
80+
hiddenInList: true # hide on list pages and home
81+
hiddenInSingle: true # hide on single page
82+
83+
editPost:
84+
URL: "https://github.com/PascalCTF/PascalCTF.github.io"
85+
Text: "Suggest Changes" # edit text
86+
appendFilePath: true # to append file path to Edit link
87+
88+
# for search
89+
# https://fusejs.io/api/options.html
90+
fuseOpts:
91+
isCaseSensitive: false
92+
shouldSort: true
93+
location: 0
94+
distance: 1000
95+
threshold: 0.4
96+
minMatchCharLength: 0
97+
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
98+
keys: ["title", "permalink", "summary", "content"]
99+
menu:
100+
main:
101+
- identifier: Members
102+
name: Members 🖥️
103+
url: /members/
104+
weight: 10
105+
- identifier: Sponsors
106+
name: Sponsors ❤️
107+
url: /sponsors/
108+
weight: 20
109+
# - identifier: CTFtime
110+
# name: CTFtime
111+
# url: https://ctftime.org/team/263145
112+
# weight: 30

themes/PaperMod

Submodule PaperMod added at 9f1f414

0 commit comments

Comments
 (0)