Skip to content

Commit 5daf549

Browse files
author
Hamid Haghdoost
committed
init
0 parents  commit 5daf549

File tree

127 files changed

+6301
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+6301
-0
lines changed

.github/workflows/hugo.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy Hugo site to Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches:
7+
- master
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.152.2
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+
41+
- name: Install Dart Sass
42+
run: sudo snap install dart-sass
43+
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
with:
47+
submodules: recursive
48+
fetch-depth: 0
49+
50+
- name: Setup Pages
51+
id: pages
52+
uses: actions/configure-pages@v4
53+
54+
- name: Install Node.js dependencies
55+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
56+
57+
- name: Build with Hugo
58+
env:
59+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
60+
HUGO_ENVIRONMENT: production
61+
run: |
62+
hugo \
63+
--gc \
64+
--minify \
65+
--baseURL "${{ steps.pages.outputs.base_url }}/"
66+
67+
- name: Upload artifact
68+
uses: actions/upload-pages-artifact@v3
69+
with:
70+
path: ./public
71+
72+
# Deployment job
73+
deploy:
74+
environment:
75+
name: github-pages
76+
url: ${{ steps.deployment.outputs.page_url }}
77+
runs-on: ubuntu-latest
78+
needs: build
79+
steps:
80+
- name: Deploy to GitHub Pages
81+
id: deployment
82+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Hugo build output
2+
public/
3+
resources/_gen/
4+
5+
# Hugo cache
6+
.hugo_build.lock
7+
8+
# Claude Code
9+
.claude/
10+
11+
# macOS
12+
.DS_Store
13+
14+
# Editor files
15+
.vscode/
16+
.idea/
17+
*.swp
18+
*.swo
19+
*~
20+
21+
# Temporary files
22+
*.tmp
23+
*.bak

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

content/about.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
+++
2+
title = 'About Me'
3+
date = 2025-10-29T18:20:54+01:00
4+
draft = false
5+
+++
6+
7+
Hi, my name is Hamid Haghdoost. I'm a Senior Software Developer at Fondazione Bruno Kessler (FBK) in Trento, Italy, with nearly five years of experience in web development. I focus on writing reliable, testable, and maintainable code, with expertise in PHP, Laravel, Golang, and cloud infrastructure. I hold a Master's degree in Computer Science from IASBS, where I specialized in computational linguistics and morphological segmentation for Persian language processing.
8+
9+
Currently at FBK, I design and deploy microservices on cloud platforms like DigitalOcean and Azure, manage CI/CD pipelines with GitLab CI and ArgoCD, and provision infrastructure using Terraform and Kubernetes. Previously, I was a Senior Back-end Developer at Jajiga, where I optimized high-traffic endpoints and implemented advanced caching strategies. I also co-founded Anzalifood, a successful food ordering platform in Iran, where I led product development and scaled the business.
10+
11+
Beyond work, I'm passionate about group sports like football and enjoy spending time outdoors. I'm always eager to learn, whether through podcasts or trying new sports.
12+
13+
For a more detailed overview of my experience and qualifications, feel free to <a href="https://flowcv.com/resume/g0s5o8l8mbin" target="_blank" rel="noopener noreferrer">read my CV</a>.

hugo.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
baseURL = 'https://hamcode.net/'
2+
languageCode = 'en-us'
3+
title = 'HamCode'
4+
theme = 'PaperMod'
5+
6+
[markup]
7+
[markup.goldmark]
8+
[markup.goldmark.renderer]
9+
unsafe = true
10+
11+
[params]
12+
description = "Welcome to HamCode"
13+
author = "Hamid"
14+
showReadingTime = true
15+
showShareButtons = false
16+
showPostNavLinks = true
17+
showBreadCrumbs = true
18+
showCodeCopyButtons = true
19+
comments = true
20+
21+
[params.homeInfoParams]
22+
Title = "Welcome to HamCode!"
23+
Content = "Where I share my public notes :)"
24+
25+
[params.label]
26+
text = "HamCode"
27+
icon = "/favicon.ico"
28+
iconHeight = 35
29+
30+
[params.cover]
31+
linkFullImages = true
32+
responsiveImages = true
33+
34+
[params.editPost]
35+
URL = "https://github.com/hamcodenet/hamcodenet.github.io/tree/master/content"
36+
Text = "Suggest Changes"
37+
appendFilePath = true
38+
39+
[[menu.main]]
40+
name = "About me"
41+
url = "/about/"
42+
weight = 2

layouts/partials/comments.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{{- /* Comments using giscus */ -}}
2+
<script src="https://giscus.app/client.js"
3+
data-repo="hamcodenet/hamcodenet.github.io"
4+
data-repo-id="R_kgDOQHAYpQ"
5+
data-category="General"
6+
data-category-id="DIC_kwDOQHAYpc4CxPAx"
7+
data-mapping="pathname"
8+
data-strict="0"
9+
data-reactions-enabled="1"
10+
data-emit-metadata="0"
11+
data-input-position="bottom"
12+
data-theme="preferred_color_scheme"
13+
data-lang="en"
14+
data-loading="lazy"
15+
crossorigin="anonymous"
16+
async>
17+
</script>
18+
19+
<script>
20+
// Function to get current theme from PaperMod
21+
function getTheme() {
22+
const theme = document.body.className;
23+
if (theme.includes('dark')) {
24+
return 'dark';
25+
}
26+
return 'light';
27+
}
28+
29+
// Function to send theme change message to giscus
30+
function setGiscusTheme() {
31+
const theme = getTheme();
32+
const iframe = document.querySelector('iframe.giscus-frame');
33+
if (!iframe) return;
34+
35+
iframe.contentWindow.postMessage(
36+
{ giscus: { setConfig: { theme: theme } } },
37+
'https://giscus.app'
38+
);
39+
}
40+
41+
// Watch for theme changes
42+
const observer = new MutationObserver(() => {
43+
setGiscusTheme();
44+
});
45+
46+
// Start observing body class changes
47+
observer.observe(document.body, {
48+
attributes: true,
49+
attributeFilter: ['class']
50+
});
51+
52+
// Update theme when giscus loads
53+
window.addEventListener('message', (event) => {
54+
if (event.origin !== 'https://giscus.app') return;
55+
if (!(typeof event.data === 'object' && event.data.giscus)) return;
56+
57+
// giscus is ready, set the initial theme
58+
setGiscusTheme();
59+
});
60+
</script>
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Bug Report 🐞
2+
description: Create a report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report :)
10+
- Kindly **DO NOT** ask for instructions.
11+
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any other relevant question.
12+
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
13+
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
14+
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
15+
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
16+
- type: textarea
17+
id: what_happened
18+
attributes:
19+
label: What happened?
20+
description: Also tell us, what did you expect to happen?
21+
placeholder: A bug happened! Here are the screenshots.. Tell us what you see!
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: steps_to_reproduce
26+
attributes:
27+
label: Steps to reproduce
28+
description: How to reproduce this issue. Here are the steps...
29+
placeholder: |
30+
1. Go to '...'
31+
2. Click on '....'
32+
3. Scroll down to '....'
33+
4. See error
34+
validations:
35+
required: true
36+
- type: dropdown
37+
id: hugo_version
38+
attributes:
39+
label: Hugo Version
40+
description: What version of Hugo are you running?
41+
options:
42+
- Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)
43+
- Hugo < 0.146.0 (Incompatible - Not recommended to build PaperMod on lower versions)
44+
validations:
45+
required: true
46+
- type: input
47+
id: papermod_version
48+
attributes:
49+
label: PaperMod Version
50+
description: What version of PaperMod are you running?
51+
placeholder: |
52+
PaperMod v7.0 or
53+
Branch master or
54+
Commit-id: 3f50861a0ced88f9b614a43662edeb4c0bc45da8
55+
validations:
56+
required: true
57+
- type: dropdown
58+
id: browser_type
59+
attributes:
60+
label: What kind of devices are you seeing the problem on?
61+
multiple: true
62+
options:
63+
- Mobile
64+
- Desktop
65+
validations:
66+
required: false
67+
- type: dropdown
68+
id: browsers
69+
attributes:
70+
label: What browsers are you seeing the problem on?
71+
multiple: true
72+
options:
73+
- Firefox
74+
- Chrome
75+
- Safari
76+
- Microsoft Edge
77+
validations:
78+
required: false
79+
- type: input
80+
id: browser_version
81+
attributes:
82+
label: Browser Version
83+
description: Please add browser version or enter user agent string (navigator.userAgent)
84+
placeholder: ex. Google Chrome 86.0
85+
validations:
86+
required: false
87+
- type: textarea
88+
id: logs
89+
attributes:
90+
label: Relevant log output
91+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
92+
render: shell
93+
validations:
94+
required: true
95+
- type: input
96+
id: repo_url
97+
attributes:
98+
label: Repository/Source Code link where this issue can be reproduced
99+
description: Please add url of the repository where this issue can be reproduced
100+
placeholder: https://github.com/<username>/<repo name>
101+
validations:
102+
required: false
103+
- type: checkboxes
104+
id: terms
105+
attributes:
106+
label: Code of Conduct
107+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
108+
options:
109+
- label: I agree to follow this project's Code of Conduct
110+
required: true
111+
validations:
112+
required: true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: PaperMod Discussions
4+
url: https://github.com/adityatelange/hugo-PaperMod/discussions
5+
about: Please ask and answer questions/doubts here, DO NOT open an issue for questions.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Enhancement 🚀
2+
description: Propose a new feature or change for enhancing the experience.
3+
title: "[Enhancement]: "
4+
labels: ["enhancement", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this enhancement form :)
10+
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any other relevant question.
11+
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
12+
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
13+
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
14+
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
15+
- type: textarea
16+
id: what_happened
17+
attributes:
18+
label: What you'd like to propose?
19+
description:
20+
placeholder:
21+
validations:
22+
required: true
23+
- type: checkboxes
24+
id: terms
25+
attributes:
26+
label: Code of Conduct
27+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
28+
options:
29+
- label: I agree to follow this project's Code of Conduct
30+
required: true
31+
validations:
32+
required: true

0 commit comments

Comments
 (0)