fix: simplified enable_home_renders

This commit is contained in:
Bobby Wibowo 2022-06-24 09:24:32 +07:00
parent cd77bddd86
commit 0537268e4d
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,7 @@
{% set is_for_personal_use = true %}
{# Requires configuring your own renders in public/render. Consult src/js/misc/render.js. #}
{% set enable_home_renders = false %}
{% set enable_home_renders_config = "miku" %}
{% set enable_home_renders = null %} {# String of selected config name #}
{% set enable_home_newsfeed = false %}
{#

View File

@ -34,7 +34,7 @@
<!-- Scripts -->
{% if globals.enable_home_renders -%}
{# We assign an ID for this so that the script can find out version string for render images #}
<script id="renderScript" data-config="{{ globals.enable_home_renders_config }}" data-version="{{ versions[4] }}" src="js/misc/render.js{{ versions[1] }}" async></script>
<script id="renderScript" data-config="{{ globals.enable_home_renders }}" data-version="{{ versions[4] }}" src="js/misc/render.js{{ versions[1] }}" async></script>
{%- endif %}
{% if globals.enable_home_newsfeed -%}
<script src="js/misc/newsfeed.js{{ versions[1] }}" async></script>