Skip to content

Commit 580074f

Browse files
committed
Description Added
1 parent 9229284 commit 580074f

File tree

16 files changed

+318
-236
lines changed

16 files changed

+318
-236
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2-
title: "Credit"
2+
title: "About"
33
date: 2023-01-01T00:00:00Z
4+
draft: true
45
---
File renamed without changes.

data/home.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ data:
3636
icon: "fa-solid fa-blog"
3737
url: "https://codefrydev.in/Updates/"
3838

39-
- name: "Credit"
39+
- name: "About"
4040
icon: "fa-regular fa-credit-card"
41-
url: "/Credit"
41+
url: "/about"
4242

4343
- name: "Timeline"
4444
icon: "fa-light fa-atom"

hugo.toml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,23 @@ title = 'Code Fry Dev'
55
[Author]
66
name = "CodeFryDev"
77
[Params]
8-
description = "Tools, Games, Art, Animation"
8+
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!"
99
logo = "favicon-32x32.png"
1010
copyright = "codefrydev.in"
11-
1211
[params]
1312
paginate = 10 # Number of posts per page
13+
env = "production"
14+
15+
[assets]
16+
disableHLJS = true
17+
favicon = "favicon.ico"
18+
favicon16x16 = "favicon-16x16.png"
19+
favicon32x32 = "favicon-32x32.png"
20+
apple_touch_icon = "apple-touch-icon.png"
21+
safari_pinned_tab = "safari-pinned-tab.svg"
22+
23+
[label]
24+
text = "CodeFryDev"
25+
icon = "favicon.ico"
26+
iconHeight = 35
27+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
{{ partial "header.html" . }}
5-
<link rel="stylesheet" href="/css/credit.css">
5+
<link rel="stylesheet" href="/css/about.css">
66
</head>
77
<body style="background-color: #e5e9f4;" >
88
<header>
@@ -15,7 +15,7 @@ <h1 onclick="window.location.href='/'">
1515
<main>
1616
<section>
1717
<ol class="cards">
18-
{{ range .Site.Data.credit.cards }}
18+
{{ range .Site.Data.about.cards }}
1919
<li class="card" style="--accent-color: {{ .accent_color }}" onclick="window.location.href='{{ .url }}'">
2020
<h2>{{ .title }}</h2>
2121
<p>{{ .content }}</p>

layouts/partials/header.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,19 @@
99
</script>
1010
<meta charset="UTF-8">
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
12+
<meta name="msapplication-TileColor" content="#e5e9f4">
13+
<meta name="theme-color" content="#e5e9f4">
14+
<meta name="keywords" content="Codefrydev,CFD,NET,Tutorials,Design,Games,unity,c#,godot">
15+
<meta name="description" content="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!">
16+
<meta name="author" content="CodeFryDev">
17+
1218
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
1319
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1420
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
15-
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#28966a">
16-
<meta name="msapplication-TileColor" content="#28966a">
17-
<meta name="theme-color" content="#28966a">
21+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#e5e9f4">
1822

1923
<title>{{ .Title }}</title>
20-
{{ partial "site_schema.html" . }}
24+
<!-- {{ partial "site_schema.html" . }} -->
25+
{{- template "partials/templates/opengraph.html" . }}
26+
{{- template "partials/templates/twitter_cards.html" . }}
27+
{{- template "partials/templates/schema_json.html" . }}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<meta property="og:title" content="{{ .Title }}" />
2+
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
3+
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
4+
<meta property="og:url" content="{{ .Permalink }}" />
5+
{{- if .Params.cover.image -}}
6+
{{- if (ne .Params.cover.relative true) }}
7+
<meta property="og:image" content="{{ .Params.cover.image | absURL }}" />
8+
{{- else}}
9+
<meta property="og:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" />
10+
{{- end}}
11+
{{- else }}
12+
13+
{{- with $.Params.images -}}
14+
{{- range first 6 . }}<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
15+
{{- else -}}
16+
{{- $images := $.Resources.ByType "image" -}}
17+
{{- $featured := $images.GetMatch "*feature*" -}}
18+
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
19+
{{- with $featured -}}
20+
<meta property="og:image" content="{{ $featured.Permalink }}"/>
21+
{{- else -}}
22+
{{- with site.Params.images }}<meta property="og:image" content="{{ index . 0 | absURL }}"/>{{ end -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end }}
26+
27+
{{- if .IsPage }}
28+
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
29+
<meta property="article:section" content="{{ .Section }}" />
30+
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
31+
{{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format $iso8601 }}" />{{ end }}
32+
{{- end -}}
33+
34+
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
35+
{{- with .Params.locale }}<meta property="og:locale" content="{{ . }}" />{{ end }}
36+
{{- with site.Params.title }}<meta property="og:site_name" content="{{ . }}" />{{ end }}
37+
{{- with .Params.videos }}{{- range . }}
38+
<meta property="og:video" content="{{ . | absURL }}" />
39+
{{ end }}{{ end }}
40+
41+
{{- /* If it is part of a series, link to related articles */}}
42+
{{- $permalink := .Permalink }}
43+
{{- $siteSeries := site.Taxonomies.series }}
44+
{{ with .Params.series }}{{- range $name := . }}
45+
{{- $series := index $siteSeries ($name | urlize) }}
46+
{{- range $page := first 6 $series.Pages }}
47+
{{- if ne $page.Permalink $permalink }}<meta property="og:see_also" content="{{ $page.Permalink }}" />{{ end }}
48+
{{- end }}
49+
{{ end }}{{ end }}
50+
51+
{{- /* Facebook Page Admin ID for Domain Insights */}}
52+
{{- with site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{{ if .IsHome }}
2+
<script type="application/ld+json">
3+
{
4+
"@context": "https://schema.org",
5+
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
6+
"name": {{ site.Title }},
7+
"url": {{ site.BaseURL }},
8+
"description": {{ site.Params.description | plainify | truncate 180 | safeHTML }},
9+
"thumbnailUrl": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }},
10+
"sameAs": [
11+
{{- if site.Params.schema.sameAs }}
12+
{{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }}
13+
{{- else}}
14+
{{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }}
15+
{{- end}}
16+
]
17+
}
18+
</script>
19+
{{- else if (or .IsPage .IsSection) }}
20+
{{/* BreadcrumbList */}}
21+
{{- $url := replace .Parent.Permalink ( printf "%s" site.BaseURL) "" }}
22+
{{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
23+
{{- $bc_list := (split $lang_url "/")}}
24+
25+
{{- $scratch := newScratch }}
26+
<script type="application/ld+json">
27+
{
28+
"@context": "https://schema.org",
29+
"@type": "BreadcrumbList",
30+
"itemListElement": [
31+
{{- range $index, $element := $bc_list }}
32+
33+
{{- $scratch.Add "path" (printf "%s/" $element ) | safeJS }}
34+
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
35+
36+
{{- if (and ($bc_pg) (gt (len . ) 0))}}
37+
{{- if (and $index)}}, {{end }}
38+
{
39+
"@type": "ListItem",
40+
"position": {{ add 1 $index }},
41+
"name": {{ $bc_pg.Name }},
42+
"item": {{ $bc_pg.Permalink | safeHTML }}
43+
}
44+
{{- end }}
45+
46+
{{- end }}
47+
{{- /* self-page addition */ -}}
48+
{{- if (ge (len $bc_list) 2) }}, {{end }}
49+
{
50+
"@type": "ListItem",
51+
"position": {{len $bc_list}},
52+
"name": {{ .Name }},
53+
"item": {{ .Permalink | safeHTML }}
54+
}
55+
]
56+
}
57+
</script>
58+
{{- if .IsPage }}
59+
<script type="application/ld+json">
60+
{
61+
"@context": "https://schema.org",
62+
"@type": "BlogPosting",
63+
"headline": {{ .Title | plainify}},
64+
"name": "{{ .Title | plainify }}",
65+
"description": {{ with .Description | plainify }}{{ . }}{{ else }}{{ .Summary | plainify }}{{ end -}},
66+
"keywords": [
67+
{{- if .Params.keywords }}
68+
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
69+
{{- else }}
70+
{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
71+
{{- end }}
72+
],
73+
"articleBody": {{ .Content | safeJS | htmlUnescape | plainify }},
74+
"wordCount" : "{{ .WordCount }}",
75+
"inLanguage": {{ .Language.Lang | default "en-us" }},
76+
{{ if .Params.cover.image -}}
77+
"image":
78+
{{- if (ne .Params.cover.relative true) -}}
79+
{{ .Params.cover.image | absURL }},
80+
{{- else -}}
81+
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
82+
{{- end}}
83+
{{- end -}}
84+
"datePublished": {{ .PublishDate }},
85+
"dateModified": {{ .Lastmod }},
86+
{{- with (.Params.author | default site.Params.author) }}
87+
"author":
88+
{{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
89+
[{{- range $i, $v := . -}}
90+
{{- if $i }}, {{end -}}
91+
{
92+
"@type": "Person",
93+
"name": {{ $v }}
94+
}
95+
{{- end }}],
96+
{{- else -}}
97+
{
98+
"@type": "Person",
99+
"name": {{ . }}
100+
},
101+
{{- end -}}
102+
{{- end }}
103+
"mainEntityOfPage": {
104+
"@type": "WebPage",
105+
"@id": {{ .Permalink | safeHTML }}
106+
},
107+
"publisher": {
108+
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
109+
"name": {{ site.Title }},
110+
"logo": {
111+
"@type": "ImageObject",
112+
"url": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}
113+
}
114+
}
115+
}
116+
</script>
117+
{{- end }}{{/* .IsPage end */}}
118+
119+
{{- end -}}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{{- if .Params.cover.image -}}
2+
<meta name="twitter:card" content="summary_large_image" />
3+
{{- if (ne $.Params.cover.relative true) }}
4+
<meta name="twitter:image" content="{{ .Params.cover.image | absURL }}" />
5+
{{- else }}
6+
<meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" />
7+
{{- end}}
8+
{{- else }}
9+
{{- with $.Params.images -}}
10+
<meta name="twitter:card" content="summary_large_image"/>
11+
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
12+
{{ else -}}
13+
{{- $images := $.Resources.ByType "image" -}}
14+
{{- $featured := $images.GetMatch "*feature*" -}}
15+
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
16+
{{- with $featured -}}
17+
<meta name="twitter:card" content="summary_large_image"/>
18+
<meta name="twitter:image" content="{{ $featured.Permalink }}"/>
19+
{{- else -}}
20+
{{- with site.Params.images -}}
21+
<meta name="twitter:card" content="summary_large_image"/>
22+
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
23+
{{ else -}}
24+
<meta name="twitter:card" content="summary"/>
25+
{{- end -}}
26+
{{- end -}}
27+
{{- end }}
28+
{{- end }}
29+
<meta name="twitter:title" content="{{ .Title }}"/>
30+
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
31+
{{ with site.Social.twitter -}}
32+
<meta name="twitter:site" content="@{{ . }}"/>
33+
{{ end -}}

0 commit comments

Comments
 (0)