Skip to content

Commit 57539e3

Browse files
committed
update header to try to fix bug; related to daattali#33
1 parent 9197b79 commit 57539e3

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

_includes/head.html

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,74 @@
1212
{% endif %}
1313

1414
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
15+
16+
<!-- everything has to be repeated twice because on 2016-02-01 GitHub pages migrated to jekyll 3; see bug https://github.com/jekyll/jekyll/issues/4439 -->
1517

16-
<!-- TODO hardcode the required JS because on 2016-02-01 GitHub pages migrated to jekyll 3 and broke this template -->
17-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
18-
<link rel="stylesheet" href="/css/bootstrap.min.css" />
19-
<link rel="stylesheet" href="/css/main.css" />
20-
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
21-
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
22-
<link rel="stylesheet" href="/css/index.css" />
23-
<!-- end TODO -->
24-
18+
{% if page.common-ext-css %}
19+
{% for css in page.common-ext-css %}
20+
<link rel="stylesheet" href="{{ css }}" />
21+
{% endfor %}
22+
{% endif %}
2523
{% if layout.common-ext-css %}
2624
{% for css in layout.common-ext-css %}
2725
<link rel="stylesheet" href="{{ css }}" />
2826
{% endfor %}
29-
{% endif %}
27+
{% endif %}
3028

29+
{% if page.common-css %}
30+
{% for css in page.common-css %}
31+
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
32+
{% endfor %}
33+
{% endif %}
3134
{% if layout.common-css %}
3235
{% for css in layout.common-css %}
3336
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
3437
{% endfor %}
35-
{% endif %}
38+
{% endif %}
3639

40+
{% if page.common-googlefonts %}
41+
{% for font in page.common-googlefonts %}
42+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
43+
{% endfor %}
44+
{% endif %}
3745
{% if layout.common-googlefonts %}
3846
{% for font in layout.common-googlefonts %}
39-
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
47+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
4048
{% endfor %}
4149
{% endif %}
4250

51+
{% if page.ext-css %}
52+
{% for css in page.ext-css %}
53+
<link rel="stylesheet" href="{{ css }}" />
54+
{% endfor %}
55+
{% endif %}
4356
{% if layout.ext-css %}
4457
{% for css in layout.ext-css %}
4558
<link rel="stylesheet" href="{{ css }}" />
4659
{% endfor %}
4760
{% endif %}
4861

62+
{% if page.css %}
63+
{% for css in page.css %}
64+
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
65+
{% endfor %}
66+
{% endif %}
4967
{% if layout.css %}
5068
{% for css in layout.css %}
5169
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
5270
{% endfor %}
5371
{% endif %}
5472

73+
{% if page.googlefonts %}
74+
{% for font in page.googlefonts %}
75+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
76+
{% endfor %}
77+
{% endif %}
5578
{% if layout.googlefonts %}
5679
{% for font in layout.googlefonts %}
57-
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
80+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
5881
{% endfor %}
59-
{% endif %}
82+
{% endif %}
6083

6184
<!-- Facebook OpenGraph tags -->
6285
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />

0 commit comments

Comments
 (0)