Commit 13f7a18b authored by Erik Huelsmann's avatar Erik Huelsmann

Add 'edit page' button to all pages through the template

Note that in a follow-up, we'll need to add infrastructure
to retain the original input filename as currently .md and
.lisp files aren't linked to correctly (the link is to the
resulting .html file instead).
parent 11fa5fc4
......@@ -66,8 +66,14 @@
<footer class="footer border-top bg-light">
<div class="container">
<footer class="bg-light footer" style="margin-top:15px;clear:both">
<div style="display:block;margin-left:auto;margin-right:auto;margin-bottom:20px;text-align:center">
<a class="btn btn-secondary" style="color: #29aa22;border-color: #29aa22" href="{{{rel-path}}}">
<i class="far fa-edit"></i>&nbsp;Edit this page
<div class="container border-top">
<div class="row">
<div class="col-md-6" style="font-style: italic;">
<div style="text-align:left;width:100%; margin-bottom: 0px;">
......@@ -64,7 +64,9 @@
:direction :output
:if-exists :supersede)
(render-template template-path
(append (acons :page-content (render-template* content-text) page-context) *GLOBAL-CONTEXT*)
(append (acons :page-content (render-template* content-text)
(acons :rel-path (enough-namestring page-path *pages-dir*) page-context))
(defun preprocess-md-pages (pages)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment