Added pen editor for liveedit entries
This commit is contained in:
parent
732a6ffc95
commit
51cdbfce2c
|
@ -17,6 +17,7 @@
|
|||
"font-awesome": "~4.2.0",
|
||||
"google-code-prettify": "~1.0.3",
|
||||
"jquery": "~2.1.3",
|
||||
"lightbox2": "~2.7.1"
|
||||
"lightbox2": "~2.7.1",
|
||||
"pen": "^0.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400|Antic+Slab" rel="stylesheet" type="text/css">
|
||||
{% compress css %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ static('bower/font-awesome/css/font-awesome.css') }}" type="text/css" />
|
||||
<link rel="stylesheet" href="{{ static('sass/style.sass') }}" type="text/x-sass" />
|
||||
{% block stylesheets %}
|
||||
{% endblock %}
|
||||
{% endcompress %}
|
||||
{% block head %}{% endblock %}
|
||||
|
|
|
@ -3,36 +3,42 @@
|
|||
{% block page_title %}Blog{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ static('bower/google-code-prettify/bin/prettify.min.css') }}" />
|
||||
{{ super() }}
|
||||
<link rel="stylesheet" href="{{ static('bower/google-code-prettify/bin/prettify.min.css') }}" />
|
||||
{% if request.user.is_superuser %}
|
||||
<link rel="stylesheet" href="{{ static('bower/pen/src/pen.css') }}" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
<script type="text/javascript" src="{{ static('bower/google-code-prettify/bin/run_prettify.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ static('bower/google-code-prettify/bin/run_prettify.min.js') }}"></script>
|
||||
{% if request.user.is_superuser %}
|
||||
<script type="text/javascript" src="{{ static('bower/pen/src/pen.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ static('bower/pen/src/markdown.js') }}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
<hr />
|
||||
<hr />
|
||||
|
||||
{% block submenu %}
|
||||
<form action="{{ url('blog:search') }}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="text" class="search-field" name="query" placeholder="Search in blog..."
|
||||
{% if search_query %}
|
||||
value=""
|
||||
{% endif %}
|
||||
/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
<a href="{{ url('blog:rss') }}" class="button rss">
|
||||
<i class="fa fa-rss"></i> RSS
|
||||
</a>
|
||||
{% block submenu %}
|
||||
<form action="{{ url('blog:search') }}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="text" class="search-field" name="query" placeholder="Search in blog..."
|
||||
{% if search_query %}
|
||||
value=""
|
||||
{% endif %}
|
||||
/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
<a href="{{ url('blog:rss') }}" class="button rss">
|
||||
<i class="fa fa-rss"></i> RSS
|
||||
</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block endbody %}
|
||||
{{ super() }}
|
||||
{% if config.disqus_shortname and config.enable_comments %}
|
||||
{% from '_macros.jinja' import disqus with context %}
|
||||
{{ disqus() }}
|
||||
{% endif %}
|
||||
{{ super() }}
|
||||
{% if config.disqus_shortname and config.enable_comments %}
|
||||
{% from '_macros.jinja' import disqus with context %}
|
||||
{{ disqus() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue