Commit 2e375786 authored by Erik Huelsmann's avatar Erik Huelsmann

Merge branch 'clean-unused-code' into 'master'

Remove unused file

See merge request !44
parents 591f0c66 dbbb740a
Pipeline #474 passed with stage
in 2 seconds
......@@ -12,13 +12,6 @@
(defparameter *DEFAULT-PAGE-TEMPLATE* "layout_2018.html"
"Default template to use unless another is explicitly specified.")
;; @TO-DO: replace this with better css preprocessing.
(defparameter *STYLES-DIR* (asdf:system-relative-pathname :cl-site "layout/css/")
"Pathname for location and list of styles.")
(defparameter *STYLES*
(list "layout_2018.css")
"A list of strings representing relative filenames.")
;; General static files - images etc
(defparameter *STATIC-DIR* (asdf:system-relative-pathname :cl-site "content/static/")
"Pathname for location of static files.")
$('.dropdown').on('', function(e){
$('.dropdown').on('', function(e){
\ No newline at end of file
......@@ -9,10 +9,7 @@
<link rel="stylesheet" href="/static/css/bootstrap.simplex.min.css">
<link href=",400,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link href="/layout_2018.css" rel="stylesheet" type="text/css">
<link href="{{location}}" rel="stylesheet" type="text/css">
<link href="/static/css/layout_2018.css" rel="stylesheet" type="text/css">
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top cl-navbar">
......@@ -5,5 +5,4 @@
(let ((*output-dir* (or output-dir *output-dir*)))
(format t "Generating site in ~A.~%" *output-dir*)
(process-pages *pages*)))
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(in-package :cl-site)
;; Copies/renders stylesheets + adds to global context
(defun process-styles ()
((styles-list (mapcar
(lambda (s) (progn
(uiop:copy-file (make-path *STYLES-DIR* s)
(make-path *OUTPUT-DIR* s))
(cons :location s)))
(push (cons :styles styles-list) *GLOBAL-CONTEXT*)))
;; Copies/renders static assets (imgs, etc)
(defun process-static ()
(let ((destination-root (merge-pathnames #P"static/" *output-dir*))
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