|
12 | 12 | {% endif %} |
13 | 13 |
|
14 | 14 | <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 --> |
15 | 17 |
|
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 %} |
25 | 23 | {% if layout.common-ext-css %} |
26 | 24 | {% for css in layout.common-ext-css %} |
27 | 25 | <link rel="stylesheet" href="{{ css }}" /> |
28 | 26 | {% endfor %} |
29 | | - {% endif %} |
| 27 | + {% endif %} |
30 | 28 |
|
| 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 %} |
31 | 34 | {% if layout.common-css %} |
32 | 35 | {% for css in layout.common-css %} |
33 | 36 | <link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" /> |
34 | 37 | {% endfor %} |
35 | | - {% endif %} |
| 38 | + {% endif %} |
36 | 39 |
|
| 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 %} |
37 | 45 | {% if layout.common-googlefonts %} |
38 | 46 | {% 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 }}" /> |
40 | 48 | {% endfor %} |
41 | 49 | {% endif %} |
42 | 50 |
|
| 51 | + {% if page.ext-css %} |
| 52 | + {% for css in page.ext-css %} |
| 53 | + <link rel="stylesheet" href="{{ css }}" /> |
| 54 | + {% endfor %} |
| 55 | + {% endif %} |
43 | 56 | {% if layout.ext-css %} |
44 | 57 | {% for css in layout.ext-css %} |
45 | 58 | <link rel="stylesheet" href="{{ css }}" /> |
46 | 59 | {% endfor %} |
47 | 60 | {% endif %} |
48 | 61 |
|
| 62 | + {% if page.css %} |
| 63 | + {% for css in page.css %} |
| 64 | + <link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" /> |
| 65 | + {% endfor %} |
| 66 | + {% endif %} |
49 | 67 | {% if layout.css %} |
50 | 68 | {% for css in layout.css %} |
51 | 69 | <link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" /> |
52 | 70 | {% endfor %} |
53 | 71 | {% endif %} |
54 | 72 |
|
| 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 %} |
55 | 78 | {% if layout.googlefonts %} |
56 | 79 | {% 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 }}" /> |
58 | 81 | {% endfor %} |
59 | | - {% endif %} |
| 82 | + {% endif %} |
60 | 83 |
|
61 | 84 | <!-- Facebook OpenGraph tags --> |
62 | 85 | <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" /> |
|
0 commit comments