Skip to content

Commit

Permalink
Fix feed, bring back logos
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Jul 12, 2023
1 parent 40a7bd0 commit 9c21ee7
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 30 deletions.
2 changes: 1 addition & 1 deletion blog/growing-our-team.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
date: 2020-11-01
title: "Growing the Gaiwan team"
slug: "growing-our-team"
author: "Mitesh (@oxalorg)"
author: "Mitesh (@oxalorg@twitter.com)"
---

We have some great news to share today. Our Gaiwan team has officially expanded
Expand Down
1 change: 1 addition & 0 deletions repl_sessions/.#markdown.clj
39 changes: 25 additions & 14 deletions src/co/gaiwan/site/blog.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
(ns co.gaiwan.site.blog
(:require [clj-rss.core :as rss]
[co.gaiwan.site.layout :as layout]
[co.gaiwan.site.md-files :as md-files]
[co.gaiwan.site.open-graph :as og]))
(:require
[clj-rss.core :as rss]
[co.gaiwan.site.layout :as layout]
[co.gaiwan.site.md-files :as md-files]
[co.gaiwan.site.open-graph :as og]
[lambdaisland.hiccup :as hiccup]))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Components
Expand Down Expand Up @@ -65,16 +67,25 @@
(def posts (delay (md-files/slurp-dir "blog")))

(defn get-blog-rss [_]
{:status 200
:body (apply rss/channel-xml
{:title "Gaiwan Blog" :link "https://gaiwan.co/blog" :description "The Gaiwan Blog"}
(for [{:keys [meta html]} (vals @posts)
:let [{:keys [title slug author date]} meta]]
{:title title
:link (str "https://gaiwan.co/blog/" slug)
:description html
:author author
:pubDate (.toInstant date)}))})
(let [posts (vals @posts)]
{:status 200
:body (rss/channel-xml
{:title "Gaiwan Blog"
:link "https://gaiwan.co/blog"
:description "The Gaiwan Blog"
:language "en-us"
:copyright (str "© " (+ 1900 (.getYear (java.util.Date.))) " Gaiwan GmbH")
:pubDate (.toInstant (last (sort (map (comp :date :meta) posts))))
:image "https://gaiwan.co/assets/imgs/Gaiwan-logo-transparent-bg.png"}
(for [{:keys [meta hiccup]} posts
:let [{:keys [title slug author date]} meta]]
{:title title
:link (str "https://gaiwan.co/blog/" slug)
:description (str "<![CDATA["
(hiccup/render hiccup {:doctype? false})
"]]>")
:author author
:pubDate (.toInstant date)}))}))

(defn get-blog-item [request]
(let [{:keys [slug]} (:path-params request)
Expand Down
4 changes: 2 additions & 2 deletions src/co/gaiwan/site/components/footer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
;; ["/About/" "About us"]
["https://gaiwan.notion.site/Gaiwan-Strategic-Objective-d40123054382433fb75422b77cc4b25e" "Company objectives"]
["https://gaiwan.notion.site/Gaiwan-operating-principles-3f74a7fd1ee2425eb918879fc55dbfb8" "Company values"]
#_["https://gaiwan.co/assets/imgs/Gaiwan-logo-transparent-bg.png" "Logo transparent"]
#_["https://gaiwan.co/assets/imgs/Gaiwan-logo-white-bg-with-border.png" "Logo white"]]]
["https://gaiwan.co/assets/imgs/Gaiwan-logo-transparent-bg.png" "Logo transparent"]
["https://gaiwan.co/assets/imgs/Gaiwan-logo-white-bg-with-border.png" "Logo white"]]]
[:li {:class "mb-2"}
[:a {:class "text-gray-600 hover:text-gray-900 transition duration-150 ease-in-out" :href link}
caption]])]]
Expand Down
31 changes: 18 additions & 13 deletions src/co/gaiwan/site/data.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

(def team-members
[{:title "Arne Brasseur (Berlin)"
:subtitle "@plexus"
:subtitle "@plexus@toot.cat"
:link "https://github.com/plexus"
:image "https://avatars.githubusercontent.com/u/32212?v=4"
:description '([:p "Arne has been delivering software solutions for well
Expand All @@ -15,22 +15,22 @@
them as a series of simple solutions."]
[:p "He loves a nice cup of tea, and likes to to go for runs."])}
#_{:title "Felipe Barros (Recife)"
:subtitle "@barrosfelipe"
:link "https://github.com/barrosfelipe"
:image "https://avatars.githubusercontent.com/u/9657386?v=4"
:description '([:p "While still at school, GNU/Linux liberated Felipe from
:subtitle "@barrosfelipe"
:link "https://github.com/barrosfelipe"
:image "https://avatars.githubusercontent.com/u/9657386?v=4"
:description '([:p "While still at school, GNU/Linux liberated Felipe from
the shackles of digital oblivion and corporate abuse."]
[:p "Being a keyboard enthusiast who follows the Dvorak
[:p "Being a keyboard enthusiast who follows the Dvorak
branch of the Emacs faith, he already manipulated text in Vim
and Emacs way before his renewed interest in computer
programming and cherry-picked the Clojure/ClojureScript path
after falling in love with Rich Hickey’s capillary
parentheses/curls."]
#_[:p "An arts person, likes to spend free time writing or
#_[:p "An arts person, likes to spend free time writing or
drawing and can often be caught talking about interfaces as
handcrafted, artisanal work."])}
{:title "Ariel Alexi (Rosh HaAyin)"
:subtitle "@ArielA147"
:subtitle "@ArielA147@twitter.com"
:link "https://github.com/ArielA147"
:image "https://avatars.githubusercontent.com/u/43312651?v=4"
:description '([:p "Ariel is a master's student with an insatiable thirst for knowledge.
Expand All @@ -40,13 +40,13 @@
[:p "Oh, and one more thing: if you challenge her to a
game of Mario Kart, be prepared for a fierce competition!."])}
{:title "Alys Brooks (Madison)"
:subtitle "@alysbrooks"
:subtitle "@alysbrooks@journa.host"
:link "https://github.com/alysbrooks"
:image (utils/img "avatars/alys.jpg")
:description '([:p "Alyss is a professional writer and editor by day and a programmer by night. She has worked as a technical writer at Epic."]
[:p "She loves open source and photography."])}
{:title "Mitesh Shah (Mumbai)"
:subtitle "@oxalorg"
:subtitle "@oxalorg@twitter.com"
:link "https://github.com/oxalorg"
:image (utils/img "avatars/mitesh-oxalorg.jpg")
:description '([:p "Mitesh learnt coding because of his desire to hack video
Expand All @@ -58,15 +58,15 @@
:href "https://youtube.com/c/oxalorg"} "YouTube Channel"]
"."])}
{:title "Laurence Chen (Taipei)"
:subtitle "@humorless"
:subtitle "@[email protected]"
:link "https://github.com/humorless"
:image "https://avatars.githubusercontent.com/u/3061798?v=4"
:description '([:p "Laurence is an experienced developer with a knack for
understanding the needs of the customer, and delivering pragmatic solutions.
He has created bespoke systems for Taiwan-based SMBs, and offers consulting
to the LINE corporation."])}
{:title "Joshua Ballanco (Miami)"
:subtitle "@jballanc"
:subtitle "@jballanc@twitter.com"
:link "https://github.com/jballanc"
:image (utils/img "avatars/jballanc.jpg")
:description
Expand All @@ -90,7 +90,12 @@
:description
'([:p "As a product manager / owner, Bettina has helped users relocate, learn languages, and get shopping deals online and in mobile apps."]
[:p "People have told her that her deep user insight and pragmatic approach to technical solutions are her superpowers."]
[:p "To balance all the screen time, Bettina practices yoga and meditate."])}])
[:p "To balance all the screen time, Bettina practices yoga and meditate."])}
{:title "Gabriel do Nascimento Ribeiro"
:subtitle ""
:link ""
:image ""
:description '()}])

(def faqs [{:question ""}])

Expand Down

0 comments on commit 9c21ee7

Please sign in to comment.