Skip to content

Commit 06d6f4d

Browse files
authored
Merge pull request #55 from zerodha/remote
Add 'remote work' post.
2 parents 3904d53 + 4bb82cf commit 06d6f4d

File tree

7 files changed

+208
-88
lines changed

7 files changed

+208
-88
lines changed

config.toml

+4
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ subtitle = "Technology blog of India's largest stock broker"
3838
name = "Stack"
3939
url = "/stack"
4040
weight = 4
41+
42+
[markup]
43+
[markup.goldmark.renderer]
44+
unsafe = true

content/blog/remoteness-of-remote-work.md

+136
Large diffs are not rendered by default.

layouts/_default/single.html

+23-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
{{ partial "header.html" . }}
2-
3-
{{ if eq .Params.banner "yes" }}
4-
<div class="banner">
5-
<img src="{{ .Params.image }}">
6-
</div>
7-
{{ end }}
8-
9-
<div class="content-wrap wrap">
10-
{{ if isset .Params "authors" }}
11-
{{ partial "author.html" . }}
2+
<div class="post">
3+
{{ if eq .Params.banner "yes" }}
4+
<div class="banner">
5+
<img src="{{ .Params.image }}">
6+
</div>
127
{{ end }}
13-
<div class="content">
14-
{{ .Content }}
158

16-
<div class="tags">
17-
{{ if ne .Type "page" }}
18-
{{ if gt .Params.tags 0 }}
19-
<ul class="flat">
20-
{{ range .Params.tags }}
21-
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
9+
<div class="content-wrap wrap">
10+
{{ if isset .Params "authors" }}
11+
{{ partial "author.html" . }}
12+
{{ end }}
13+
<div class="content">
14+
{{ .Content }}
15+
16+
<div class="tags">
17+
{{ if ne .Type "page" }}
18+
{{ if gt .Params.tags 0 }}
19+
<ul class="flat">
20+
{{ range .Params.tags }}
21+
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
22+
{{ end }}
23+
</ul>
24+
{{ end }}
2225
{{ end }}
23-
</ul>
24-
{{ end }}
25-
{{ end }}
26+
</div>
2627
</div>
2728
</div>
2829
</div>
29-
</div>
30-
</div>
31-
{{ partial "footer.html" . }}
30+
{{ partial "footer.html" . }}

layouts/partials/footer.html

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
</section>
2-
<footer class="footer">
3-
<a href="https://zerodha.com">Zerodha</a> &copy; 2024. All rights reserved.
4-
</footer>
5-
{{ if not .Site.IsServer }}
6-
{{ template "_internal/google_analytics_async.html" . }}
7-
{{ end }}
8-
</body>
91

10-
</html>
2+
<footer class="footer">
3+
<a href="https://zerodha.com">Zerodha</a> &copy; {{ time.Now | time.Format "2006" }} All rights reserved.
4+
</footer>
5+
{{ if not .Site.IsServer }}
6+
{{ template "_internal/google_analytics_async.html" . }}
7+
{{ end }}
8+
</body>
9+
</html>

layouts/partials/header.html

+25-49
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE html>
22
<html>
3-
43
<head>
54
{{- $title := ( .Title ) -}}
65
{{- $siteTitle := ( .Site.Title ) -}}
@@ -16,46 +15,28 @@
1615
<meta name="viewport" content="width=device-width, initial-scale=1" />
1716
<!-- Open Graph -->
1817
{{- 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 }}" />
2119
{{- else -}}
2220
<meta property="og:title" content="{{ $title }} - {{ $siteTitle }}" />
2321
{{- end -}}
2422

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 }}" />
2724
<meta property="og:type" content="website" />
2825
<meta property="og:url" content="{{ .Permalink }}" />
29-
26+
3027
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/static/images/favicon.png" />
3128

3229
{{ 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 }}
3531
{{ end -}}
3632

3733
{{ 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 }}" />
3935
{{ 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">
4137
{{ end }}
4238

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">
5940
{
6041
"@context" : "https://schema.org",
6142
"@type" : "Organization",
@@ -76,22 +57,18 @@
7657
"https://instagram.com/zerodhaonline"
7758
]
7859
}
79-
</script>
60+
</script>
8061

8162
<link href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600" rel="stylesheet">
8263
<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" /> -->
8564
</head>
86-
8765
<body>
8866
{{ .Site.Params.paginate }}
8967
<section class="page-hero">
9068
<div class="container wrap">
9169
<div class="header">
9270
<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>
9572
</div>
9673
<nav class="nav">
9774
{{ $cur := . }}
@@ -101,11 +78,10 @@
10178
{{ end }}
10279

10380
<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"/>
10985
</svg>
11086
</a>
11187
</nav>
@@ -116,27 +92,27 @@
11692
<div class="post-header">
11793
<h1 class="title">{{ .Title }}</h1>
11894
{{ 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>
12298
{{ else }}
123-
{{ .Params.description }}
99+
{{ .Params.description }}
124100
{{ end }}
125101
</div>
126102
</div>
127103
{{ 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
130106
Zerodha, </span> <span class="highlight">India's largest stock broker</span>.
131-
</h1>
107+
</h1>
132108

133109
{{ 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>
137113
{{ else }}
138-
<h1 class="post-header">{{ .Name }}</h1>
114+
<h1 class="post-header">{{ .Name }}</h1>
139115
{{ end }}
140116

141117
</div>
142-
</section>
118+
</section>

static/static/images/remote-work.png

17.5 KB
Loading

static/static/style.css

+12-6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ a:hover {
3030
text-decoration-thickness: 2px;
3131
}
3232

33+
strong {
34+
font-weight: 600;
35+
}
36+
3337
code {
3438
display: inline-block;
3539
background: #f4f4f4;
@@ -294,24 +298,26 @@ ul.flat li {
294298
margin-bottom: 30px;
295299
}
296300

297-
.content a {
301+
.post .content a {
298302
color: #035AA6;
299303
text-decoration: underline;
300304
}
301305

302-
.content a:hover {
306+
.post .content a:hover {
303307
color: #000;
304308
text-decoration-color: #000;
305-
;
306309
}
307310

308-
.post .post-header {
309-
margin-bottom: 30px;
311+
.post ul li {
312+
margin-bottom: 10px;
313+
}
314+
.post ul li p {
315+
margin: 0;
310316
}
311317

312318
.post .draft-label {
313319
color: #000;
314-
text-decoration: none;
320+
text-decoration: none !important;
315321
padding: 2px 4px;
316322
border-radius: 4px;
317323
margin-left: 6px;

0 commit comments

Comments
 (0)