Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ etc.

### favicon

**NOTE:** when enabling or disabling a favicon, you must do a full re-render of
your site by running `bb clean` and then your `bb render` command.

To enable a [favicon](https://en.wikipedia.org/wiki/Favicon), add
`:enable-favicon true` to your quickblog opts (or use `--enable-favicon
true` on the command line).
Expand Down
Binary file added assets/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added assets/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon.ico
Binary file not shown.
Binary file added assets/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions assets/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions assets/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
11 changes: 6 additions & 5 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

:tasks

{:init (def opts (merge {:blog-title "REPL adventures"
:blog-description "A blog mostly about Clojure and ClojureScript."
:blog-root "https://blog.michielborkent.nl/"
:about-link "https://michielborkent.nl/"
:twitter-handle "borkdude"
{:init (def opts (merge {:blog-title "quickblog demo"
:blog-description "This is just a demo. Please make me your own!"
:blog-root "https://yourdomain/blog/"
:about-link "https://github.com/borkdude/quickblog"
:enable-favicon true
:twitter-handle "yourname"
:out-dir "public"}
(cli/parse-opts *command-line-args*)))

Expand Down
12 changes: 6 additions & 6 deletions src/quickblog/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
(slurp cache-file))
_ (swap! bodies assoc file body)
body (selmer/render (slurp post-template)
(->map body title date tags discuss))
html-file (str/replace file ".md" ".html")]
(lib/write-page! opts (fs/file out-dir html-file)
base-html
{:title title
:body body})
(->map body title date tags discuss))]
(when stale?
(lib/write-page! opts (fs/file out-dir (html-file file))
base-html
{:title title
:body body}))
(let [legacy-dir (fs/file out-dir (str/replace date "-" "/")
(str/replace file ".md" ""))]
(when legacy
Expand Down