Skip to content

Commit 50bc7ab

Browse files
Abhirup-99timabbott
authored andcommitted
css: Rectify path of style.css to ensure it is found.
This commit rectifies the css file path to ensure its found. The previous relative path was breaking due to the base href being different. The URL is now absolute making it independent of any base change, while maintaining backward compatability. Fixes #36.
1 parent ba5a492 commit 50bc7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def write_topic_messages(
204204
)
205205

206206
outfile.write(topic_links)
207-
outfile.write('\n<head><link href="/style.css" rel="stylesheet"></head>\n')
207+
outfile.write(f'\n<head><link href="{site_url}/style.css" rel="stylesheet"></head>\n')
208208

209209
outfile.write('\n{% raw %}\n')
210210

0 commit comments

Comments
 (0)