Commit f90e6b69 authored by Denis Salem's avatar Denis Salem
Browse files

WIP on Academik theme

parent 4ccbdd2f
......@@ -38,3 +38,4 @@ banner: '
path_encoding: 'windows-1252'
server_port: 8888
sort_by: 'chapter'
enable_jsonld: True
......@@ -156,15 +156,19 @@
DONE | fix FAQ subfolders must not start with '/'
DONE | fix FAQ
DONE | Refactor DatesThread to ArchivesThread.
TODO | Force preview / full content in thread, for single entry.
TODO | Add definition in documentation for optional fields in blog configuration.
TODO | Open with navigator manual.
WIP | Client-side search engine.
WIP | Semantic-web features.
TODO | Reorganize themes dependencies in setup (adding default templates, scripts, and pages to include).
TODO | Add relevant templates for themes.
TODO | Theme must have it's own yaml configuration.
WIP | Change nomenclature: Most of the usual patterns are changed. Fix doc.
# version 2.1.x
TODO | If previous theme empty, juste remove it.
TODO | Add plural form at the end of blog creation if multiple blog has been made.
TODO | Fix gvim / -ex.
TODO | Fix encoding issue in JSON-LD document.
TODO | Catch "OSError: [Errno 98] Address already in use".
{background-color: white;
font-family: georgia;
color: black;
margin: 0px;}
.entry p
{width: 580px;
text-align: justify;
float: left;}
header {
width: 800px;
height: 100px;
line-height: 100px;
text-align: center;
border-bottom: 1px solid grey;
header h1
{display: inline-block;
vertical-align: middle;
line-height: normal;
aside {
position: fixed;
width: 19%;
height: 100%;
top: 0px;
{float: left;
margin-top: 1em;
font-size: 0.9em;
font-style: italic;
margin-left: 10px;
width: 200px;}
{color: #000;
text-decoration: none;}
{width: 110px;
height: 110px;
border-radius: 55px;
margin: auto;
margin-top: 100px;
background-color: grey;}
{width: 95%;
font-size: 0.8em;
font-style: italic;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 5%;
{text-transform: uppercase;
text-align: center;
display: block;
width: 95%;
margin-left: 5%;
overflow: hidden;}
{width: 750px;
height: 20px;
position: relative;
left: 50%;
margin-left: -375px;}
#blog-categories-header-wrapper div
{width: 315px;
height: 5px;
float: left;
margin-top: 7px;
border-top: 1px solid grey;
border-bottom: 1px solid grey;}
#blog-categories-header-wrapper div
#blog-categories-header-wrapper div:first-child
#blog-categories-header span
{float: left;}
#blog-categories {
font-size: 1.1em;
margin-top: 1em;
#blog-categories ul
{display: block;
padding: 5px;}
#blog-categories ul li
{display: block;
padding-left: 5px;
border-left: 1px solid grey;}
#blog-content {
position: absolute;
left: 20%;
width: 80%;
height: 100%;
display: block;
top: 100px;
height: 100px;
width: 800px;
.entry {
font-size: 1.15em;
<link href=".:GetEntryURL:."/>
<content type="xhtml">
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<link href=".:GetBlogURL:."/>
<audio controls style="width: 100%">
Your browser does not support the audio element.
<div id="entry.:GetEntryID:." class="entry">
<div class="entry_header">
<h2><a href=".:GetEntryURL:.">.:GetEntryTitle:.</a></h2>
.:IfInThread:: <p>.:GetEntryDate:.</p> ::
<p>.:ForEntryAuthors::{value}::, :.</p>
<div class="entry_content">
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="alternate" type="application/rss+xml" title=".:GetBlogName:." href="feed.xml" />
<link rel="stylesheet" href="" type="text/css" />
<div id="blog-avatar" style="background-image: url('.:GetBlogMetadataIfExists::avatar::{value}:.');">
<p id="blog-description">
<div id="blog-categories-header">
<div id="blog-categories-header-wrapper">
<div id="blog-categories">
.:TreeForBlogCategories::<ul>::<li><a href="{path}" title="{count} publications">{value}</a>::</li>::</ul>:.
<div id="blog-content">
<h1><a href=".:GetBlogURL:."><img src=".:GetBlogMetadataIfExists::banner::{value}:." alt="Le turfu expliqué à mon poney"></a></h1>
<guid isPermaLink="true">.:GetBlogURL:./.:GetEntryURL:.</guid>
......@@ -2,7 +2,8 @@
<rss version="2.0" xmlns:atom="">
<atom:link href=".:GetBlogURL:..:GetRelativeLocation:.feed.xml" rel="self" type="application/rss+xml" />
<atom:link href=".:GetBlogURL:./feed.xml" rel="self" type="application/rss+xml" />
<video controls poster="{poster}" style="width: 100%;">
Your browser does not support the video tag.
......@@ -19,7 +19,7 @@
<a href=".:GetRootPage:.">
<img id="banner" src=".:GetRelativeOrigin:..:GetBlogMetadataIfExists::banner:." alt=".:GetBlogName:." title=".:GetBlogName:." />
<img id="banner" src=".:GetRelativeOrigin:..:GetBlogMetadataIfExists::banner::{value}:." alt=".:GetBlogName:." title=".:GetBlogName:." />
<guid isPermaLink="true">.:GetBlogURL:..:GetEntryURL:.</guid>
<guid isPermaLink="true">.:Get::BlogUrl:..:Get::EntryUrl:.</guid>
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="">
<atom:link href=".:Get::BlogUrl:..:Get::RelativeLocation:.feed.xml" rel="self" type="application/rss+xml" />
......@@ -27,6 +27,9 @@ from venc2.prompt import die
from venc2.l10n import messages
def install_theme(argv):
if len(argv) < 1:
blog_configuration = get_blog_configuration()
if blog_configuration == None:
......@@ -42,7 +45,7 @@ def install_theme(argv):
shutil.copytree(os.path.expanduser("~")+"/.local/share/VenC/themes/"+argv[0], "theme")
except FileNotFoundError as e:
''' Restore previous states '''
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