diff --git a/qlfile.lock b/qlfile.lock index 9f10b07..96f8bda 100644 --- a/qlfile.lock +++ b/qlfile.lock @@ -1,11 +1,11 @@ ("quicklisp" . (:class qlot/source/dist:source-dist :initargs (:distribution "http://beta.quicklisp.org/dist/quicklisp.txt" :%version :latest) - :version "2023-02-15")) + :version "2023-10-21")) ("ultralisp" . (:class qlot/source/dist:source-dist :initargs (:distribution "http://dist.ultralisp.org/" :%version :latest) - :version "20230501215000")) + :version "20240329145000")) ("slynk" . (:class qlot/source/github:source-github :initargs (:repos "svetlyak40wt/sly" :ref nil :branch "patches" :tag nil) diff --git a/templates/static-site/.coleslawrc b/templates/static-site/.coleslawrc new file mode 100644 index 0000000..7c2d530 --- /dev/null +++ b/templates/static-site/.coleslawrc @@ -0,0 +1,43 @@ +;;; -*- mode : lisp -*- +(;; Required information + :author "Lisp Static Site" ;; to be placed on post pages and in the copyright/CC-BY-SA notice + :deploy-dir "deploy/" ;; for Coleslaw's generated HTML to go in + :domain "https://example.com" ;; to generate absolute links to the site content. Note: with :cname option of gh-pages, this requires a url scheme, e.g. https://fake.org + :routing ((:post "posts/~a") ;; to determine the URL scheme of content on the site + (:tag-index "tag/~a") + (:month-index "date/~a") + (:numeric-index "posts/~d") + (:feed "~a.xml") + (:tag-feed "tag/~a.xml") + (:sitemap "~a.xml")) + :title "Improved Means for Achieving Deteriorated Ends" ;; a site title + :theme "hyde" ;; to select one of the themes in "coleslaw/themes/" + + ;; Optional information + :excerpt-sep "" ;; to set the separator for excerpt in content + :feeds ("lisp") + :plugins ((analytics :tracking-code "foo") + (disqus :shortname "my-site-name") + ; (incremental) ;; *Remove comment to enable incremental builds. + (mathjax) + (sitemap) + (static-pages) + ;; deployment plugins + ;; deployment to github pages + ; (gh-pages :url "git@github.com:myaccount/myrepo.git" + ; ; :cname t ;; if you want to use the custom domain --- see http://pages.github.com/ + ; ) + ;; versioned deployment. Remove comment to enable symlinked, timestamped deploys. + ; (versioned) + ;; default deploy method is rsync + (rsync "-avz" "--delete" "--exclude" ".git/" "--exclude" ".gitignore" "--copy-links") + ) + :sitenav ((:url "http://Lisp Static Site.github.com/" :name "Home") + (:url "http://twitter.com/Lisp Static Site" :name "Twitter") + (:url "http://github.com/Lisp Static Site" :name "Code") + (:url "http://soundcloud.com/Lisp Static Site" :name "Music") + (:url "http://redlinernotes.com/docs/talks/" :name "Talks")) + :staging-dir "/tmp/coleslaw/" ;; for Coleslaw to do intermediate work, default: "/tmp/coleslaw" +) + +;; * Prerequisites described in plugin docs. diff --git a/templates/static-site/pages/foo.page b/templates/static-site/pages/foo.page new file mode 100644 index 0000000..0f57984 --- /dev/null +++ b/templates/static-site/pages/foo.page @@ -0,0 +1,18 @@ +;;;;; +title: A foo page. +tags: bar, baz +date: 2024-03-30 08:18:05 +format: md +URL: index.html +;;;;; + + + + +Here is my content. + + + +Excerpt separator can also be extracted from content. +Add `excerpt: ` to the above metadata. +Excerpt separator is `` by default. diff --git a/templates/static-site/posts/first.post b/templates/static-site/posts/first.post new file mode 100644 index 0000000..bcd57ba --- /dev/null +++ b/templates/static-site/posts/first.post @@ -0,0 +1,17 @@ +;;;;; +title: First post +tags: bar, baz +date: 2024-03-29 18:31:49 +format: md +;;;;; + + + + +Here is my content. + + + +Excerpt separator can also be extracted from content. +Add `excerpt: ` to the above metadata. +Excerpt separator is `` by default. diff --git a/templates/static-site/themes/default/base.tmpl b/templates/static-site/themes/default/base.tmpl new file mode 100644 index 0000000..24303cd --- /dev/null +++ b/templates/static-site/themes/default/base.tmpl @@ -0,0 +1,57 @@ +{namespace coleslaw.theme.hyde} + +{template base} +{\n} + + + {$config.title} + + + + + + + {if $injections.head} + {foreach $injection in $injections.head} + {$injection |noAutoescape} + {/foreach} + {/if} + + + +
+ {$raw |noAutoescape} +
+ {if $injections.body} + {foreach $injection in $injections.body} + {$injection |noAutoescape} + {/foreach} + {/if} +
+
+ Unless otherwise credited all material + {if $config.license} + {$config.license} + {else} + + Creative Commons License + + {/if} + by {$config.author} + +
+ + +{/template} diff --git a/templates/static-site/themes/default/css/cc-by-sa.png b/templates/static-site/themes/default/css/cc-by-sa.png new file mode 100644 index 0000000..c67509f Binary files /dev/null and b/templates/static-site/themes/default/css/cc-by-sa.png differ diff --git a/templates/static-site/themes/default/css/logo_large.jpg b/templates/static-site/themes/default/css/logo_large.jpg new file mode 100644 index 0000000..c4b820d Binary files /dev/null and b/templates/static-site/themes/default/css/logo_large.jpg differ diff --git a/templates/static-site/themes/default/css/logo_medium.jpg b/templates/static-site/themes/default/css/logo_medium.jpg new file mode 100644 index 0000000..b4257e6 Binary files /dev/null and b/templates/static-site/themes/default/css/logo_medium.jpg differ diff --git a/templates/static-site/themes/default/css/logo_small.jpg b/templates/static-site/themes/default/css/logo_small.jpg new file mode 100644 index 0000000..ea5c609 Binary files /dev/null and b/templates/static-site/themes/default/css/logo_small.jpg differ diff --git a/templates/static-site/themes/default/css/style.css b/templates/static-site/themes/default/css/style.css new file mode 100644 index 0000000..44351fb --- /dev/null +++ b/templates/static-site/themes/default/css/style.css @@ -0,0 +1,100 @@ +#content { background: #fff; padding-top: 1em } +#header { float: right; margin-left: 1em; margin-bottom: 1em } +#coleslaw-logo { float: right; } +a { text-decoration: none; color: #992900 } +a.anchor { color: black } +.date { font-style: italic } +.title { margin-left: 1em } +.article-meta { margin-left: 2.2em; margin-bottom: 2.2em } +.archive-title { font-size: 1em } .article-title { font-size: 2em } +.article-content { margin-left: 2.2em } +.fineprint { text-align: center; font-size: .9em; margin-top: .5em } +.tag-low { font-size: .8em; font-weight: 200 } +.tag-medium { font-size: 1.2em; font-weight: 600 } +.tag-high { font-size: 1.8em; font-weight: 800 } +.navigation { font-size: 1.2em; border-bottom: 1px solid } +body { background-color: white; font-family: Vollkorn; font-size: 14pt } +pre { overflow: auto; margin-left: 1em; padding: 0.5em; border-left: 1px dashed; + background-color: white; padding: .75em .5em; font-family: (unquote mono-font) } +tt { font-size: .9em; font-family: (unquote mono-font) } + +/* Stolen from lisppaste for the colorize output of 3bmd */ +.paste { background-color: #F4F4F4; color: black; } +.paste:hover { background-color: #F4F4F4; color: black; } +.symbol { color : #770055; background-color : transparent; border: 0px; margin: 0px;} +.special { color : #FF5000; background-color : inherit; } +.keyword { color : #770000; background-color : inherit; } +.comment { color : #007777; background-color : inherit; } +.string { color : #777777; background-color : inherit; } +.atom { color : #314F4F; background-color : inherit; } +.macro { color : #FF5000; background-color : inherit; } +.variable { color : #36648B; background-color : inherit; } +.function { color : #8B4789; background-color : inherit; } +.attribute { color : #FF5000; background-color : inherit; } +.character { color : #0055AA; background-color : inherit; } +.syntaxerror { color : #FF0000; background-color : inherit; } +.diff-deleted { color : #5F2121; background-color : inherit; } +.diff-added { color : #215F21; background-color : inherit; } +span.paren1 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren1:hover { color : inherit; background-color : #BAFFFF; } +span.paren2 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren2:hover { color : inherit; background-color : #FFCACA; } +span.paren3 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren3:hover { color : inherit; background-color : #FFFFBA; } +span.paren4 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren4:hover { color : inherit; background-color : #CACAFF; } +span.paren5 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren5:hover { color : inherit; background-color : #CAFFCA; } +span.paren6 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } +span.paren6:hover { color : inherit; background-color : #FFBAFF; } + +@media (max-width: 680px) { + + #content { + padding-top: 0em + } + + .title { + margin-left: 0.1em; + } + + .article-meta { + margin-bottom: 1em; + } + + .article-meta, .article-content { + float: left; + margin-left: 0em; + margin-right: 0em; + width: 90%; + padding-left: 5%; + } + + .article, .article-content { + margin-left: 0em; + text-align: justify; + } + + img { + display: block; + margin-left: auto; + margin-right: auto; + width: 100%; + } + + #coleslaw-logo { + float: none; + } + + #coleslaw-logo img { + margin-left: auto; + margin-right: auto; + float: none; + width: auto; + } + + .fineprint a img { + width: auto; + clear: both; + } +} diff --git a/templates/static-site/themes/default/index.tmpl b/templates/static-site/themes/default/index.tmpl new file mode 100644 index 0000000..29cbee9 --- /dev/null +++ b/templates/static-site/themes/default/index.tmpl @@ -0,0 +1,34 @@ +{namespace coleslaw.theme.hyde} + +{template index} +

{$index.title}

+{foreach $obj in $index.content} + +{/foreach} +
+ {if $prev} Previous {/if} + {if $next} Next {/if} +
+{if $tags} +
+

This blog covers + {foreach $tag in $tags} + {$tag.name}{nil} + {if not isLast($tag)},{sp}{/if} + {/foreach} +

+{/if} +{if $months} +
+

View content from + {foreach $month in $months} + {$month.name}{nil} + {if not isLast($month)},{sp}{/if} + {/foreach} +

+{/if} +{/template} diff --git a/templates/static-site/themes/default/post.tmpl b/templates/static-site/themes/default/post.tmpl new file mode 100644 index 0000000..f7b81bc --- /dev/null +++ b/templates/static-site/themes/default/post.tmpl @@ -0,0 +1,27 @@ +{namespace coleslaw.theme.hyde} + +{template post} +{\n} +
{\n} + {$post.text |noAutoescape} +
{\n} +
{\n} + {if $prev} Previous
{/if}{\n} + {if $next} Next
{/if}{\n} +
{\n} +{/template}