Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
prace-lessons
Lesson Template
Commits
f550f8ba
Unverified
Commit
f550f8ba
authored
6 years ago
by
François Michonneau
Browse files
Options
Downloads
Patches
Plain Diff
add html for favicons
parent
ce5073ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_includes/favicons.html
+33
-0
33 additions, 0 deletions
_includes/favicons.html
_layouts/base.html
+3
-7
3 additions, 7 deletions
_layouts/base.html
with
36 additions
and
7 deletions
_includes/favicons.html
0 → 100644
+
33
−
0
View file @
f550f8ba
{% 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"
/>
This diff is collapsed.
Click to expand it.
_layouts/base.html
+
3
−
7
View file @
f550f8ba
...
...
@@ -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]>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment