Skip to content

Commit 94657fb

Browse files
author
Andrei Naidenov
committed
big commit with configuration change
1 parent 1861524 commit 94657fb

7 files changed

Lines changed: 117 additions & 49 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# andreiyard.github.com
2-
My personal site
2+
My fast and lightweight personal blog powered by [Hugo](https://gohugo.io/), automatically built and deployed using GitHub Actions, and hosted for free with GitHub Pages.
3+
4+
## How to add new post
5+
```hugo new --kind post content/posts/test-post-1.md```
6+
When we choose kind "post", the hugo initializes new content file using template from "archetypes" dir.

archetypes/post.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: "My 1st post"
3-
date: 2020-09-15T11:30:03+00:00
2+
title: "My new post"
3+
date: '{{ .Date }}'
4+
summary: "Here is the new post summary"
45
# weight: 1
56
# aliases: ["/first"]
6-
tags: ["first"]
7-
author: "Me"
7+
tags: ["new"]
8+
# author: "Me"
89
# author: ["Me", "You"] # multiple authors
910
showToc: true
1011
TocOpen: false
1112
draft: false
1213
hidemeta: false
1314
comments: false
1415
description: "Desc Text."
15-
canonicalURL: "https://canonical.url/to/page"
16+
# canonicalURL: "https://canonical.url/to/page"
1617
disableHLJS: true # to disable highlightjs
1718
disableShare: false
18-
disableHLJS: false
1919
hideSummary: false
20-
searchHidden: true
20+
searchHidden: false
2121
ShowReadingTime: true
2222
ShowBreadCrumbs: true
2323
ShowPostNavLinks: true
@@ -30,8 +30,8 @@ cover:
3030
caption: "<text>" # display caption under cover
3131
relative: false # when using page bundles set this to true
3232
hidden: true # only hide on current single page
33-
editPost:
34-
URL: "https://github.com/<path_to_repo>/content"
35-
Text: "Suggest Changes" # edit text
36-
appendFilePath: true # to append file path to Edit link
33+
# editPost:
34+
# URL: "https://github.com/<path_to_repo>/content"
35+
# Text: "Suggest Changes" # edit text
36+
# appendFilePath: true # to append file path to Edit link
3737
---

content/posts/test-post-1.md

Lines changed: 74 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,74 @@
1-
+++
2-
date = '2025-04-27T11:12:40+02:00'
3-
draft = true
4-
title = 'Test Post 1'
5-
+++
1+
---
2+
title: "My 1st post"
3+
date: '2025-04-27T21:21:01+02:00'
4+
summary: "This is my post to test Hugo and PaperMod features"
5+
# weight: 1
6+
# aliases: ["/first"]
7+
tags: ["first", "hugo"]
8+
# author: "Me"
9+
# author: ["Me", "You"] # multiple authors
10+
showToc: true
11+
TocOpen: false
12+
draft: false
13+
hidemeta: false
14+
comments: false
15+
description: "Here I test hugo features"
16+
# canonicalURL: "https://canonical.url/to/page"
17+
disableHLJS: true # to disable highlightjs
18+
disableShare: false
19+
hideSummary: false # to disable summary of the post on the page with posts
20+
searchHidden: false
21+
ShowReadingTime: true
22+
ShowBreadCrumbs: true
23+
ShowPostNavLinks: true
24+
ShowWordCount: true
25+
ShowRssButtonInSectionTermList: true
26+
UseHugoToc: true
27+
cover:
28+
image: "<image path/url>" # image path/url
29+
alt: "<alt text>" # alt text
30+
caption: "<text>" # display caption under cover
31+
relative: false # when using page bundles set this to true
32+
hidden: true # only hide on current single page
33+
# editPost:
34+
# URL: "https://github.com/<path_to_repo>/content"
35+
# Text: "Suggest Changes" # edit text
36+
# appendFilePath: true # to append file path to Edit link
37+
---
38+
39+
## Heading 2
40+
41+
Testing.
42+
43+
### Heading 3
44+
45+
This is my first post using this platform.
46+
47+
#### Heading 4
48+
49+
Some command as code block:
50+
```bash
51+
sudo -i
52+
```
53+
54+
Some command: `sudo -i`
55+
56+
#### Heading 4
57+
58+
Another text
59+
60+
### Some example of code
61+
62+
```python
63+
import sys
64+
65+
print("Hello world")
66+
67+
def myfunc(param):
68+
print("hmm")
69+
return False
70+
```
71+
72+
### Table of Contents
73+
74+
Looks like table of contents uses only headings 2 and 3 to built itself.

content/posts/test-post-2.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

content/posts/test-post-3.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

content/search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Search"
3+
placeholder: Search this blog with full text fuzzy search ...
4+
layout: "search"
5+
---

hugo.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ShowReadingTime = true
2828
ShowShareButtons = true
2929
ShowPostNavLinks = true
3030
ShowBreadCrumbs = true
31-
ShowCodeCopyButtons = false
31+
ShowCodeCopyButtons = true
3232
ShowWordCount = true
3333
ShowRssButtonInSectionTermList = true
3434
UseHugoToc = true
@@ -70,20 +70,17 @@ tocopen = false
7070
url = "tags"
7171

7272
[params.homeInfoParams]
73-
Title = "Hi there 👋"
74-
Content = "Welcome to my blog"
75-
73+
Title = "🛠️ Andrei Naidenov | Engineering Blog"
74+
Content = "👋 Hi! I'm an engineer with a focus on network automation, cloud architecture, and infrastructure reliability. \nThis blog covers practical engineering topics: network design, automation with Python and Ansible, DevOps tooling, SRE methodologies. Guides, technical breakdowns, and my thoughts on technical topics."
7675
[[params.socialIcons]]
77-
name = "x"
78-
url = "https://x.com/"
79-
76+
name = "linkedin"
77+
url = "https://www.linkedin.com/in/andrei-naidenov"
8078
[[params.socialIcons]]
81-
name = "stackoverflow"
82-
url = "https://stackoverflow.com"
83-
79+
name = "email"
80+
url = "mailto:andrei.naidenov.work@gmail.com"
8481
[[params.socialIcons]]
8582
name = "github"
86-
url = "https://github.com/"
83+
url = "https://github.com/andreiyard"
8784

8885
[params.cover]
8986
hidden = true
@@ -106,26 +103,29 @@ tocopen = false
106103
keys = [ "title", "permalink", "summary", "content" ]
107104

108105
[[menu.main]]
109-
identifier = "categories"
110-
name = "categories"
111-
url = "/categories/"
112-
weight = 10
106+
identifier = "Search"
107+
name = "Search"
108+
url = "/search/"
109+
weight = 5
113110

114111
[[menu.main]]
115-
identifier = "tags"
116-
name = "tags"
112+
identifier = "Tags"
113+
name = "Tags"
117114
url = "/tags/"
118115
weight = 20
119116

120-
[[menu.main]]
121-
identifier = "example"
122-
name = "example.org"
123-
url = "https://example.org"
124-
weight = 30
117+
# [[menu.main]]
118+
# identifier = "example"
119+
# name = "example.org"
120+
# url = "https://example.org"
121+
# weight = 30
125122

126123
[markup.highlight]
127124
noClasses = false
128125

129126
[caches]
130127
[caches.images]
131128
dir = ':cacheDir/images'
129+
130+
[outputs]
131+
home = [ "HTML", "RSS", "JSON" ]

0 commit comments

Comments
 (0)