Skip to content

Commit adb5e7b

Browse files
committed
layout: remove banner
banner was used for self-promotion to direct people to my LinkedIn while I was interviewing for software engineering roles, but now that I am hired I no longer wish to put such a banner before the users of this repository. I am happy that this website is once again entirely ad-free :)
1 parent 18bafee commit adb5e7b

3 files changed

Lines changed: 0 additions & 109 deletions

File tree

layouts/_default/single.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
{{ define "main" }}
22

3-
{{ $isCookbook := hasPrefix .RelPermalink "/cookbook/" }}
4-
{{ $isFaq := hasPrefix .RelPermalink "/faq/" }}
5-
{{ $showBannerScott := or $isCookbook $isFaq }}
6-
{{ $showBannerScott := false }}
7-
8-
{{ if $showBannerScott}}
9-
{{ partial "banner-scott.html" . }}
10-
{{ else }}
11-
{{ partial "banner-none.html" . }}
12-
{{ end }}
13-
143
<article class="my-0">
154
<div class="p-2">
165
{{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)"

layouts/partials/banner-none.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

layouts/partials/banner-scott.html

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)