-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eda8fa
commit 345510d
Showing
12 changed files
with
102 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["^ ","~$header",["^ ","~:row",5,"~:col",1,"~:name","^0","~:ns","~$powerblog.layout","~:top-ns","^5","~:type","~:vector"],"~$layout",["^ ","^1",10,"^2",1,"~:varargs-min-arity",1,"^3","^9","^4","^5","^6","^5","~:arities",["^ ","~:varargs",["^ ","~:ret","^8","~:min-arity",1,"~:arglist-str","[{:keys [title]} & content]"]],"^7","~:fn"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/layout.clj"] | ||
["^ ","~$header",["^ ","~:row",4,"~:col",1,"~:name","^0","~:ns","~$powerblog.layout","~:top-ns","^5","~:type","~:vector"],"~$layout",["^ ","^1",17,"^2",1,"~:varargs-min-arity",1,"^3","^9","^4","^5","^6","^5","~:arities",["^ ","~:varargs",["^ ","~:ret","^8","~:min-arity",1,"~:arglist-str","[{:keys [title]} & content]"]],"^7","~:fn"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/layout.clj"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["^ ","~$render-page",["^ ","~:row",7,"~:col",1,"~:fixed-arities",["~#set",[2]],"~:name","^0","~:ns","~$powerblog.pages.about","~:top-ns","~$powerblog.pages.dhole","~:arities",["^ ","~i2",["^ ","~:ret","~:vector","~:arglist-str","[context page]"]],"~:type","~:fn"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/pages/dhole.clj"] | ||
["^ ","~$render-page",["^ ","~:row",4,"~:col",1,"~:fixed-arities",["~#set",[2]],"~:name","^0","~:ns","~$powerblog.pages.about","~:top-ns","^7","~:arities",["^ ","~i2",["^ ","~:ret","~:vector","~:arglist-str","[context page]"]],"~:type","~:fn"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/pages/about.clj"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["^ ","~$app",["^ ","~:row",15,"~:col",3,"~:name","^0","~:ns","~$user","~:top-ns","^5"],"~$db",["^ ","^1",19,"^2",3,"^3","^7","^4","^5","^6","^5"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/pages/tag.clj"] | ||
["^ ","~$app",["^ ","~:row",15,"~:col",3,"~:name","^0","~:ns","~$user","~:top-ns","^5"],"~$db",["^ ","^1",19,"^2",3,"^3","^7","^4","^5","^6","^5"],"~:filename","/var/home/avery/Documents/dev/blog/src/powerblog/pages/dhole.clj"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
(ns powerblog.layout) | ||
|
||
|
||
;; TODO: some kind of function to put pipes between things here | ||
(def header | ||
[:header.mx-auto.dark:prose-invert.prose.mb-4.space-x-4 | ||
[:a {:href "/"} "home"] | ||
[:a.flex-auto.self-end {:href "/about/"} "about"]]) | ||
[:header.dark:prose-invert.prose.max-w-screen.mx-24.mb-4 | ||
[:nav.flex.items-center.justify-between.border-b.border-darkish-grey.dark:border-white.max-h-12.relative | ||
[:ul.list-none.pl-0 | ||
[:li | ||
[:a {:href "/"} "home"]]] | ||
[:ul.list-none.pl-0.hidden.lg:block | ||
[:li | ||
[:a {:href "/"} "programming resources"]]] | ||
[:ul.list-none.pl-0 | ||
[:li | ||
[:a {:href "/about/"} "about"]]]]]) | ||
|
||
(defn layout [{:keys [title]} & content] | ||
[:html.dark:bg-dark-grey.bg-beige.font-ibm-plex-sans.text-darkish-grey.p-8 | ||
header | ||
[:head | ||
(when title [:title title])] | ||
[:body.py-8 | ||
[:body | ||
content]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters