Commit 0c5c0693 authored by Denis Salem's avatar Denis Salem
Browse files

Wip complete and fix Academik theme, add IfPages pattern

parent 9c0a0f1c
......@@ -159,15 +159,18 @@ cd # version 1.0.0 Last minute edition :p
DONE | Fix Shabang issue for compatibility.
DONE | Semantic-web features.
DONE | Theme must have it's own yaml configuration.
WIP | Reorganize themes dependencies in setup.
DONE | Fix pattern processing within included file.
WIP | Reorganize themes dependencies in setup.
TODO | Fix Tessellation CSS
TODO | Add IfChapters and use it in academik to hide/show chapters navigation.
WIP | Add relevant templates for themes.
WIP | Client-side search engine.
TODO | Add definition in documentation for optional fields in blog configuration.
TODO | Change nomenclature: Most of the usual patterns are changed. Fix doc.
# version 2.1.x
TODO | Add folder for blog_configuration, with multiple configuration file (for splitting the actual one).
TODO | Automatically merge all known entry authors into blog authors.
TODO | Force preview / full content in thread, for single entry.
TODO | If previous theme empty, juste remove it.
TODO | Add plural form at the end of blog creation if multiple blog has been made.
......
/***************/
/* G L O B A L */
/***************/
body
{background-color: white;
font-family: georgia;
color: black;
margin: 0px;}
a
{color: #000;
text-decoration: none;}
math
{display:block;}
blockquote p
{border-left: 2px solid grey;
display: block;
width: 100%;
font-style: italic;
clear: both;
font-size: 0.8em;
padding-left: 1em;}
.__VENC_PYGMENTIZE_WRAPPER__ table {width: 580px; display: block; clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table tr {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table tbody {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 4%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 95%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table td pre {vertical-align: top; overflow: hidden; overflow-x: auto; margin: 0px;}
.note, .footnote
{float: left;
margin-top: 1em;
font-size: 0.8em;
font-style: italic;
text-align: justify;
margin-left: 10px;
width: 200px;}
.social-network-item img
{width: 20px;
display: inline-block;}
.__VENC_CATEGORY_BUTTON__
{margin-right: 1em;
outline: none;}
.navigation
{text-align: center;}
.navigation ul
{margin: 0px;
padding: 0px;
display:inline-block;}
.navigation ul li
{display:inline-block;
margin-left: 0.5em;
margin-right: 0.5em;}
.navigation-next
{margin-left: 0.5em;}
.navigation-previous
{margin-right: 0.5em;}
/***************/
/* H E A D E R */
/***************/
header {
width: 800px;
height: 100px;
/*
margin: auto;
*/
line-height: 100px;
text-align: center;
border-bottom: 1px solid grey;
......@@ -29,39 +92,17 @@ aside {
top: 0px;
}
a
{color: #000;
text-decoration: none;}
blockquote p
{border-left: 2px solid grey;
display: block;
width: 100%;
font-style: italic;
clear: both;
font-size: 0.8em;
padding-left: 1em;}
footer
{display: none;}
math
{display:block;}
#blog-content
{position: absolute;
left: calc(50% - 250px);
top: 0px;
width: 800px;}
#blog-avatar
{width: 110px;
height: 110px;
border-radius: 55px;
margin: auto;
margin-top: 1em;
background-color: grey;
background-size: cover;}
{width: 110px;
height: 110px;
border-radius: 55px;
margin: auto;
margin-top: 1em;
background-color: grey;
background-size: cover;}
#blog-description
{width: 95%;
......@@ -130,38 +171,9 @@ math
padding-left: 5px;
border-left: 1px solid grey;}
#blog-navigation,
footer
{text-align: center;}
#blog-navigation ul,
footer ul
{margin: 0px;
padding: 0px;
display:inline-block;}
#blog-navigation ul li,
footer ul li
{display:inline-block;}
#blog-navigation a,
footer a
{background-color: grey;
border-radius: 0.5em;
margin-left: 0.5em;
height: 1em;
width: 1em;
display: inline-block;
line-height: 1em;
color: white;
margin-right: 0.5em;}
#VENC_COLUMN_1 {
display: block;
top: 100px;
height: 100px;
width: 800px;
}
/*************/
/* E N T R Y */
/*************/
.entry {
width: 100%;
......@@ -210,31 +222,23 @@ footer a
.entry_content
{width: 800px;
clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table {width: 580px; display: block; clear: both;}
.__VENC_PYGMENTIZE_WRAPPER__ table tr {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table tbody {width: 100%; display: block;}
.__VENC_PYGMENTIZE_WRAPPER__ table .linenos {width: 4%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table .code {width: 95%; display: inline-block;vertical-align: top;}
.__VENC_PYGMENTIZE_WRAPPER__ table td pre {vertical-align: top; overflow: hidden; overflow-x: auto; margin: 0px;}
.note, .footnote
{float: left;
margin-top: 1em;
font-size: 0.8em;
font-style: italic;
text-align: justify;
margin-left: 10px;
width: 200px;}
.social-network-item img
{width: 20px;
display: inline-block;}
.__VENC_CATEGORY_BUTTON__
{margin-right: 1em;
outline: none;}
/***************/
/* L A Y O U T */
/***************/
#blog-content
{position: absolute;
left: calc(50% - 250px);
top: 0px;
width: 800px;}
#VENC_COLUMN_1 {
display: block;
top: 100px;
height: 100px;
width: 800px;
}
@media (max-width: 1100px) {
aside
{display: none;}
......
<footer>
<footer class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}"></a>·:.
<ul class="navigation-pages-list">.:ForPages::5::<li><a href="{path}">{page_number}</a></li>:: · :.</ul>
.:GetNextPage::·<a class="navigation-next" href="{path}"></a>:.
......
......@@ -25,6 +25,7 @@
.:GetBlogMetadataIfExists::diaspora:: <a href="{value}" class="social-network-item"><img src=".:GetRelativeOrigin:.diaspora.png" alt="Diaspora*" title="Diaspora*"/></a>:.
.:GetBlogMetadataIfExists::mastodon:: <a href="{value}" class="social-network-item"><img src=".:GetRelativeOrigin:.mastodon.png" alt="Mastodon" title="Mastodon"/></a>:.
</div>
.:IfCategories::
<div id="blog-categories-header">
<div id="blog-categories-header-wrapper">
<div></div><span>Categories</span><div></div>
......@@ -33,16 +34,20 @@
<div id="blog-categories">
.:TreeForBlogCategories::<ul class="__VENC_CATEGORY_NODE__">::<li><a href="{path}" title="{count} publications">{value}</a>::</li>::</ul>:.
</div>
:.
.:IfPages::
<div id="blog-navigation-header">
<div id="blog-navigation-header-wrapper">
<div></div><span>Navigation</span><div></div>
</div>
</div>
<div id="blog-navigation">
<div id="blog-navigation" class="navigation">
.:GetPreviousPage::<a class="navigation-previous" href="{path}"></a>·:.
<ul class="navigation-pages-list">.:ForPages::5::<li><a href="{path}">{page_number}</a></li>:: · :.</ul>
.:GetNextPage::·<a class="navigation-next" href="{path}"></a>:.
</div>
:.
</aside>
<div id="blog-content">
<header>
......
authors: '.:GetBlogAuthors:.'
authors: ''
categories: ''
tags: ''
title: .:GetEntryTitle:.
......
......@@ -100,7 +100,8 @@ class PatternsMap():
"GetRelativeLocation" : "get_relative_location",
"GetNextPage" : "get_next_page",
"GetPreviousPage" : "get_previous_page",
"ForPages" : "for_pages"
"ForPages" : "for_pages",
"IfPages" : "if_pages"
}
}
......
......@@ -188,6 +188,12 @@ class Thread:
def JSONLD(self, argv):
return ''
def if_pages(self, argv):
if self.pages_count > 1:
return argv[0]
else:
return ''
def if_in_first_page(self, argv):
if self.current_page == 0:
return argv[0].strip()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment