Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8d2c145

Browse filesBrowse files
committed
fix header
1 parent 1f3bf1a commit 8d2c145
Copy full SHA for 8d2c145

File tree

Expand file treeCollapse file tree

9 files changed

+125
-99
lines changed
Filter options
Expand file treeCollapse file tree

9 files changed

+125
-99
lines changed

‎layouts/partials/head.html

Copy file name to clipboard
+83Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<meta charset="utf-8">
2+
<meta name="viewport" content="width=device-width,minimum-scale=1">
3+
4+
5+
{{ $title := .Site.Title -}}
6+
{{ if .Params.Title -}}
7+
{{ $title = printf "%s | %s" .Params.Title $title -}}
8+
{{ end -}}
9+
10+
{{ $description := "" -}}
11+
{{ if .IsHome -}}
12+
{{ with .Site.Params.description }}{{ $description = . }}{{ end -}}
13+
{{ else if .IsPage -}}
14+
{{ if .Description -}}
15+
{{ $description = .Description -}}
16+
{{ else -}}
17+
{{ $description = .Summary -}}
18+
{{ end -}}
19+
{{ end }}
20+
21+
<title>{{ $title }}</title>
22+
<link rel="canonical" href="{{ .Permalink }}">
23+
{{ if $description -}}
24+
<meta name="description" content="{{ $description }}" />
25+
{{ end -}}
26+
27+
<meta property="og:type" content="article" />
28+
<meta property="og:title" content="{{ $title }}" />
29+
<meta property="og:url" content="{{ .Permalink }}" />
30+
{{ if $description -}}
31+
<meta property="og:description" content="{{ $description }}" />
32+
{{ end -}}
33+
34+
35+
{{ range .AlternativeOutputFormats -}}
36+
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
37+
{{ end -}}
38+
39+
{{/* load mermaid if any mermaid code block */}}
40+
{{ if .Page.Store.Get "hasMermaid" }}
41+
<script src="{{ "js/meraid-9.0.0.min.js" | relURL }}"></script>
42+
<script>mermaid.initialize({ startOnLoad: true });</script>
43+
{{ end }}
44+
45+
{{/* load katex if enabled on front matter */}}
46+
{{ if .Params.katex }}
47+
<link rel="stylesheet" href="{{ "lib/katex/katex.min.css" | relURL }}">
48+
49+
<!-- The loading of KaTeX is deferred to speed up page rendering -->
50+
<script defer src="{{ "lib/katex/katex.min.js" | relURL }}"></script>
51+
52+
<!-- To automatically render math in text elements, include the auto-render extension: -->
53+
<script defer src="{{ "lib/katex/contrib/auto-render.min.js" | relURL }}"
54+
onload="renderMathInElement(document.body);"></script>
55+
{{ end }}
56+
57+
{{ with and .Site.Params.remark42 .Params.show_comments }}
58+
{{ $remark42 := $.Site.Params.remark42 }}
59+
<script>
60+
var remark_config = {
61+
host: '{{ $remark42.host }}',
62+
site_id: '{{ $remark42.site_id }}',
63+
components: ['embed', 'last-comments'],
64+
max_shown_comments: {{ $remark42.max_shown_comments }},
65+
theme: '{{ $remark42.theme }}',
66+
page_title: '{{ $remark42.Title }}',
67+
locale: '{{ $remark42.locale }}',
68+
show_email_subscription: {{ $remark42.show_email_subscription }},
69+
simple_view: {{ $remark42.simple_view }}
70+
};
71+
72+
!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);
73+
</script>
74+
{{ end }}
75+
76+
<link rel="stylesheet" href="{{ "lib/icofont/icofont.min.css" | relURL }}" />
77+
<link rel="stylesheet" href="{{ "css/syntax.css" | relURL }}" />
78+
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
79+
<link rel="shortcut icon" href="{{ "images/favicon.ico" | relURL }}" type="image/x-icon" />
80+
{{ template "_internal/google_analytics.html" . }}
81+
{{ template "_internal/twitter_cards.html" . }}
82+
<!-- Add google site verification meta tag -->
83+
<meta name="google-site-verification" content="google-site-verification: {{ .Site.Params.google_site_verification }}" />

‎layouts/partials/header.html

Copy file name to clipboardExpand all lines: layouts/partials/header.html
-29Lines changed: 0 additions & 29 deletions
This file was deleted.

‎public/categories/index.html

Copy file name to clipboardExpand all lines: public/categories/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
<link rel="stylesheet" href="/css/style.css" />
2727
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
2828

29-
</head>
30-
31-
<body>
32-
<head>
33-
3429
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
3530
<script>
3631
var doNotTrack = false;
@@ -42,18 +37,19 @@
4237
}
4338
</script>
4439

45-
<meta name="twitter:card" content="summary_large_image"/>
40+
<meta name="twitter:card" content="summary_large_image"/>
4641
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
4742

4843
<meta name="twitter:title" content="Categories"/>
4944
<meta name="twitter:description" content="SinghCoder&#39;s personal blog"/>
5045
<meta name="twitter:site" content="@singhhcoder"/>
5146

52-
53-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
54-
</head>
5547

56-
<header class="header-wrapper">
48+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
49+
</head>
50+
51+
<body>
52+
<header class="header-wrapper">
5753
<div class="header">
5854
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
5955

‎public/index.html

Copy file name to clipboardExpand all lines: public/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
<link rel="stylesheet" href="/css/style.css" />
3030
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
3131

32-
</head>
33-
34-
<body>
35-
<head>
36-
3732
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
3833
<script>
3934
var doNotTrack = false;
@@ -45,18 +40,19 @@
4540
}
4641
</script>
4742

48-
<meta name="twitter:card" content="summary_large_image"/>
43+
<meta name="twitter:card" content="summary_large_image"/>
4944
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
5045

5146
<meta name="twitter:title" content="My Personal Blog"/>
5247
<meta name="twitter:description" content="SinghCoder&#39;s personal blog"/>
5348
<meta name="twitter:site" content="@singhhcoder"/>
5449

55-
56-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
57-
</head>
5850

59-
<header class="header-wrapper">
51+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
52+
</head>
53+
54+
<body>
55+
<header class="header-wrapper">
6056
<div class="header">
6157
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
6258

‎public/posts/fitness-track/index.html

Copy file name to clipboardExpand all lines: public/posts/fitness-track/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
<link rel="stylesheet" href="/css/style.css" />
3232
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
3333

34-
</head>
35-
36-
<body>
37-
<head>
38-
3934
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
4035
<script>
4136
var doNotTrack = false;
@@ -47,7 +42,7 @@
4742
}
4843
</script>
4944

50-
<meta name="twitter:card" content="summary_large_image"/>
45+
<meta name="twitter:card" content="summary_large_image"/>
5146
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
5247

5348
<meta name="twitter:title" content="Fitness Track"/>
@@ -56,11 +51,12 @@
5651
What all I track so far? 🔗 Weight (morning and night) Number of weeks I had been regular in gym/number of classes attended. Occasional BMI and other metrics from InBody machine installed in the gym I go to."/>
5752
<meta name="twitter:site" content="@singhhcoder"/>
5853

59-
60-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
61-
</head>
6254

63-
<header class="header-wrapper">
55+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
56+
</head>
57+
58+
<body>
59+
<header class="header-wrapper">
6460
<div class="header">
6561
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
6662

‎public/posts/index.html

Copy file name to clipboardExpand all lines: public/posts/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
<link rel="stylesheet" href="/css/style.css" />
2727
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
2828

29-
</head>
30-
31-
<body>
32-
<head>
33-
3429
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
3530
<script>
3631
var doNotTrack = false;
@@ -42,18 +37,19 @@
4237
}
4338
</script>
4439

45-
<meta name="twitter:card" content="summary_large_image"/>
40+
<meta name="twitter:card" content="summary_large_image"/>
4641
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
4742

4843
<meta name="twitter:title" content="Posts"/>
4944
<meta name="twitter:description" content="SinghCoder&#39;s personal blog"/>
5045
<meta name="twitter:site" content="@singhhcoder"/>
5146

52-
53-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
54-
</head>
5547

56-
<header class="header-wrapper">
48+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
49+
</head>
50+
51+
<body>
52+
<header class="header-wrapper">
5753
<div class="header">
5854
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
5955

‎public/posts/my-first-post/index.html

Copy file name to clipboardExpand all lines: public/posts/my-first-post/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
<link rel="stylesheet" href="/css/style.css" />
3232
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
3333

34-
</head>
35-
36-
<body>
37-
<head>
38-
3934
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
4035
<script>
4136
var doNotTrack = false;
@@ -47,7 +42,7 @@
4742
}
4843
</script>
4944

50-
<meta name="twitter:card" content="summary_large_image"/>
45+
<meta name="twitter:card" content="summary_large_image"/>
5146
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
5247

5348
<meta name="twitter:title" content="My First Post"/>
@@ -56,11 +51,12 @@
5651
Scoop: next one is gonna be something related to the fitness journey I am on."/>
5752
<meta name="twitter:site" content="@singhhcoder"/>
5853

59-
60-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
61-
</head>
6254

63-
<header class="header-wrapper">
55+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
56+
</head>
57+
58+
<body>
59+
<header class="header-wrapper">
6460
<div class="header">
6561
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
6662

‎public/tags/fitness/index.html

Copy file name to clipboardExpand all lines: public/tags/fitness/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
<link rel="stylesheet" href="/css/style.css" />
2727
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
2828

29-
</head>
30-
31-
<body>
32-
<head>
33-
3429
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
3530
<script>
3631
var doNotTrack = false;
@@ -42,18 +37,19 @@
4237
}
4338
</script>
4439

45-
<meta name="twitter:card" content="summary_large_image"/>
40+
<meta name="twitter:card" content="summary_large_image"/>
4641
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
4742

4843
<meta name="twitter:title" content="fitness"/>
4944
<meta name="twitter:description" content="SinghCoder&#39;s personal blog"/>
5045
<meta name="twitter:site" content="@singhhcoder"/>
5146

52-
53-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
54-
</head>
5547

56-
<header class="header-wrapper">
48+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
49+
</head>
50+
51+
<body>
52+
<header class="header-wrapper">
5753
<div class="header">
5854
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
5955

‎public/tags/index.html

Copy file name to clipboardExpand all lines: public/tags/index.html
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
<link rel="stylesheet" href="/css/style.css" />
2727
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
2828

29-
</head>
30-
31-
<body>
32-
<head>
33-
3429
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TR6P06RWHL"></script>
3530
<script>
3631
var doNotTrack = false;
@@ -42,18 +37,19 @@
4237
}
4338
</script>
4439

45-
<meta name="twitter:card" content="summary_large_image"/>
40+
<meta name="twitter:card" content="summary_large_image"/>
4641
<meta name="twitter:image" content="https://singhcoder.github.io/site-feature-image.jpg"/>
4742

4843
<meta name="twitter:title" content="Tags"/>
4944
<meta name="twitter:description" content="SinghCoder&#39;s personal blog"/>
5045
<meta name="twitter:site" content="@singhhcoder"/>
5146

52-
53-
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
54-
</head>
5547

56-
<header class="header-wrapper">
48+
<meta name="google-site-verification" content="google-site-verification: nrXJC1Q97Lp2aEB5iMkD7nNX0Mg3X2btPqho_kWMUts" />
49+
</head>
50+
51+
<body>
52+
<header class="header-wrapper">
5753
<div class="header">
5854
<a class="site-title" href="https://singhcoder.github.io/">My Personal Blog</a>
5955

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.