From cd885412d4b86f2bf65fd9da89f9b9c2e64db882 Mon Sep 17 00:00:00 2001 From: marston Date: Thu, 1 Aug 2024 22:31:06 -0400 Subject: [PATCH] fixing links --- gen/gen.go | 3 ++- gen/styles/global.css | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gen/gen.go b/gen/gen.go index a2a4e52..5019b94 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -204,7 +204,8 @@ func Walk(dir string, out string, summary []byte, base string, titleText string, return err } - fileData := ReplaceMarkdownLinks(string(f)) + //fileData := ReplaceMarkdownLinks(string(f)) + fileData := MakeAbsoluteLinks(string(f)) htmlData := mdToHTML([]byte(fileData)) newData, err := CreateIndex(summary, htmlData, newPath[5:], base, titleText, color) diff --git a/gen/styles/global.css b/gen/styles/global.css index 4d507fa..85a6bf3 100644 --- a/gen/styles/global.css +++ b/gen/styles/global.css @@ -32,6 +32,11 @@ html, body { margin: 0px; } +p > a { + font-weight: bold; + text-decoration: underline; +} + img { max-width: 100%; }