LibreCMS Default Theme: Macro for basic page structure

pull/20/head
Jens Pelzetter 2022-01-20 08:34:09 +01:00
parent ba96a3c280
commit f8e33d101b
2 changed files with 29 additions and 22 deletions

View File

@ -1,12 +1,6 @@
<!DOCTYPE html> <#import "./main.html.ftl" as main>
<html>
<head> <@main.librecms>
<link href="${themeUrl}/styles/librecms.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Default Template</title>
</head>
<body>
<div class="container">
<h1>Index page</h1> <h1>Index page</h1>
<p>This theme works.</p> <p>This theme works.</p>
<dl> <dl>
@ -17,6 +11,4 @@
<dt>view</dt> <dt>view</dt>
<dd>${view!""}</dd> <dd>${view!""}</dd>
</dl> </dl>
</div> </@main.librecms>
</body>
</html>

View File

@ -0,0 +1,15 @@
<#macro librecms scripts=[]>
<!DOCTYPE html>
<html>
<head>
<link href="${themeUrl}/styles/librecms.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Default Template</title>
</head>
<body>
<div class="container">
<#nested>
</div>
</body>
</html>
</#macro>