|
178 | 178 | ([title current] (nav-bar title current nil)) |
179 | 179 | ([title current {:keys [source source-href]}] |
180 | 180 | [:nav |
181 | | - [:ul [:li [:a {:href "index.html" :style "text-decoration:none;color:inherit"} |
| 181 | + [:ul [:li [:a {:href "index.html" :title "Back to BONE homepage" |
| 182 | + :style "text-decoration:none;color:inherit"} |
182 | 183 | [:strong title]] |
183 | 184 | (when source |
184 | 185 | (list " - " |
185 | 186 | (if source-href |
186 | 187 | [:a {:href source-href |
| 188 | + :title (str "Visit " source " website") |
187 | 189 | :style "text-decoration:none;color:inherit"} |
188 | 190 | [:strong source]] |
189 | 191 | [:strong source])))]] |
|
251 | 253 | (defn bone-footer |
252 | 254 | "Footer with BONE repo + license link. |
253 | 255 | Options: |
254 | | - :feeds when true (default), appends per-source RSS/JSON/Org links. |
255 | | - Set to false on the root index where those paths don't exist. |
256 | | - :ical when true (default) and :feeds is on, appends an iCal link. |
257 | | - :website / :contribute-url when set, append links to the tracked |
258 | | - project's website and contribution page." |
| 256 | + :feeds when true (default), appends per-source RSS/JSON/Org links. |
| 257 | + Set to false on the root index where those paths don't exist. |
| 258 | + :ical when true (default) and :feeds is on, appends an iCal link. |
| 259 | + :website when set, appends a link to the tracked project's website, |
| 260 | + labeled with :source (the source name) when available." |
259 | 261 | ([] (bone-footer {})) |
260 | | - ([{:keys [ical feeds website contribute-url] :or {ical true feeds true}}] |
| 262 | + ([{:keys [ical feeds website source] :or {ical true feeds true}}] |
261 | 263 | [:footer.bone-footer |
262 | 264 | [:a {:href bone-repo-url} "BONE"] |
263 | 265 | " is " |
|
273 | 275 | (when ical |
274 | 276 | (list " -- " [:a {:href "events/announcements.ics"} "iCal"])))) |
275 | 277 | (when website |
276 | | - (list " -- " [:a {:href website} "Website"])) |
277 | | - (when contribute-url |
278 | | - (list " -- " [:a {:href contribute-url} "Contribute"]))])) |
| 278 | + (list " -- " [:a {:href website} (or source "Website")]))])) |
279 | 279 |
|
280 | 280 | ;; --------------------------------------------------------------------------- |
281 | 281 | ;; Org-mode inline link conversion (shared by bone-docs, bone-stats) |
|
0 commit comments