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
407092f7
Commit
407092f7
authored
Oct 13, 2018
by
Erik Huelsmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass styles as parameter (instead of as a global)
parent
49d2d07e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
main.lisp
main.lisp
+1
-1
process.lisp
process.lisp
+2
-2
No files found.
main.lisp
View file @
407092f7
...
...
@@ -5,5 +5,5 @@
(
let
((
*output-dir*
(
or
output-dir
*output-dir*
)))
(
format
t
"Generating site in ~A.~%"
*output-dir*
)
(
process-static
)
(
process-styles
)
(
process-styles
*styles*
)
(
process-pages
*pages*
)))
process.lisp
View file @
407092f7
...
...
@@ -2,14 +2,14 @@
(
in-package
:cl-site
)
;; Copies/renders stylesheets + adds to global context
(
defun
process-styles
()
(
defun
process-styles
(
styles
)
(
let
((
styles-list
(
mapcar
(
lambda
(
s
)
(
progn
(
uiop:copy-file
(
make-path
*STYLES-DIR*
s
)
(
make-path
*OUTPUT-DIR*
s
))
(
cons
:location
s
)))
*STYLES*
)))
styles
)))
(
push
(
cons
:styles
styles-list
)
*GLOBAL-CONTEXT*
)))
;; Copies/renders static assets (imgs, etc)
...
...
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