Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request datacarpentry#250 from fmichonneau/favicons
Browse files Browse the repository at this point in the history
Favicons and logos
  • Loading branch information
rgaiacs authored May 16, 2018
2 parents caa6e0b + d0022dc commit f30cc4e
Show file tree
Hide file tree
Showing 90 changed files with 331 additions and 32 deletions.
33 changes: 33 additions & 0 deletions _includes/favicons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{% assign favicon_url = site.baseurl | append: '/assets/favicons/' | append: site.carpentry | prepend: site.url %}

{% if site.carpentry == 'swc' %}
{% assign carpentry = 'Software Carpentry' %}
{% elsif site.carpentry == 'dc' %}
{% assign carpentry = 'Data Carpentry' %}
{% elsif site.carpentry == 'lc' %}
{% assign carpentry = 'Library Carpentry' %}
{% elsif site.carpentry == 'cp' %}
{% assign carpentry = 'The Carpentries' %}
{% endif %}

<!-- Favicons for everyone -->
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ favicon_url }}/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ favicon_url }}/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ favicon_url }}/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ favicon_url }}/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{ favicon_url }}/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ favicon_url }}/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{ favicon_url }}/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ favicon_url }}/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-128.png" sizes="128x128" />
<meta name="application-name" content="{{ carpentry }} - {{ site.title }}"/>
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="{{ favicon_url }}/mstile-144x144.png" />
<meta name="msapplication-square70x70logo" content="{{ favicon_url }}/mstile-70x70.png" />
<meta name="msapplication-square150x150logo" content="{{ favicon_url }}/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="{{ favicon_url }}/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="{{ favicon_url }}/mstile-310x310.png" />
3 changes: 3 additions & 0 deletions _includes/lesson_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
{% elsif site.carpentry == "lc" %}
Copyright &copy; 2016–{{ 'now' | date: "%Y" }}
<a href="{{ site.lc_site }}">Library Carpentry</a>
{% elsif site.carpentry == "cp" %}
Copyright &copy; 2018–{{ 'now' | date: "%Y" }}
<a href="{{ site.carpentries_site }}">The Carpentries</a>
{% endif %}
</div>
<div class="col-md-6 help-links" align="right">
Expand Down
12 changes: 8 additions & 4 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@
</button>

{% comment %} Select what logo to display. {% endcomment %}
{% if page.carpentry == "swc" %}
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}" class="pull-left">
<img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
</a>
{% elsif page.carpentry == "dc" %}
{% elsif site.carpentry == "dc" %}
<a href="{{ site.dc_site }}" class="pull-left">
<img class="navbar-logo" src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" />
</a>
{% elsif page.carpentry == "lc" %}
{% elsif site.carpentry == "lc" %}
<a href="{{ site.lc_site }}" class="pull-left">
<img class="navbar-logo" src="{{ page.root }}/assets/img/lc-icon-black.png" alt="Library Carpentry logo" />
<img class="navbar-logo" src="{{ page.root }}/assets/img/lc-icon-black.svg" alt="Library Carpentry logo" />
</a>
{% elsif site.carpentry == "cp" %}
<a href="{{ site.carpentries_site }}" class="pull-left">
<img class="navbar-logo" src="{{ page.root }}/assets/img/cp-logo-blue.svg" alt="The Carpentries logo" />
</a>
{% endif %}

Expand Down
4 changes: 3 additions & 1 deletion _includes/workshop_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
<h4>
Copyright &copy; 2016–{{ 'now' | date: "%Y" }}
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
<a href="{{ site.swc_site }}">Software Carpentry</a>
{% elsif site.carpentry == "dc" %}
<a href="{{ site.dc_site }}">Data Carpentry</a>
{% elsif site.carpentry == "lc" %}
<a href="{{ site.lc_site }}">Library Carpentry</a>
{% elsif site.carpentry == "cp" %}
<a href="{{ site.carpentries_site }}">The Carpentries</a>
{% endif %}
</h4>
</div>
Expand Down
10 changes: 3 additions & 7 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/lesson.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/syntax.css" />
{% if site.carpentry == "swc" %}
<link rel="shortcut icon" type="image/x-icon" href="{{ page.root }}/assets/img/favicon-swc.ico" />
{% elsif site.carpentry == "dc" %}
<link rel="shortcut icon" type="image/x-icon" href="{{ page.root }}/assets/img/favicon-dc.ico" />
{% elsif site.carpentry == "lc" %}
<link rel="shortcut icon" type="image/x-icon" href="{{ page.root }}/assets/img/favicon-lc.ico" />
{% endif %}

{% include favicons.html %}

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
Expand Down
10 changes: 3 additions & 7 deletions _layouts/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/bootstrap-theme.css" />
<link rel="stylesheet" type="text/css" href="{{ page.root }}/assets/css/lesson.css" />
{% if site.carpentry == "swc" %}
<link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
{% elsif site.carpentry == "dc" %}
<link rel="shortcut icon" type="image/x-icon" href="/favicon-dc.ico" />
{% elsif site.carpentry == "lc" %}
<link rel="shortcut icon" type="image/x-icon" href="/favicon-lc.ico" />
{% endif %}

{% include favicons.html %}

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
Expand Down
Binary file added assets/favicons/cp/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon-196x196.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/favicon.ico
Binary file not shown.
Binary file added assets/favicons/cp/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/cp/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/dc/apple-touch-icon-76x76.png
Binary file added assets/favicons/dc/favicon-128.png
Binary file added assets/favicons/dc/favicon-16x16.png
Binary file added assets/favicons/dc/favicon-196x196.png
Binary file added assets/favicons/dc/favicon-32x32.png
Binary file added assets/favicons/dc/favicon-96x96.png
Binary file added assets/favicons/dc/favicon.ico
Binary file not shown.
Binary file added assets/favicons/dc/mstile-144x144.png
Binary file added assets/favicons/dc/mstile-150x150.png
Binary file added assets/favicons/dc/mstile-310x150.png
Binary file added assets/favicons/dc/mstile-310x310.png
Binary file added assets/favicons/dc/mstile-70x70.png
Binary file added assets/favicons/lc/apple-touch-icon-114x114.png
Binary file added assets/favicons/lc/apple-touch-icon-120x120.png
Binary file added assets/favicons/lc/apple-touch-icon-144x144.png
Binary file added assets/favicons/lc/apple-touch-icon-57x57.png
Binary file added assets/favicons/lc/apple-touch-icon-60x60.png
Binary file added assets/favicons/lc/apple-touch-icon-72x72.png
Binary file added assets/favicons/lc/apple-touch-icon-76x76.png
Binary file added assets/favicons/lc/favicon-128.png
Binary file added assets/favicons/lc/favicon-16x16.png
Binary file added assets/favicons/lc/favicon-196x196.png
Binary file added assets/favicons/lc/favicon-32x32.png
Binary file added assets/favicons/lc/favicon-96x96.png
Binary file added assets/favicons/lc/favicon.ico
Binary file not shown.
Binary file added assets/favicons/lc/mstile-144x144.png
Binary file added assets/favicons/lc/mstile-150x150.png
Binary file added assets/favicons/lc/mstile-310x150.png
Binary file added assets/favicons/lc/mstile-310x310.png
Binary file added assets/favicons/lc/mstile-70x70.png
Binary file added assets/favicons/swc/apple-touch-icon-114x114.png
Binary file added assets/favicons/swc/apple-touch-icon-120x120.png
Binary file added assets/favicons/swc/apple-touch-icon-144x144.png
Binary file added assets/favicons/swc/apple-touch-icon-152x152.png
Binary file added assets/favicons/swc/apple-touch-icon-57x57.png
Binary file added assets/favicons/swc/apple-touch-icon-60x60.png
Binary file added assets/favicons/swc/apple-touch-icon-72x72.png
Binary file added assets/favicons/swc/apple-touch-icon-76x76.png
Binary file added assets/favicons/swc/favicon-128.png
Binary file added assets/favicons/swc/favicon-16x16.png
Binary file added assets/favicons/swc/favicon-196x196.png
Binary file added assets/favicons/swc/favicon-32x32.png
Binary file added assets/favicons/swc/favicon-96x96.png
Binary file added assets/favicons/swc/favicon.ico
Binary file not shown.
Binary file added assets/favicons/swc/mstile-144x144.png
Binary file added assets/favicons/swc/mstile-150x150.png
Binary file added assets/favicons/swc/mstile-310x150.png
Binary file added assets/favicons/swc/mstile-310x310.png
Binary file added assets/favicons/swc/mstile-70x70.png
7 changes: 7 additions & 0 deletions assets/img/cp-logo-blue.svg
74 changes: 74 additions & 0 deletions assets/img/dc-logo-black.svg
30 changes: 17 additions & 13 deletions assets/img/lc-icon-black.svg
Binary file added assets/img/lc-logo-black.png
Loading

0 comments on commit f30cc4e

Please sign in to comment.