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

WIP on Academik theme

parent 4ccbdd2f
......@@ -38,3 +38,4 @@ banner: 'https://download.tuxfamily.org/dsalem/img/2017_-_Denis_Salem_-_CC_By_SA
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 https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting.
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".
......
body
{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;
}
.footnote
{float: left;
margin-top: 1em;
font-size: 0.9em;
font-style: italic;
margin-left: 10px;
width: 200px;}
a
{color: #000;
text-decoration: none;}
#blog-avatar
{width: 110px;
height: 110px;
border-radius: 55px;
margin: auto;
margin-top: 100px;
background-color: grey;}
#blog-description
{width: 95%;
font-size: 0.8em;
font-style: italic;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 5%;
}
#blog-categories-header
{text-transform: uppercase;
text-align: center;
display: block;
width: 95%;
margin-left: 5%;
overflow: hidden;}
#blog-categories-header-wrapper
{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
{margin-left:5px;}
#blog-categories-header-wrapper div:first-child
{margin-right:5px;}
#blog-categories-header span
{float: left;}
#blog-categories {
font-size: 1.1em;
margin-top: 1em;
}
#blog-categories ul
{display: block;
margin:0px;
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%;
}
#VENC_COLUMN_1 {
display: block;
top: 100px;
height: 100px;
width: 800px;
}
.entry {
font-size: 1.15em;
}
<entry>
<title>.:GetEntryTitle:.</title>
<link href=".:GetEntryURL:."/>
<content type="xhtml">
.:GetEntryContent:.
</content>
</entry>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>.:GetBlogName:.</title>
<subtitle>.:GetBlogDescription:.</subtitle>
<link href=".:GetBlogURL:."/>
<updated>2010-05-13T18:30:02Z</updated>
<author>
<name>.:GetAuthorName:.</name>
<email>.:GetAuthorEmail:.</email>
</author>
<audio controls style="width: 100%">
{source}
Your browser does not support the audio element.
</audio>
<div id="entry.:GetEntryID:." class="entry">
<div class="entry_header">
<h2><a href=".:GetEntryURL:.">.:GetEntryTitle:.</a></h2>
.:IfInThread:: <p>.:GetEntryDate:.</p> ::
<p>.:GetEntryDate:.</p>
<p>.:ForEntryAuthors::{value}::, :.</p>
:.
</div>
<div class="entry_content">
.:GetEntryContent:.
</div>
</div>
<!DOCTYPE html>
<html>
<head>
<title>.:GetBlogName:.</title>
<meta charset="utf-8">
<link rel="alternate" type="application/rss+xml" title=".:GetBlogName:." href="feed.xml" />
<link rel="stylesheet" href=".:GetRelativeOrigin:.style.css" type="text/css" />
</head>
<body>
<aside>
<div id="blog-avatar" style="background-image: url('.:GetBlogMetadataIfExists::avatar::{value}:.');">
</div>
<p id="blog-description">
.:GetBlogDescription:.
</p>
<div id="blog-categories-header">
<div id="blog-categories-header-wrapper">
<div></div><span>Categories</span><div></div>
</div>
</div>
<div id="blog-categories">
.:TreeForBlogCategories::<ul>::<li><a href="{path}" title="{count} publications">{value}</a>::</li>::</ul>:.
</div>
</aside>
<div id="blog-content">
<header>
<h1><a href=".:GetBlogURL:."><img src=".:GetBlogMetadataIfExists::banner::{value}:." alt="Le turfu expliqué à mon poney"></a></h1>
</header>
<item>
<title>.:GetEntryTitle:.</title>
<link>.:GetBlogURL:./.:GetEntryURL:.</link>
<guid isPermaLink="true">.:GetBlogURL:./.:GetEntryURL:.</guid>
<description>
<![CDATA[
.:GetEntryContent:.
]]>
</description>
</item>
......@@ -2,7 +2,8 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<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" />
<title>.:GetBlogName:.</title>
<link>.:GetBlogURL:.</link>
<description><![CDATA[.:GetBlogDescription:.]]></description>
<description>.:GetBlogDescription:.</description>
<video controls poster="{poster}" style="width: 100%;">
{source}
Your browser does not support the video tag.
</video>
......@@ -19,7 +19,7 @@
<header>
<h1>
<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:." />
</a>
</h1>
<h2>CATEGORIES</h2>
......
<item>
<title>.:GetEntryTitle:.</title>
<link>.:GetBlogURL:..:GetEntryURL:.</link>
<guid isPermaLink="true">.:GetBlogURL:..:GetEntryURL:.</guid>
<description><![CDATA[.:GetEntryContent:.]]></description>
</item>
<item>
<title>.:Get::EntryName:.</title>
<link>.:Get::BlogUrl:..:Get::EntryUrl:.</link>
<guid isPermaLink="true">.:Get::BlogUrl:..:Get::EntryUrl:.</guid>
<description><![CDATA[.:Get::EntryContent:.]]></description>
</item>
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href=".:Get::BlogUrl:..:Get::RelativeLocation:.feed.xml" rel="self" type="application/rss+xml" />
<title>.:Get::BlogName:.</title>
<link>.:Get::BlogUrl:.</link>
<description><![CDATA[.:Get::BlogDescription:.]]></description>
......@@ -27,6 +27,9 @@ from venc2.prompt import die
from venc2.l10n import messages
def install_theme(argv):
if len(argv) < 1:
die(messages.missing_params.format("--install-themes"))
blog_configuration = get_blog_configuration()
if blog_configuration == None:
notify(messages.no_blog_configuration)
......@@ -42,7 +45,7 @@ def install_theme(argv):
try:
shutil.copytree(os.path.expanduser("~")+"/.local/share/VenC/themes/"+argv[0], "theme")
except FileNotFoundError as e:
''' Restore previous states '''
try:
......
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