Skip to content

Commit df003a4

Browse files
committed
Merge pull request #3 from rkmallik/master
adding favicon
2 parents fc74106 + 488c7a2 commit df003a4

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

_config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public_key_url: "https://raw.pastebin.com/LINK-TO-PUBLIC-KEY"
3131

3232
avatar: yes
3333
#avatar_img_path: "imgs/avatar.jpg""
34-
# You can link to your GitHub image. That way it will get updated
34+
# You can link to your GitHub image. That way it will get updated
3535
# automatically whenever you change your GitHub profile picture
3636
avatar_img_path: "https://avatars2.githubusercontent.com/u/17301305"
3737

@@ -40,6 +40,12 @@ front_img: yes
4040
front_img_path: "imgs/background.jpg"
4141
#front_img_path: "https://external.url/image.jpg"
4242

43+
44+
favicon_img: yes
45+
favicon_img_path: "imgs/favicon.ico"
46+
#favicon_img_path: "https://external.url/favicon.ico"
47+
48+
4349
# Build settings
4450
markdown: kramdown
4551
permalink: pretty

imgs/favicon.ico

6.37 KB
Binary file not shown.

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1111
<meta name="description" content="{{ site.description }}">
12-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
12+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
13+
{% if site.favicon_img %}
14+
<link rel="shortcut icon" href="{{ site.favicon_img_path }}" />
15+
{% endif %}
1316
<link rel="stylesheet" href="{{ "css/front.css" | prepend: site.baseurl }}">
1417
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'>
1518
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -75,7 +78,7 @@ <h3>{{ site.description }}</h3>
7578
{% if site.soundcloud_username %}
7679
<li><a class="fa fa-2x fa-soundcloud" href="https://soundcloud.com/{{ site.soundcloud_username }}"><span class="description">Soundcloud</span></a></li>
7780
{% endif %}
78-
81+
7982
{% if site.lastfm_username %}
8083
<li><a class="fa fa-2x fa-lastfm" href="http://www.last.fm/user/{{ site.lastfm_username }}"><span class="description">Last.fm</span></a></li>
8184
{% endif %}
@@ -116,4 +119,3 @@ <h3>{{ site.description }}</h3>
116119

117120
</body>
118121
</html>
119-

0 commit comments

Comments
 (0)