From 35ef3dda5fe855b44d03c25eb4af1db215981a67 Mon Sep 17 00:00:00 2001 From: Avelino Date: Mon, 14 Mar 2022 15:40:51 -0300 Subject: [PATCH] do not change the link in the content menu Signed-off-by: Avelino --- make_site.go | 5 +++-- tmpl/cat-tmpl.html | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/make_site.go b/make_site.go index b858c073..bb2b098d 100644 --- a/make_site.go +++ b/make_site.go @@ -104,8 +104,9 @@ func changeLinksInIndex(html string, query *goquery.Document) { href, exists := s.Attr("href") if exists { uri := strings.SplitAfter(href, "#") - if len(uri) >= 2 { - html = strings.ReplaceAll(html, fmt.Sprintf(`href="%s"`, href), fmt.Sprintf(`href="%s"`, uri[1])) + if len(uri) >= 2 && uri[1] != "contents" { + html = strings.ReplaceAll( + html, fmt.Sprintf(`href="%s"`, href), fmt.Sprintf(`href="%s"`, uri[1])) } } }) diff --git a/tmpl/cat-tmpl.html b/tmpl/cat-tmpl.html index d927892f..aede5c61 100644 --- a/tmpl/cat-tmpl.html +++ b/tmpl/cat-tmpl.html @@ -55,7 +55,18 @@

- Doppler + + Doppler +
+ Quit struggling with scattered API keys and access controls. +
+

+

+ + x-team +
+ Work from anywhere in the world with top tech companies like Riot Games, Coinbase, and Google. +

Digital Ocean @@ -66,7 +77,7 @@