{% import "encoding/json" %} {% import "strings" %} {% import "github.com/bakape/meguca/config" %} {% import "github.com/bakape/meguca/lang" %} {% import "github.com/bakape/meguca/common" %} {% import "github.com/bakape/meguca/assets" %} {% func renderIndex(pos common.ModerationLevel) %}{% stripspace %} {% code conf := config.Get() %} {% code ln := lang.Get() %} {% code confJSON, confHash := config.GetClient() %} {% code boards := config.GetBoards() %} {% comment %} Only expanded in the second parse of the template {% endcomment %} $$$ {% comment %} Main and theme-specific stylesheets {% endcomment %} {% comment %} Hide various elements that are dysfunctional without JS {% endcomment %} {% comment %} Configuration injection and theme adjustment {% endcomment %} {% comment %} Client-side templates for various views {% endcomment %} {% if pos > common.NotLoggedIn %} {% endif %}
{% comment %} Top banner {% endcomment %} {% comment %} For modal windows {% endcomment %}
{% comment %} For hover previews {% endcomment %}
{% comment %} Contains posts, page navigation, title, image banner and the catalog. Is injected on the second parse of this template {% endcomment %}
{% comment %} Post HTML and data {% endcomment %} $$$
{% comment %} Dynamic module loader {% endcomment %} {% endstripspace %}{% endfunc %}