Tweak link handling.
This commit is contained in:
parent
98ae73ddd3
commit
ada2e397ae
3 changed files with 4 additions and 4 deletions
|
@ -33,8 +33,8 @@
|
||||||
(defun write-index (posts filename title &optional prev next)
|
(defun write-index (posts filename title &optional prev next)
|
||||||
"Write out the HTML for POSTS to FILENAME.html."
|
"Write out the HTML for POSTS to FILENAME.html."
|
||||||
(let ((content (loop for post in posts
|
(let ((content (loop for post in posts
|
||||||
collect (list :url (format nil "~a/posts/~a.html"
|
collect (list :url (format nil "~a/posts/~a"
|
||||||
(domain *config*) (post-slug post))
|
(domain *config*) (post-url post))
|
||||||
:title (post-title post)
|
:title (post-title post)
|
||||||
:date (post-date post)
|
:date (post-date post)
|
||||||
:content (render-content (post-content post)
|
:content (render-content (post-content post)
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
(defun post-url (post)
|
(defun post-url (post)
|
||||||
"Return the relative URL for a given post."
|
"Return the relative URL for a given post."
|
||||||
(format nil "posts/~a.html" (post-slug post)))
|
(format nil "~a.html" (post-slug post)))
|
||||||
|
|
||||||
(defun render-posts ()
|
(defun render-posts ()
|
||||||
"Iterate through the files in the repo to render+write the posts out to disk."
|
"Iterate through the files in the repo to render+write the posts out to disk."
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
{$navigation |noAutoescape}
|
{$navigation |noAutoescape}
|
||||||
{$title}
|
<a href="{$siteroot}">{$title}</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{$content |noAutoescape}
|
{$content |noAutoescape}
|
||||||
|
|
Loading…
Add table
Reference in a new issue