summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2022-12-25 19:40:10 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2022-12-25 19:40:10 +0000
commit6fd1a9f7d649999c627c50872a88d31ccfed6ae1 (patch)
tree69b6400ef35281610657ba3088f04f9155144765
parentd06aaa3261c4b77649cce7f7601c98a6a10e84fb (diff)
downloadblog-6fd1a9f7d649999c627c50872a88d31ccfed6ae1.tar.gz
blog-6fd1a9f7d649999c627c50872a88d31ccfed6ae1.tar.bz2
blog-6fd1a9f7d649999c627c50872a88d31ccfed6ae1.zip
Refere to style.css from root
-rw-r--r--blog/blog.py1
-rw-r--r--templates/feed.html2
-rw-r--r--templates/post.html2
3 files changed, 3 insertions, 2 deletions
diff --git a/blog/blog.py b/blog/blog.py
index aa7bc82..8af9589 100644
--- a/blog/blog.py
+++ b/blog/blog.py
@@ -22,6 +22,7 @@ def find_posts(template, basedir):
posts.append(Post(template, os.path.join(basedir, subdir)))
return posts
+
def copy_share(workdir):
for filename in os.listdir("share"):
source = os.path.join("share", filename)
diff --git a/templates/feed.html b/templates/feed.html
index b8fc4bf..86013bb 100644
--- a/templates/feed.html
+++ b/templates/feed.html
@@ -8,7 +8,7 @@
<meta name="title" content="blog.ilvokhin.com">
<title>blog.ilvokhin.com</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
+ <link rel="stylesheet" type="text/css" href="/style.css"/>
</head>
<body class="feed">
diff --git a/templates/post.html b/templates/post.html
index 82250f8..5c4fef5 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -8,7 +8,7 @@
<meta name="title" content="{{ title }}">
<title>{{ title }} | blog.ilvokhin.com</title>
- <link rel="stylesheet" type="text/css" href="style.css" />
+ <link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body class="post">