diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 8c7b14792..63b960a29 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -22,6 +22,12 @@ def template_asset(asset_path): return assetcache_path(asset_path) +@app.template_filter("asset_siteimg") +def template_asset_siteimg(asset_path): + # TODO: Add hashing for these using files.helpers.assetcache + return f'/i/{SITE_NAME}/{asset_path}?v=3010' + + @app.template_filter("timestamp") def timestamp(timestamp): diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 9703a6baa..f8e49e068 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -1,4 +1,3 @@ -{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} @@ -12,7 +11,7 @@ - +