No updates found. Head over to the community to see the latest discussions.
'; + } + } +} + +// Export for use in other scripts +window.DiscourseAPI = DiscourseAPI; + +// Auto-initialize if container exists +document.addEventListener('DOMContentLoaded', function() { + if (document.getElementById('community-news-container')) { + const discourseAPI = new DiscourseAPI(); + discourseAPI.loadTopics('community-news-container', function(topics) { + // This will be handled by the template's render function + if (window.renderDiscourseTopics) { + window.renderDiscourseTopics(topics); + } + }); + } +}); diff --git a/templates/framework.html b/templates/framework.html index 80c7a6d5..2f6ea7da 100644 --- a/templates/framework.html +++ b/templates/framework.html @@ -1,15 +1,17 @@ - + {% load static %}