Skip to content

Add 'remote work' post. #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ subtitle = "Technology blog of India's largest stock broker"
name = "Stack"
url = "/stack"
weight = 4

[markup]
[markup.goldmark.renderer]
unsafe = true
136 changes: 136 additions & 0 deletions content/blog/remoteness-of-remote-work.md

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
{{ partial "header.html" . }}

{{ if eq .Params.banner "yes" }}
<div class="banner">
<img src="{{ .Params.image }}">
</div>
{{ end }}

<div class="content-wrap wrap">
{{ if isset .Params "authors" }}
{{ partial "author.html" . }}
<div class="post">
{{ if eq .Params.banner "yes" }}
<div class="banner">
<img src="{{ .Params.image }}">
</div>
{{ end }}
<div class="content">
{{ .Content }}

<div class="tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<ul class="flat">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
<div class="content-wrap wrap">
{{ if isset .Params "authors" }}
{{ partial "author.html" . }}
{{ end }}
<div class="content">
{{ .Content }}

<div class="tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<ul class="flat">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ end }}
</div>
</div>
</div>
</div>
</div>
</div>
{{ partial "footer.html" . }}
{{ partial "footer.html" . }}
17 changes: 8 additions & 9 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
</section>
<footer class="footer">
<a href="https://zerodha.com">Zerodha</a> &copy; 2024. All rights reserved.
</footer>
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
</body>

</html>
<footer class="footer">
<a href="https://zerodha.com">Zerodha</a> &copy; {{ time.Now | time.Format "2006" }} All rights reserved.
</footer>
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
</body>
</html>
74 changes: 25 additions & 49 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<html>

<head>
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
Expand All @@ -16,46 +15,28 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Open Graph -->
{{- if .IsHome -}}
<meta property="og:title"
content="{{ $siteTitle }} {{ if .Site.Params.subtitle }}- {{ .Site.Params.Subtitle }}{{ end }}" />
<meta property="og:title" content="{{ $siteTitle }} {{ if .Site.Params.subtitle }}- {{ .Site.Params.Subtitle }}{{ end }}" />
{{- else -}}
<meta property="og:title" content="{{ $title }} - {{ $siteTitle }}" />
{{- end -}}

<meta property="og:description"
content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }}" />
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .Permalink }}" />

<link rel="shortcut icon" href="{{ .Site.BaseURL }}/static/images/favicon.png" />

{{ with .OutputFormats.Get "rss" -}}
{{ printf `
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

{{ with .Params.image }}
<meta property="og:image" content="{{ if in . " http" }}{{ . }}{{ else }}{{ $.Site.BaseURL }}{{ . }}{{ end }}" />
<meta property="og:image" content="{{ if in . "http" }}{{ . }}{{ else }}{{ $.Site.BaseURL }}{{ . }}{{ end }}" />
{{ else }}
<meta property="og:image" content="https://zerodha.com/static/images/landing.png">
<meta property="og:image" content="https://zerodha.com/static/images/landing.png">
{{ end }}

<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "//m.zerodha.com/";
_paq.push(['setTrackerUrl', u + 'js/']);
_paq.push(['setSiteId', '16']);
_paq.push(['setAPIUrl', u]);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = u + 'js/'; s.parentNode.insertBefore(g, s);
})();
</script>

<script type="application/ld+json">
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "Organization",
Expand All @@ -76,22 +57,18 @@
"https://instagram.com/zerodhaonline"
]
}
</script>
</script>

<link href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/static/style.css" />

<!-- <link rel="stylesheet" type="text/css" media="(prefers-color-scheme: dark)" href="{{ .Site.BaseURL }}/static/dark.css" /> -->
</head>

<body>
{{ .Site.Params.paginate }}
<section class="page-hero">
<div class="container wrap">
<div class="header">
<div class="logo">
<a href="{{ .Site.BaseURL }}/"><img alt="Zerodha technology blog"
src="{{ .Site.BaseURL }}/static/images/logo.svg" /></a>
<a href="{{ .Site.BaseURL }}/"><img alt="Zerodha technology blog" src="{{ .Site.BaseURL }}/static/images/logo.svg" /></a>
</div>
<nav class="nav">
{{ $cur := . }}
Expand All @@ -101,11 +78,10 @@
{{ end }}

<a href="{{ .Site.BaseURL }}/index.xml" class="feed" title="Subscribe to feed">
<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">
<path d="M4 11a9 9 0 0 1 9 9" />
<path d="M4 4a16 16 0 0 1 16 16" />
<circle cx="5" cy="19" r="1" />
<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">
<path d="M4 11a9 9 0 0 1 9 9"/>
<path d="M4 4a16 16 0 0 1 16 16"/>
<circle cx="5" cy="19" r="1"/>
</svg>
</a>
</nav>
Expand All @@ -116,27 +92,27 @@
<div class="post-header">
<h1 class="title">{{ .Title }}</h1>
{{ if ne .Type "page" }}
<p class="date">
{{ dateFormat "02 Jan 2006" .Date }}
</p>
<p class="date">
{{ dateFormat "02 Jan 2006" .Date }}
</p>
{{ else }}
{{ .Params.description }}
{{ .Params.description }}
{{ end }}
</div>
</div>
{{ else if .IsHome }}
<h1 class="intro">
We build <span class="bold">technology at
<h1 class="intro">
We build <span class="bold">technology at
Zerodha, </span> <span class="highlight">India's largest stock broker</span>.
</h1>
</h1>

{{ else if isset .Data "Term" }}
<h1 class="post-header">
{{ if eq (index .Data "Singular") "author" }}@{{ end }}{{ .Data.Term }}
</h1>
<h1 class="post-header">
{{ if eq (index .Data "Singular") "author" }}@{{ end }}{{ .Data.Term }}
</h1>
{{ else }}
<h1 class="post-header">{{ .Name }}</h1>
<h1 class="post-header">{{ .Name }}</h1>
{{ end }}

</div>
</section>
</section>
Binary file added static/static/images/remote-work.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 12 additions & 6 deletions static/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ a:hover {
text-decoration-thickness: 2px;
}

strong {
font-weight: 600;
}

code {
display: inline-block;
background: #f4f4f4;
Expand Down Expand Up @@ -294,24 +298,26 @@ ul.flat li {
margin-bottom: 30px;
}

.content a {
.post .content a {
color: #035AA6;
text-decoration: underline;
}

.content a:hover {
.post .content a:hover {
color: #000;
text-decoration-color: #000;
;
}

.post .post-header {
margin-bottom: 30px;
.post ul li {
margin-bottom: 10px;
}
.post ul li p {
margin: 0;
}

.post .draft-label {
color: #000;
text-decoration: none;
text-decoration: none !important;
padding: 2px 4px;
border-radius: 4px;
margin-left: 6px;
Expand Down