This commit is contained in:
Debian
2025-09-08 23:58:12 +02:00
commit 8e10c0e458
35 changed files with 1229 additions and 0 deletions

27
templates/archive.ftl Normal file
View File

@ -0,0 +1,27 @@
<#include "header.ftl">
<#include "menu.ftl">
<div class="page-header">
<h1>Blog Archive</h1>
</div>
<!--<ul>-->
<#list published_posts as post>
<#if (last_month)??>
<#if post.date?string("MMMM yyyy") != last_month>
</ul>
<h4>${post.date?string("MMMM yyyy")}</h4>
<ul>
</#if>
<#else>
<h4>${post.date?string("MMMM yyyy")}</h4>
<ul>
</#if>
<li>${post.date?string("dd")} - <a href="${content.rootpath}${post.uri}">${post.title}</a></li>
<#assign last_month = post.date?string("MMMM yyyy")>
</#list>
</ul>
<#include "footer.ftl">

27
templates/feed.ftl Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>JBake</title>
<link>${config.site_host}</link>
<atom:link href="${config.site_host}/${config.feed_file}" rel="self" type="application/rss+xml" />
<description>JBake Bootstrap Template</description>
<language>en-gb</language>
<pubDate>${published_date?string("EEE, d MMM yyyy HH:mm:ss Z")}</pubDate>
<lastBuildDate>${published_date?string("EEE, d MMM yyyy HH:mm:ss Z")}</lastBuildDate>
<#list published_posts as post>
<item>
<title><#escape x as x?xml>${post.title}</#escape></title>
<link>${config.site_host}/${post.uri}</link>
<pubDate>${post.date?string("EEE, d MMM yyyy HH:mm:ss Z")}</pubDate>
<guid isPermaLink="false">${post.uri}</guid>
<description>
<#escape x as x?xml>
${post.body}
</#escape>
</description>
</item>
</#list>
</channel>
</rss>

19
templates/footer.ftl Normal file
View File

@ -0,0 +1,19 @@
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container">
<p class="muted credit">&copy; 2014 | Mixed with <a href="http://getbootstrap.com/">Bootstrap v3.1.1</a> | Baked with <a href="http://jbake.org">JBake ${version}</a></p>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<#if (content.rootpath)??>${content.rootpath}<#else></#if>js/jquery-1.11.1.min.js"></script>
<script src="<#if (content.rootpath)??>${content.rootpath}<#else></#if>js/bootstrap.min.js"></script>
<script src="<#if (content.rootpath)??>${content.rootpath}<#else></#if>js/prettify.js"></script>
</body>
</html>

32
templates/header.ftl Normal file
View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title><#if (content.title)??>${content.title}<#else>JBake</#if></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="">
<meta name="generator" content="JBake">
<!-- Le styles -->
<link href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>css/bootstrap.min.css" rel="stylesheet">
<link href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>css/asciidoctor.css" rel="stylesheet">
<link href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>css/base.css" rel="stylesheet">
<link href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>css/prettify.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="<#if (content.rootpath)??>${content.rootpath}<#else></#if>js/html5shiv.min.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">-->
<link rel="shortcut icon" href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>favicon.ico">
</head>
<body onload="prettyPrint()">
<div id="wrap">

20
templates/index.ftl Normal file
View File

@ -0,0 +1,20 @@
<#include "header.ftl">
<#include "menu.ftl">
<div class="page-header">
<h1>Blog</h1>
</div>
<#list posts as post>
<#if (post.status == "published")>
<a href="${post.uri}"><h1>${post.title}</h1></a>
<p>${post.date?string("dd MMMM yyyy")}</p>
<p>${post.body}</p>
</#if>
</#list>
<hr />
<p>Older posts are available in the <a href="${content.rootpath}${config.archive_file}">archive</a>.</p>
<#include "footer.ftl">

35
templates/menu.ftl Normal file
View File

@ -0,0 +1,35 @@
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>">JBake</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>index.html">Home</a></li>
<li><a href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>about.html">About</a></li>
<li><a href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>${config.feed_file}">Subscribe</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
<li><a href="<#if (content.rootpath)??>${content.rootpath}<#else></#if>archive.html">Archive</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">

17
templates/page.ftl Normal file
View File

@ -0,0 +1,17 @@
<#include "header.ftl">
<#include "menu.ftl">
<#if (content.title)??>
<div class="page-header">
<h1>${content.title}</h1>
</div>
<#else></#if>
<p><em>${content.date?string("dd MMMM yyyy")}</em></p>
<p>${content.body}</p>
<hr />
<#include "footer.ftl">

17
templates/post.ftl Normal file
View File

@ -0,0 +1,17 @@
<#include "header.ftl">
<#include "menu.ftl">
<#if (content.title)??>
<div class="page-header">
<h1>${content.title}</h1>
</div>
<#else></#if>
<p><em>${content.date?string("dd MMMM yyyy")}</em></p>
<p>${content.body}</p>
<hr />
<#include "footer.ftl">

9
templates/sitemap.ftl Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<#list published_content as content>
<url>
<loc>${config.site_host}/${content.uri}</loc>
<lastmod>${content.date?string("yyyy-MM-dd")}</lastmod>
</url>
</#list>
</urlset>

27
templates/tags.ftl Normal file
View File

@ -0,0 +1,27 @@
<#include "header.ftl">
<#include "menu.ftl">
<div class="page-header">
<h1>Tag: ${tag}</h1>
</div>
<!--<ul>-->
<#list tag_posts as post>
<#if (last_month)??>
<#if post.date?string("MMMM yyyy") != last_month>
</ul>
<h4>${post.date?string("MMMM yyyy")}</h4>
<ul>
</#if>
<#else>
<h4>${post.date?string("MMMM yyyy")}</h4>
<ul>
</#if>
<li>${post.date?string("dd")} - <a href="${content.rootpath}${post.uri}">${post.title}</a></li>
<#assign last_month = post.date?string("MMMM yyyy")>
</#list>
</ul>
<#include "footer.ftl">