8000 Merge pull request #7 from huonw/logo-etc · bluss/blog.rust-lang.org@9770d7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 9770d7b

Browse files
committed
Merge pull request rust-lang#7 from huonw/logo-etc
Add the logo to the site title
2 parents 88d827e + 2ac2c28 commit 9770d7b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: >
44
Words from the Rust team
55
baseurl: ""
66
url: "http://blog.rust-lang.org"
7+
logo: "http://www.rust-lang.org/logos/rust-logo-64x64-blk.png"
78
twitter_username: rustlang
89
github_username: rust-lang
910

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<div class="wrapper">
44

5-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
5+
<a class="site-title" href="{{ site.baseurl }}/"><img id="site-logo" src="{{ site.logo }}"/> {{ site.title }}</a>
66

7-
<nav class="site-nav">
7+
<!--<nav class="site-nav">
88
<a href="#" class="menu-icon">
99
<svg viewBox="0 0 18 15">
1010
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
@@ -20,7 +20,7 @@
2020
{% endif %}
2121
{% endfor %}
2222
</div>
23-
</nav>
23+
</nav>-->
2424

2525
</div>
2626

_sass/_layout.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
position: relative;
1111
}
1212

13+
#site-logo {
14+
width: 48px;
15+
height: 48px;
16+
padding: 2px;
17+
}
18+
1319
.site-title {
1420
font-size: 26px;
1521
line-height: 56px;

0 commit comments

Comments
 (0)
0