Skip to content

Commit 31d2fb4

Browse files
committed
add favicon and logo images
Add images provided by Nils-Hero Lindemann for favicon and site logo. Signed-off-by: Doug Hellmann <[email protected]>
1 parent fe2748f commit 31d2fb4

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

source/_themes/pymotw/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
<link rel="stylesheet" href="{{ pathto('_static/font-awesome/css/font-awesome.min.css', 1) }}" type="text/css" />
3434
<link rel="stylesheet" href="{{ pathto('_static/pymotw.css', 1) }}" type="text/css">
3535

36+
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/favicon.png', 1) }}">
37+
3638
<link rel="alternate" type="application/atom+xml"
3739
title="Doug Hellmann"
3840
href="http://feeds.doughellmann.com/DougHellmann" />
@@ -46,7 +48,7 @@
4648
<body>
4749

4850
<div class="pure-menu pure-menu-open pure-menu-horizontal" id="site-menu">
49-
<a class="pure-menu-heading" href="{{ pathto(master_doc) }}">PyMOTW-3</a>
51+
<a class="pure-menu-heading" href="{{ pathto(master_doc) }}"><img src="{{ pathto('_static/logo.png', 1) }}"> PyMOTW-3</a>
5052

5153
<ul id="top-menu">
5254
<li class="pure-menu-selected"><a href="{{ pathto('py-modindex') }}"><i class="fa fa-list fa-lg"></i> Module Index</a></li>
1.04 KB
Loading
2.08 KB
Loading

source/_themes/pymotw/static/pymotw.less

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,17 @@ a:visited:hover {
113113
}
114114

115115
#site-menu .pure-menu-heading {
116-
text-transform: none;
117-
font-size: 130%;
118-
padding-right: 0;
116+
text-transform: none;
117+
font-size: 130%;
118+
padding-right: 0;
119119
}
120+
/* for the logo image */
121+
#site-menu .pure-menu-heading img {
122+
padding-right: 4px;
123+
position:relative;
124+
top:2px;
125+
}
126+
120127

121128
#top-menu {
122129
float: right;

0 commit comments

Comments
 (0)