diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..cbf80ec
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,60 @@
+name: Deploy Hugo site to Pages
+
+on:
+ push:
+ branches: ["main"]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: true
+
+defaults:
+ run:
+ shell: bash
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ env:
+ HUGO_VERSION: 0.102.3
+ steps:
+ - name: Install Hugo CLI
+ run: |
+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: recursive
+ - name: Setup Pages
+ id: pages
+ uses: actions/configure-pages@v2
+ - name: Build with Hugo
+ env:
+ HUGO_ENVIRONMENT: production
+ HUGO_ENV: production
+ run: |
+ hugo \
+ --minify \
+ --baseURL "${{ steps.pages.outputs.base_url }}/"
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v1
+ with:
+ path: ./public
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v1
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..89af1b0
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "themes/PaperMod"]
+ path = themes/PaperMod
+ url = https://github.com/adityatelange/hugo-PaperMod.git
diff --git a/.hugo_build.lock b/.hugo_build.lock
new file mode 100644
index 0000000..e69de29
diff --git a/CNAME b/CNAME
new file mode 100644
index 0000000..c9faa4e
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+blog.duckz.org
\ No newline at end of file
diff --git a/config.yaml b/config.yaml
new file mode 100644
index 0000000..ecf940f
--- /dev/null
+++ b/config.yaml
@@ -0,0 +1,112 @@
+baseURL: https://blog.duckz.org
+disablePathToLower: true
+languageCode: en-us
+title: DuckDynasty Blog
+theme: PaperMod
+
+googleAnalytics: G-W5MMZ6FK4P
+
+enableRobotsTXT: true
+buildDrafts: true
+buildFuture: false
+buildExpired: false
+
+params:
+ env: production
+
+ title: "DuckDynasty"
+ description: "Cheesing CTF challenges across the world."
+ keywords: [Blog, Cybersecurity, Hacking, Programming, HackTheBox]
+ author: Us
+
+ DateFormat: "January 2, 2006"
+
+ defaultTheme: dark
+ disableThemeToggle: false
+
+ ShowReadingTime: true
+ ShowShareButtons: true
+ ShareButtons: ["linkedin", "twitter"]
+
+ ShowPostNavLinks: true
+ ShowBreadCrumbs: true
+ ShowCodeCopyButtons: true
+ ShowWordCount: true
+ ShowRssButtonInSectionTermList: true
+ UseHugoToc: true
+ disableSpecial1stPost: false
+ disableScrollToTop: false
+ comments: false
+ hidemeta: false
+ hideSummary: true
+ showtoc: false
+ tocopen: false
+
+ label:
+ text: "Home"
+
+ profileMode:
+ enabled: true # needs to be explicitly set
+
+ socialIcons:
+ - name: github
+ url: "https://github.com/duckz-org"
+ - name: hackthebox
+ url: "https://app.hackthebox.com/teams/overview/5313"
+ - name: ctftime
+ url: "https://ctftime.org/team/228090"
+
+ cover:
+ hidden: true # hide everywhere but not in structured data
+ hiddenInList: true # hide on list pages and home
+ hiddenInSingle: false # hide on single page
+
+ # editPost:
+ # URL: "https://github.com/daanbreur/blog/content"
+ # Text: "Suggest Changes" # edit text
+ # appendFilePath: true # to append file path to Edit link
+
+ fuseOpts:
+ isCaseSensitive: false
+ shouldSort: true
+ location: 0
+ distance: 1000
+ threshold: 0.4
+ minMatchCharLength: 0
+ keys: ["title", "permalink", "summary", "content"]
+
+menu:
+ main:
+ - identifier: posts
+ name: Posts
+ url: /post/
+ weight: 10
+ - identifier: search
+ name: Search
+ url: /search/
+ weight: 20
+ - identifier: categories
+ name: Categories
+ url: /categories/
+ weight: 30
+ - identifier: tags
+ name: Tags
+ url: /tags/
+ weight: 40
+
+# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
+pygmentsUseClasses: true
+markup:
+ highlight:
+ noClasses: false
+ # anchorLineNos: true
+ # codeFences: true
+ # guessSyntax: true
+ lineNos: true
+ # style: monokai
+
+outputs:
+ home:
+ - HTML
+ - RSS
+ - JSON
diff --git a/content/search.md b/content/search.md
new file mode 100644
index 0000000..3485151
--- /dev/null
+++ b/content/search.md
@@ -0,0 +1,6 @@
+---
+title: "Search"
+layout: "search"
+summary: "search"
+placeholder: "Search here for the best articles"
+---
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..b749725
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,58 @@
+{{- define "main" }}
+
+
+ {{ .Title }}
+ {{- if .Draft }} [draft]{{- end }}
+
+ {{- if .Description }}
+
+
+
{{ .Get "summary" | markdownify }}
+ {{ .Inner | markdownify }}
+
+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}
+ {{- end }} +