mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
Merge pull request #850 from mlinksva/gh-pages
Make css and js load correctly if site rendered in a subdirectory
This commit is contained in:
commit
3eac53eff0
@ -16,9 +16,9 @@
|
|||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
{% if page.collection == "licenses" or page.class == "license-types" %}
|
{% if page.collection == "licenses" or page.class == "license-types" %}
|
||||||
<script src="/assets/vendor/jquery/jquery.min.js"></script>
|
<script src="{{ 'assets/vendor/jquery/jquery.min.js' | relative_url }}"></script>
|
||||||
<script src="/assets/vendor/qtip2/jquery.qtip.min.js"></script>
|
<script src="{{ 'assets/vendor/qtip2/jquery.qtip.min.js' | relative_url }}"></script>
|
||||||
<script src="/assets/vendor/clipboard/dist/clipboard.min.js"></script>
|
<script src="{{ 'assets/vendor/clipboard/dist/clipboard.min.js' | relative_url }}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.annotations = {{ site.data.rules | jsonify }};
|
window.annotations = {{ site.data.rules | jsonify }};
|
||||||
{% if page.collection == "licenses" %}
|
{% if page.collection == "licenses" %}
|
||||||
@ -32,7 +32,7 @@
|
|||||||
];
|
];
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
<script src="/assets/js/app.js"></script>
|
<script src="{{ 'assets/js/app.js' | relative_url }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Chivo:900">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Chivo:900">
|
||||||
<link rel="stylesheet" href="/assets/css/application.css?v={{ site.github.build_revision }}">
|
<link rel="stylesheet" href="{{ 'assets/css/application.css' | relative_url }}?v={{ site.github.build_revision }}">
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon">
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="/assets/vendor/html5shiv/dist/html5shiv.js"></script>
|
<script src="/assets/vendor/html5shiv/dist/html5shiv.js"></script>
|
||||||
<script src="/assets/vendor/selectivizr/selectivizr.js"></script>
|
<script src="/assets/vendor/selectivizr/selectivizr.js"></script>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
@import "/assets/vendor/normalize-css/normalize.css";
|
@import "../vendor/normalize-css/normalize.css";
|
||||||
@import "/assets/vendor/qtip2/jquery.qtip.min.css";
|
@import "../vendor/qtip2/jquery.qtip.min.css";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user