mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 02:11:05 +01:00
Don't load js for nothing in prod
This commit is contained in:
parent
77255d6688
commit
151f45db0e
@ -14,11 +14,12 @@
|
||||
<meta name="twitter:site" content="@wallabagapp" />
|
||||
<meta name="twitter:title" content="{{ entry.title|e|raw }}" />
|
||||
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}…" />
|
||||
{% if not app.debug %}
|
||||
{% if app.debug %}
|
||||
<script src="{{ asset('bundles/wallabagcore/public.dev.js') }}"></script>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
|
||||
{% endif %}
|
||||
|
||||
<script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
Loading…
Reference in New Issue
Block a user