#2 support for relative and absolute urls
-in author avatar, custom css and js color metadata support in article updated the readme
This commit is contained in:
parent
309cc5718a
commit
dc1cf00d49
4 changed files with 49 additions and 13 deletions
|
@ -65,7 +65,14 @@
|
|||
{% if CSS_OVERRIDE %}
|
||||
<!-- CSS specified by the user -->
|
||||
{% for css in CSS_OVERRIDE %}
|
||||
<link href="{{ SITEURL }}/{{ css }}" type="text/css" rel="stylesheet" />
|
||||
|
||||
{% if css|lower|truncate(4, True, '') == "http" %}
|
||||
{% set css = css %}
|
||||
{% else %}
|
||||
{% set css = SITEURL+"/"+css %}
|
||||
{% endif %}
|
||||
|
||||
<link href="{{ css }}" type="text/css" rel="stylesheet" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
@ -110,7 +117,12 @@
|
|||
{% if JS_OVERRIDE %}
|
||||
<!-- Script specified by the user -->
|
||||
{% for js in JS_OVERRIDE %}
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ js }}"></script>
|
||||
{% if js|lower|truncate(4, True, '') == "http" %}
|
||||
{% set js = js %}
|
||||
{% else %}
|
||||
{% set js = SITEURL+"/"+js %}
|
||||
{% endif %}
|
||||
<script type="text/javascript" src="{{ js }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% include 'partials/analytics.js' %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue