-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmacro-page.ftl
34 lines (32 loc) · 930 Bytes
/
macro-page.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<#include "macro-head.ftl">
<#include "macro-blog_header.ftl">
<#macro sidePage htmlTitle pageTitle="">
<!DOCTYPE html>
<html>
<@emiya_head title="${htmlTitle}"></@emiya_head>
<body id="emiya_blog">
<@blog_nav></@blog_nav>
<div class="container-fluid">
<main id="pjax" class="container--left">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<@common_header></@common_header>
<#if pageTitle != "">
<h1 class="blog__title">${pageTitle}</h1>
</#if>
<#nested>
<#if pjax><!---- pjax {#pjax} end ----></#if>
</main>
<div class="aside container--right">
<#include "side.ftl">
</div>
</div>
<#include "footer.ftl">
</body>
</html>
</#macro>
<#macro articlesPage htmlTitle pageTitle="">
<@sidePage htmlTitle="${htmlTitle}" pageTitle="${pageTitle}">
<#nested>
<#include "article-list.ftl">
</@sidePage>
</#macro>