1
1
<!DOCTYPE html>
2
2
< html >
3
-
4
3
< head >
5
4
{{- $title := ( .Title ) -}}
6
5
{{- $siteTitle := ( .Site.Title ) -}}
16
15
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
17
16
<!-- Open Graph -->
18
17
{{- if .IsHome -}}
19
- < meta property ="og:title "
20
- content ="{{ $siteTitle }} {{ if .Site.Params.subtitle }}- {{ .Site.Params.Subtitle }}{{ end }} " />
18
+ < meta property ="og:title " content ="{{ $siteTitle }} {{ if .Site.Params.subtitle }}- {{ .Site.Params.Subtitle }}{{ end }} " />
21
19
{{- else -}}
22
20
< meta property ="og:title " content ="{{ $title }} - {{ $siteTitle }} " />
23
21
{{- end -}}
24
22
25
- < meta property ="og:description "
26
- content ="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }} " />
23
+ < meta property ="og:description " content ="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }} " />
27
24
< meta property ="og:type " content ="website " />
28
25
< meta property ="og:url " content ="{{ .Permalink }} " />
29
-
26
+
30
27
< link rel ="shortcut icon " href ="{{ .Site.BaseURL }}/static/images/favicon.png " />
31
28
32
29
{{ with .OutputFormats.Get "rss" -}}
33
- {{ printf `
34
- < link rel ="%s " type ="%s " href ="%s " title ="%s " /> ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
30
+ {{ printf `< link rel ="%s " type ="%s " href ="%s " title ="%s " /> ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
35
31
{{ end -}}
36
32
37
33
{{ with .Params.image }}
38
- < meta property ="og:image " content ="{{ if in . " http " }}{{ . }}{{ else }}{{ $.Site.BaseURL }}{{ . }}{{ end }}" />
34
+ < meta property ="og:image " content ="{{ if in . "http " }}{{ . }}{{ else }}{{ $.Site.BaseURL }}{{ . }}{{ end }}" />
39
35
{{ else }}
40
- < meta property ="og:image " content ="https://zerodha.com/static/images/landing.png ">
36
+ < meta property ="og:image " content ="https://zerodha.com/static/images/landing.png ">
41
37
{{ end }}
42
38
43
- < script >
44
- var _paq = window . _paq = window . _paq || [ ] ;
45
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
46
- _paq . push ( [ 'trackPageView' ] ) ;
47
- _paq . push ( [ 'enableLinkTracking' ] ) ;
48
- ( function ( ) {
49
- var u = "//m.zerodha.com/" ;
50
- _paq . push ( [ 'setTrackerUrl' , u + 'js/' ] ) ;
51
- _paq . push ( [ 'setSiteId' , '16' ] ) ;
52
- _paq . push ( [ 'setAPIUrl' , u ] ) ;
53
- var d = document , g = d . createElement ( 'script' ) , s = d . getElementsByTagName ( 'script' ) [ 0 ] ;
54
- g . async = true ; g . src = u + 'js/' ; s . parentNode . insertBefore ( g , s ) ;
55
- } ) ( ) ;
56
- </ script >
57
-
58
- < script type ="application/ld+json ">
39
+ < script type ="application/ld+json ">
59
40
{
60
41
"@context" : "https://schema.org" ,
61
42
"@type" : "Organization" ,
76
57
"https://instagram.com/zerodhaonline"
77
58
]
78
59
}
79
- </ script >
60
+ </ script >
80
61
81
62
< link href ="https://fonts.googleapis.com/css?family=Inter:300,400,500,600 " rel ="stylesheet ">
82
63
< link rel ="stylesheet " type ="text/css " media ="screen " href ="{{ .Site.BaseURL }}/static/style.css " />
83
-
84
- <!-- <link rel="stylesheet" type="text/css" media="(prefers-color-scheme: dark)" href="{{ .Site.BaseURL }}/static/dark.css" /> -->
85
64
</ head >
86
-
87
65
< body >
88
66
{{ .Site.Params.paginate }}
89
67
< section class ="page-hero ">
90
68
< div class ="container wrap ">
91
69
< div class ="header ">
92
70
< div class ="logo ">
93
- < a href ="{{ .Site.BaseURL }}/ "> < img alt ="Zerodha technology blog "
94
- src ="{{ .Site.BaseURL }}/static/images/logo.svg " /> </ a >
71
+ < a href ="{{ .Site.BaseURL }}/ "> < img alt ="Zerodha technology blog " src ="{{ .Site.BaseURL }}/static/images/logo.svg " /> </ a >
95
72
</ div >
96
73
< nav class ="nav ">
97
74
{{ $cur := . }}
101
78
{{ end }}
102
79
103
80
< a href ="{{ .Site.BaseURL }}/index.xml " class ="feed " title ="Subscribe to feed ">
104
- < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " fill ="none "
105
- stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round ">
106
- < path d ="M4 11a9 9 0 0 1 9 9 " />
107
- < path d ="M4 4a16 16 0 0 1 16 16 " />
108
- < circle cx ="5 " cy ="19 " r ="1 " />
81
+ < svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round ">
82
+ < path d ="M4 11a9 9 0 0 1 9 9 "/>
83
+ < path d ="M4 4a16 16 0 0 1 16 16 "/>
84
+ < circle cx ="5 " cy ="19 " r ="1 "/>
109
85
</ svg >
110
86
</ a >
111
87
</ nav >
116
92
< div class ="post-header ">
117
93
< h1 class ="title "> {{ .Title }}</ h1 >
118
94
{{ if ne .Type "page" }}
119
- < p class ="date ">
120
- {{ dateFormat "02 Jan 2006" .Date }}
121
- </ p >
95
+ < p class ="date ">
96
+ {{ dateFormat "02 Jan 2006" .Date }}
97
+ </ p >
122
98
{{ else }}
123
- {{ .Params.description }}
99
+ {{ .Params.description }}
124
100
{{ end }}
125
101
</ div >
126
102
</ div >
127
103
{{ else if .IsHome }}
128
- < h1 class ="intro ">
129
- We build < span class ="bold "> technology at
104
+ < h1 class ="intro ">
105
+ We build < span class ="bold "> technology at
130
106
Zerodha, </ span > < span class ="highlight "> India's largest stock broker</ span > .
131
- </ h1 >
107
+ </ h1 >
132
108
133
109
{{ else if isset .Data "Term" }}
134
- < h1 class ="post-header ">
135
- {{ if eq (index .Data "Singular") "author" }}@{{ end }}{{ .Data.Term }}
136
- </ h1 >
110
+ < h1 class ="post-header ">
111
+ {{ if eq (index .Data "Singular") "author" }}@{{ end }}{{ .Data.Term }}
112
+ </ h1 >
137
113
{{ else }}
138
- < h1 class ="post-header "> {{ .Name }}</ h1 >
114
+ < h1 class ="post-header "> {{ .Name }}</ h1 >
139
115
{{ end }}
140
116
141
117
</ div >
142
- </ section >
118
+ </ section >
0 commit comments