mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 02:39:24 +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:site" content="@wallabagapp" />
|
||||||
<meta name="twitter:title" content="{{ entry.title|e|raw }}" />
|
<meta name="twitter:title" content="{{ entry.title|e|raw }}" />
|
||||||
<meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|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') }}">
|
<link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
Loading…
Reference in New Issue
Block a user