Skip to content

Commit 019dfd2

Browse files
committed
Updated
1 parent ea6ec05 commit 019dfd2

File tree

6 files changed

+159
-161
lines changed

6 files changed

+159
-161
lines changed

assets/css/extended/custom.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1+
/* Site extensions; Chroma/code blocks are styled by PaperMod (chroma-styles + chroma-mod). */
12
.mermaid {
23
text-align: center;
34
margin: 2em 0;
45
}
5-
.chroma {
6-
background-color: unset;
7-
}

config.yaml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
baseURL: "https://codefrydev.in/updates/"
2-
languageCode: en-us
2+
languageCode: en-US
33
title: Code Fry Dev
44
theme: PaperMod
55
enableRobotsTXT: true
66

77
googleAnalytics: G-VM01Q3R43D
8-
analytics:
9-
google:
10-
SiteVerificationTag: "G-VM01Q3R43D"
11-
8+
129
menu:
1310
main:
1411
- identifier: home
@@ -22,35 +19,35 @@ menu:
2219
- identifier: blog
2320
name: NET
2421
url: /blog
25-
weight: 11
22+
weight: 12
2623
- identifier: games
2724
name: Game
2825
url: /games
29-
weight: 12
26+
weight: 13
3027
- identifier: search
3128
name: Search
3229
url: /search
3330
weight: 50
3431
- identifier: tags
3532
name: Tag
3633
url: /tags
37-
weight: 60
34+
weight: 60
3835
- identifier: archives
3936
name: ARC
4037
url: /archives
41-
weight: 60
38+
weight: 61
4239

4340
params:
4441
math: true
45-
mainSections : ["blog","games","application"] # put parent directory to show in home pages
42+
mainSections: ["blog", "games", "application"]
4643
images: ["android-chrome-512x512.png"]
47-
keywords: ["Blog", "CFD", "NET" ,"Tutorials","Design","Games"]
44+
keywords: ["Blog", "CFD", "NET", "Tutorials", "Design", "Games"]
4845
description: "CodeFryDev is your ultimate destination for diverse digital content and tools. Enjoy our extensive game collection, innovative productivity apps, and micro applications for quick solutions. Access educational materials, interactive courses, and comprehensive tutorials for all skill levels. Fuel your creativity with design resources and versatile tools for efficient project completion. Visit CodeFryDev today and explore all we have to offer!"
4946
author: "CodeFryDev"
5047
defaultTheme: auto
5148
comments: true
5249
disqusShortname: codefrydev
53-
showToc: true
50+
ShowToc: true
5451
TocOpen: false
5552
ShowBreadCrumbs: true
5653
ShowCodeCopyButtons: true
@@ -61,10 +58,9 @@ params:
6158
ShowWordCount: true
6259
ShowRssButtonInSectionTermList: true
6360
hideSummary: false
64-
# for enchanced SEO
6561
env: production
6662
assets:
67-
disableHLJS: false
63+
disableHLJS: true
6864
favicon: "favicon.ico"
6965
favicon16x16: "favicon-16x16.png"
7066
favicon32x32: "favicon-32x32.png"
@@ -75,11 +71,9 @@ params:
7571
icon: "favicon.ico"
7672
iconHeight: 35
7773

78-
79-
# cover image for posts
8074
cover:
81-
hiddenInList: false # hide on list pages and home
82-
hiddenInSingle: false # hide on single page
75+
hiddenInList: false
76+
hiddenInSingle: false
8377

8478
socialIcons:
8579
- name: "email"
@@ -91,7 +85,6 @@ params:
9185
- name: "youtube"
9286
url: "https://www.youtube.com/c/codefrydev"
9387

94-
# text search
9588
fuseOpts:
9689
isCaseSensitive: false
9790
shouldSort: true
@@ -101,27 +94,26 @@ params:
10194
minMatchCharLength: 0
10295
keys: ["title", "permalink", "summary", "content"]
10396

104-
# for search using Fuse.js
10597
outputs:
10698
home:
10799
- HTML
108100
- RSS
109101
- JSON
110102

111-
# allow HTML in MD
112103
markup:
113104
goldmark:
114105
renderer:
115106
unsafe: true
116107
extensions:
117108
math: true
118109
highlight:
119-
# anchorLineNos: true
120110
codeFences: true
121111
guessSyntax: true
122112
lineNos: true
123-
# noClasses: false
124-
style: vs
113+
lineNumbersInTable: true
114+
noClasses: false
115+
style: catppuccin-macchiato
116+
125117
minify:
126118
disableXML: true
127-
minifyOutput: true
119+
minifyOutput: true

layouts/404.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- define "main" }}
2+
<article class="post-single not-found-page">
3+
<header class="post-header">
4+
<h1 class="post-title">{{ i18n "not_found" | default "Page not found" }}</h1>
5+
</header>
6+
<div class="post-content">
7+
<p><a href="{{ "" | absLangURL }}">{{ i18n "go_home" | default "Go to home" }}</a></p>
8+
</div>
9+
</article>
10+
{{- end }}

layouts/_default/list.html

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{{- define "main" }}
2+
3+
{{- if (and site.Params.profileMode.enabled .IsHome) }}
4+
{{- partial "index_profile.html" . }}
5+
{{- else }} {{/* if not profileMode */}}
6+
7+
{{- if not .IsHome | and .Title }}
8+
<header class="page-header">
9+
{{- partial "breadcrumbs.html" . }}
10+
<h1>
11+
{{ .Title }}
12+
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
13+
{{- with .OutputFormats.Get "rss" }}
14+
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
15+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
16+
stroke-linecap="round" stroke-linejoin="round" height="23">
17+
<path d="M4 11a9 9 0 0 1 9 9" />
18+
<path d="M4 4a16 16 0 0 1 16 16" />
19+
<circle cx="5" cy="19" r="1" />
20+
</svg>
21+
</a>
22+
{{- end }}
23+
{{- end }}
24+
</h1>
25+
{{- if .Description }}
26+
<div class="post-description">
27+
{{ .Description | markdownify }}
28+
</div>
29+
{{- end }}
30+
</header>
31+
{{- end }}
32+
33+
{{- if .Content }}
34+
<div class="post-content">
35+
{{- if not (.Param "disableAnchoredHeadings") }}
36+
{{- partial "anchored_headings.html" .Content -}}
37+
{{- else }}{{ .Content }}{{ end }}
38+
</div>
39+
{{- end }}
40+
41+
{{- $pages := union .RegularPages .Sections }}
42+
43+
{{- if .IsHome }}
44+
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
45+
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
46+
{{- end }}
47+
48+
{{- $paginator := .Paginate $pages }}
49+
50+
{{- /* One h1 on home when not using homeInfoParams (theme default omits page-header for .IsHome). */ -}}
51+
{{- if and .IsHome (not site.Params.homeInfoParams) }}
52+
<header class="page-header home-intro">
53+
<h1>{{ site.Title }}</h1>
54+
</header>
55+
{{- end }}
56+
57+
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
58+
{{- partial "home_info.html" . }}
59+
{{- end }}
60+
61+
{{- $term := .Data.Term }}
62+
{{- range $index, $page := $paginator.Pages }}
63+
64+
{{- $class := "post-entry" }}
65+
66+
{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }}
67+
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }}
68+
{{- $class = "first-entry" }}
69+
{{- else if $term }}
70+
{{- $class = "post-entry tag-entry" }}
71+
{{- end }}
72+
73+
<article class="{{ $class }}">
74+
{{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }}
75+
{{- partial "cover.html" (dict "cxt" . "IsHome" $.IsHome "isHidden" $isHidden) }}
76+
<header class="entry-header">
77+
<h2 class="entry-hint-parent">
78+
{{- .Title }}
79+
{{- if .Draft }}
80+
<span class="entry-hint" title="Draft">
81+
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" fill="currentColor">
82+
<path
83+
d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z" />
84+
</svg>
85+
</span>
86+
{{- end }}
87+
</h2>
88+
</header>
89+
{{- if (ne (.Param "hideSummary") true) }}
90+
<div class="entry-content">
91+
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
92+
</div>
93+
{{- end }}
94+
{{- if not (.Param "hideMeta") }}
95+
<footer class="entry-footer">
96+
{{- partial "post_meta.html" . -}}
97+
</footer>
98+
{{- end }}
99+
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
100+
</article>
101+
{{- end }}
102+
103+
{{- if gt $paginator.TotalPages 1 }}
104+
<footer class="page-footer">
105+
<nav class="pagination">
106+
{{- if $paginator.HasPrev }}
107+
<a class="prev" href="{{ $paginator.Prev.URL | absURL }}">
108+
«&nbsp;{{ i18n "prev_page" }}&nbsp;
109+
{{- if (.Param "ShowPageNums") }}
110+
{{- sub $paginator.PageNumber 1 }}/{{ $paginator.TotalPages }}
111+
{{- end }}
112+
</a>
113+
{{- end }}
114+
{{- if $paginator.HasNext }}
115+
<a class="next" href="{{ $paginator.Next.URL | absURL }}">
116+
{{- i18n "next_page" }}&nbsp;
117+
{{- if (.Param "ShowPageNums") }}
118+
{{- add 1 $paginator.PageNumber }}/{{ $paginator.TotalPages }}
119+
{{- end }}&nbsp;»
120+
</a>
121+
{{- end }}
122+
</nav>
123+
</footer>
124+
{{- end }}
125+
126+
{{- end }}{{/* end profileMode */}}
127+
128+
{{- end }}{{- /* end main */ -}}

layouts/partials/comments.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if .Site.Params.disqusShortname }}
1+
{{- if site.Params.disqusShortname }}
22
<div id="disqus_thread"></div>
33
<script>
44
var disqus_config = function () {
@@ -7,10 +7,10 @@
77
};
88
(function() {
99
var d = document, s = d.createElement('script');
10-
s.src = 'https://{{ .Site.Params.disqusShortname }}.disqus.com/embed.js';
10+
s.src = 'https://{{ site.Params.disqusShortname }}.disqus.com/embed.js';
1111
s.setAttribute('data-timestamp', +new Date());
1212
(d.head || d.body).appendChild(s);
1313
})();
1414
</script>
1515
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
16-
{{ end }}
16+
{{- end }}

0 commit comments

Comments
 (0)