Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cl-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clo
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