Skip to content

Commit d7a52c2

Browse files
committed
added favicon.ico
1 parent fe97994 commit d7a52c2

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# projectspecific
44
*.orig
55
lastcommit.js
6-
*.log
6+
*.log*
77
/resources/public/js/compiled/[a-z]*
88
/logs
99

resources/public/favicon.ico

20.7 KB
Binary file not shown.

resources/public/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<title>clojurebridgemn.org development mode</title>
5+
<link href="/favicon.ico" rel="icon" type="image/x-icon">
56
<meta charset="utf-8"/>
67
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0"/>
78
<link href="css/clojurebridgemn.css" rel="stylesheet" type="text/css">

src/main/clj/clojurebridgemn/web.clj

+7-1
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@
7676
(defn append-body [nodes new-body-nodes]
7777
(append-at :body nodes new-body-nodes))
7878

79+
(defn add-favicon [nodes]
80+
(append-head nodes
81+
(html [:link {:rel "icon" :href "/favicon.ico" :type "image/x-icon"}])))
82+
7983
(defn add-css [nodes style-uri]
8084
(append-head nodes
81-
(html [:link {:rel "stylesheet" :href style-uri}])))
85+
(html [:link {:rel "stylesheet" :href style-uri :type "text/css"}])))
8286

8387
(defn add-js [nodes script-uri]
8488
(append-head nodes
@@ -119,13 +123,15 @@
119123
;; for production
120124
(defn create-html [& [req]]
121125
(-> basic-html5
126+
(add-favicon)
122127
(add-css app-css-uri)
123128
(add-js app)
124129
(add-div "app")
125130
render-snippet))
126131

127132
(defn create-test-html [& [req]]
128133
(-> basic-html5
134+
(add-favicon)
129135
(add-css app-css)
130136
(add-js findns)
131137
(add-js phantomjs-shims)

0 commit comments

Comments
 (0)