{% load static %} {% load shared %} Reader view {# Include specific theme variant based on user profile setting #} {% if request.user_profile.theme == 'light' %} {% elif request.user_profile.theme == 'dark' %} {% else %} {# Use auto theme as fallback #} {% endif %} {# The page is sandboxed, so requests to the custom CSS view would not include credentials. Embed the CSS as data URL instead. #} {% if request.user_profile.custom_css %} {% endif %}