Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Vincent Dardel
cl-site
Commits
ae248202
Commit
ae248202
authored
Oct 28, 2018
by
Erik Huelsmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix header not being discarded from content
parent
d70d88b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main.lisp
main.lisp
+4
-3
No files found.
main.lisp
View file @
ae248202
...
...
@@ -9,11 +9,12 @@
(
defun
content-lines
(
lines
)
(
loop
with
found-header-p
=
nil
for
line
in
lines
when
found-header-p
collect
line
into
post-header-lines
when
(
string=
line
"---"
)
do
(
setf
found-header-p
t
content-lines
nil
)
do
(
setf
found-header-p
t
)
collect
line
into
content-lines
finally
(
return
content-lines
)))
finally
(
return
(
if
found-header-p
post-header-lines
content-lines
)))
)
(
defun
make-site
(
&optional
output-dir
)
(
let
((
*output-dir*
(
or
output-dir
*output-dir*
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment