<% if (page.menu_id == undefined) { if (page.layout === 'wiki_topic' && page.topic) { page.menu_id = 'blog' } else { page.menu_id = 'post' } } function layout_topic_list(partial) { var el = '' const { publish_list, tree } = theme.topic for (let id of publish_list) { const topic = tree[id] if (topic == null) { continue } el += `
` el += `` el += partial(topic) el += `` el += `
` } return el } function layoutDiv() { var el = '' el += partial('_partial/main/navbar/list_post') el += layout_topic_list(function(topic) { return partial('_partial/main/post_list/topic_card', {topic: topic}) }) return el } %> <%- layoutDiv() %>