Skip to content

Commit 7c0757e

Browse files
author
aryan
committed
� Add tag-bar like youtube/unsplash homepage using google gemini ai generated code
1 parent bfcac64 commit 7c0757e

34 files changed

Lines changed: 1625 additions & 138 deletions

assets/css/custom.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,19 @@ nav .search-wrapper {
158158
/* Customise Content Styles */
159159

160160
.content {
161-
162161
hr {
162+
margin-top: 2rem;
163163
border: 0;
164164
height: 1px;
165-
--tw-text-opacity: 0.1;
165+
--tw-text-opacity: 0.2;
166166
--color: rgb(12 12 12 / var(--tw-text-opacity));
167167
border-top: 1px solid var(--color);
168168
}
169169

170170
hr:is(html[class~="dark"] *) {
171171
border: 0;
172172
height: 1px;
173-
--tw-text-opacity: 0.1;
173+
--tw-text-opacity: 0.2;
174174
--color: rgb(241 245 249 / var(--tw-text-opacity));
175175
border-top: 1px solid var(--color);
176176
}
@@ -190,6 +190,12 @@ nav .search-wrapper {
190190
.wrong:is(html[class~="dark"] *) {
191191
color: rgb(216, 63, 71);
192192
}
193+
194+
/* Chart JS Styling */
195+
196+
.chart {
197+
margin-top: 1rem;
198+
}
193199
}
194200

195201
.card {
@@ -415,6 +421,11 @@ nav .search-wrapper {
415421
color: #e86c1a; /* Example highlight color */
416422
}
417423

424+
.toc-scrollable {
425+
max-height: calc(100vh - var(--navbar-height) - 100px);
426+
overflow-y: auto;
427+
}
428+
418429
/* Custom Notes Blog List Cards */
419430

420431
.notes-blogs-wrapper {

content/blog/article/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ tags:
1616
- featured
1717
excludeSearch: false
1818
image: /images/green.jpg
19-
cascade:
20-
type: hero
19+
2120

2221

2322
---

content/blog/featureImage/index.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
---
2-
title: Featured
2+
title: How to add article series in a blog post - HUGO
3+
description: I'have been trying to add this functionality in my HUGO website
34
section: article
45
date: 2020-01-01
56
authors:
6-
- name: imfing
7-
link: https://github.com/imfing
8-
image: https://github.com/imfing.png
9-
- name: Octocat
10-
link: https://github.com/octocat
11-
image: https://github.com/octocat.png
7+
- name: Aryan
8+
link: https://github.com/simplearyan
9+
image: https://github.com/simplearyan.png
1210
tags:
1311
- Markdown
1412
- Example
1513
- Guide
1614
- featured
1715
excludeSearch: false
18-
cascade:
19-
type: hero
2016
---
2117

2218
This article offers a sample of basic Markdown syntax that can be used in Hugo content files.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Chart JS 📈
3+
linkTitle: add chart.js in hugo
4+
description: How to add Chart JS in HUGO 🧑‍💻
5+
tags:
6+
- chart.js
7+
- featured
8+
image: /images/tree.jpg
9+
excludeSearch: false
10+
width: wide
11+
series: ["WEB-DEV"]
12+
series_order: 1
13+
excludeSearch: false
14+
chapter: 1
15+
---
16+
17+
18+
#### Line Chart
19+
20+
{{< chart >}}
21+
22+
type: 'line',
23+
data: {
24+
labels: [
25+
'Jan',
26+
'Feb',
27+
'Mar',
28+
'Apr',
29+
'May',
30+
'June',
31+
'July'
32+
],
33+
datasets: [{
34+
label: 'My First Dataset',
35+
data: [65, 59, 80, 81, 56, 55, 40],
36+
fill: false,
37+
borderColor: 'rgb(192, 75, 143)',
38+
tension: 0.1
39+
}]
40+
},
41+
42+
{{< /chart >}}
43+
44+
45+
---
46+
47+
#### Bar Chart
48+
49+
{{< chart >}}
50+
type: 'bar',
51+
data: {
52+
labels: ['Tomato', 'Blueberry', 'Banana', 'Lime', 'Orange'],
53+
datasets: [{
54+
label: '# of votes',
55+
data: [12, 19, 3, 5, 3],
56+
}]
57+
}
58+
{{< /chart >}}

content/blog/webdev/hugo.md

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
---
2+
title: HUGO
3+
section: article
4+
date: 2020-01-01
5+
authors:
6+
- name: imfing
7+
link: https://github.com/imfing
8+
image: https://github.com/imfing.png
9+
- name: Octocat
10+
link: https://github.com/octocat
11+
image: https://github.com/octocat.png
12+
tags:
13+
- Markdown
14+
- Example
15+
- Guide
16+
- featured
17+
image: /images/green.jpg
18+
series: ["WEB-DEV"]
19+
series_order: 2
20+
excludeSearch: false
21+
chapter: 2
22+
23+
24+
---
25+
26+
This article offers a sample of basic Markdown syntax that can be used in Hugo content files.
27+
<!--more-->
28+
29+
## Basic Syntax
30+
31+
### Headings
32+
33+
```
34+
# Heading 1
35+
## Heading 2
36+
### Heading 3
37+
#### Heading 4
38+
##### Heading 5
39+
###### Heading 6
40+
```
41+
42+
## Heading 2
43+
### Heading 3
44+
#### Heading 4
45+
##### Heading 5
46+
###### Heading 6
47+
48+
### Emphasis
49+
50+
```text
51+
*This text will be italic*
52+
_This will also be italic_
53+
54+
**This text will be bold**
55+
__This will also be bold__
56+
57+
_You **can** combine them_
58+
```
59+
60+
*This text will be italic*
61+
62+
_This will also be italic_
63+
64+
**This text will be bold**
65+
66+
__This will also be bold__
67+
68+
_You **can** combine them_
69+
70+
### Lists
71+
72+
#### Unordered
73+
74+
```
75+
* Item 1
76+
* Item 2
77+
* Item 2a
78+
* Item 2b
79+
```
80+
81+
* Item 1
82+
* Item 2
83+
* Item 2a
84+
* Item 2b
85+
86+
#### Ordered
87+
88+
```
89+
1. Item 1
90+
2. Item 2
91+
3. Item 3
92+
1. Item 3a
93+
2. Item 3b
94+
```
95+
96+
### Images
97+
98+
```markdown
99+
![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)
100+
```
101+
102+
![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)
103+
104+
### Links
105+
106+
```markdown
107+
[Hugo](https://gohugo.io)
108+
```
109+
110+
[Hugo](https://gohugo.io)
111+
112+
### Blockquotes
113+
114+
```markdown
115+
As Newton said:
116+
117+
> If I have seen further it is by standing on the shoulders of Giants.
118+
```
119+
120+
> If I have seen further it is by standing on the shoulders of Giants.
121+
122+
### Inline Code
123+
124+
```markdown
125+
Inline `code` has `back-ticks around` it.
126+
```
127+
128+
Inline `code` has `back-ticks around` it.
129+
130+
### Code Blocks
131+
132+
#### Syntax Highlighting
133+
134+
````markdown
135+
```go
136+
func main() {
137+
fmt.Println("Hello World")
138+
}
139+
```
140+
````
141+
142+
```go
143+
func main() {
144+
fmt.Println("Hello World")
145+
}
146+
```
147+
148+
### Tables
149+
150+
```markdown
151+
| Syntax | Description |
152+
| --------- | ----------- |
153+
| Header | Title |
154+
| Paragraph | Text |
155+
```
156+
157+
| Syntax | Description |
158+
| --------- | ----------- |
159+
| Header | Title |
160+
| Paragraph | Text |
161+
162+
## References
163+
164+
- [Markdown Syntax](https://www.markdownguide.org/basic-syntax/)
165+
- [Hugo Markdown](https://gohugo.io/content-management/formats/#markdown)

content/examples/guide/shortcodes/chart.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ linkTitle: Charts
3030

3131
{{< /chart >}}
3232

33+
34+
---
35+
3336
#### Bar Chart
3437

3538
{{< chart >}}

0 commit comments

Comments
 (0)