Skip to content

Commit 9937a10

Browse files
Upgrade to Themeleon 2.0 and support base URL (closes #9)
1 parent e3c771a commit 9937a10

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"extend": "1.*",
1616
"swig": "1.4.0",
1717
"swig-extras": "0.*",
18-
"themeleon": "1.*",
19-
"themeleon-swig": "0.*",
18+
"themeleon": "2.*",
2019
"sassdoc-extras": "^1.0.0"
2120
},
2221
"devDependencies": {
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<meta charset="utf-8" />
22

33
<title>{{ project_title }}{% if package.version %} - v{{ package.version }}{% endif %}</title>
4-
<link rel="stylesheet" href="assets/css/main.css" />
4+
<link rel="stylesheet" href="{{ base }}/assets/css/main.css" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700' rel='stylesheet' type='text/css'>
66
<meta name="viewport" content="width=device-width">
77
<meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible">
88

99
<!-- Thanks to Sass-lang.com for the icons -->
10+
{% if shortcutIcon.type == 'internal' %}
11+
<link href="{{ base }}/{{ shortcutIcon.url }}" rel="shortcut icon">
12+
{% else %}
1013
<link href="{{ shortcutIcon.url }}" rel="shortcut icon">
14+
{% endif %}

views/includes/partials/scripts.html.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
{% if view.trackingCode %}
1515
{{ view.trackingCode }}
1616
{% endif %}
17-
<script src="assets/js/main.min.js"></script>
17+
<script src="{{ base }}/assets/js/main.min.js"></script>

0 commit comments

Comments
 (0)