Skip to content

Commit 522e3e2

Browse files
Add Favicon (devcontainers#176)
* Add favicon file * change favicon .png -> .ico * extract css theme color for use site * use jekyll site to provide css color * set meta theme color to change title bar color
1 parent dbbe44f commit 522e3e2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description: >
77
url: https://devcontainers.github.io # the base hostname & protocol for your site
88
git_address: https://github.com/devcontainers/devcontainers.github.io
99
git_edit_address: https://github.com/devcontainers/devcontainers.github.io/settings/pages/blob/gh-pages
10+
theme_color: 2753E3
1011

1112
# Build settings
1213
markdown: kramdown

_includes/head.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<link rel="stylesheet" href="{{ "/css/bootswatch/cosmo/bootstrap.min.css" | prepend: site.baseurl }}">
1212
<link rel="stylesheet" href="{{ "/css/fontawesome-all.min.css" | prepend: site.baseurl }}">
1313
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
14-
<link rel="shortcut icon" href="{{ "/img/favicon.png" | prepend: site.baseurl }}">
14+
<link rel="shortcut icon" href="{{ "/img/favicon.ico" | prepend: site.baseurl }}">
15+
<meta name="theme-color" content="#{{ site.theme_color }}">
1516

1617
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
1718
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />

css/main.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ body {
2424
}
2525

2626
.bg-primary {
27-
background-color: #2753e3 !important;
27+
background-color: #{{ site.theme_color }} !important;
2828
}
2929

3030
.header-container {
@@ -442,15 +442,15 @@ pre[class=highlight] {
442442
}
443443

444444
.nav .nav-link {
445-
color: #2753e3 !important;
445+
color: #{{ site.theme_color }} !important;
446446
}
447447

448448
.nav .nav-link:hover {
449449
color: #1034a8 !important;
450450
}
451451

452452
a {
453-
color: #2753e3;
453+
color: #{{ site.theme_color }};
454454
}
455455

456456
a:hover {

img/favicon.ico

174 KB
Binary file not shown.

0 commit comments

Comments
 (0)