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

Clean and fix issues from 'Gentle' theme

parent a59e3dab
# version 1.0.0 Last minute edition :p
cd # version 1.0.0 Last minute edition :p
DONE | Copy recursively, if necessary, data from extra.
DONE | Copy recursively, if necessary data from assets.
......
......@@ -29,10 +29,7 @@ math
/***************/
/* H E A D E R */
/***************/
#banner
{width: 90%;}
header h2
{font-size: 0.8em;
font-weight: lighter;
......
</div>
<footer id="__VENC_NAVIGATION__">
.:GetPreviousPage:: <a id="previous" href="{path}"></a>:.
.:GetPreviousPage:: <a id="previous" href="{path}">{entry_title} </a>:.
<ul id="pagesList">.:ForPages::5::<li><a href="{path}">{page_number}</a></li>:: . :.</ul>
.:GetNextPage:: <a id="next" href="{path}"></a>:.
.:GetNextPage:: <a id="next" href="{path}" data-venc-api-infinite-scroll-hook="{path}">→ {entry_title}</a>:.
</footer>
</body>
</html>
......@@ -6,7 +6,7 @@
<meta name="keywords" content=".:GetBlogKeywords:." />
<meta name="description" content=".:GetBlogDescription:."/>
<meta charset="utf-8" />
<script type="text/javascript" src=".:GetRelativeOrigin:.VenC-Infinite-Scroll-1.0.0.js"></script>
<script type="text/javascript" src=".:GetRelativeOrigin:.VenC-Infinite-Scroll-1.1.0.js"></script>
<script type="text/javascript">
window.onload = VENC_INFINITE_SCROLL_ON_LOAD;
</script>
......@@ -19,7 +19,7 @@
<header>
<h1>
<a href=".:GetRootPage:.">
<img id="banner" src=".:GetRelativeOrigin:..:GetBlogMetadataIfExists::banner::{value}:." alt=".:GetBlogName:." title=".:GetBlogName:." />
<img id="banner" src=".:GetRelativeOrigin:..:GetBlogMetadataIfExists::header_image::{value}:." alt=".:GetBlogName:." title=".:GetBlogName:." />
</a>
</h1>
<h2>CATEGORIES</h2>
......
......@@ -185,7 +185,6 @@ function VENC_INFINITE_SCROLL_ON_LOAD() {
}
}
if (VENC_INFINITE_SCROLL.end == false) {
console.log("there")
VENC_INFINITE_SCROLL.domUpdate = VENC_INFINITE_SCROLL_UPDATE_DOM;
VENC_INFINITE_SCROLL.timer = setInterval(VENC_INFINITE_SCROLL_RUN, VENC_INFINITE_SCROLL.interval);
}
......
......@@ -26,6 +26,7 @@ import time
from venc2.commands.remote import remote_copy
from venc2.datastore import DataStore
from venc2.datastore.theme import Theme
from venc2.helpers import die
from venc2.prompt import notify
from venc2.helpers import rm_tree_error_handler
from venc2.l10n import messages
......@@ -65,13 +66,16 @@ def export_and_remote_copy(argv=list()):
def init_theme(argv):
theme_folder = "theme/"
themes_folder = os.path.expanduser("~")+"/.local/share/VenC/themes/"
if len(argv) == 1
if len(argv) == 1:
if os.path.isdir(themes_folder+argv[0]):
theme_folder = os.path.expanduser("~")+"/.local/share/VenC/themes/"+argv[0]+"/"
else:
die(theme_doesnt_exists.format(argv[0]))
if not os.path.isdir(theme_folder):
die(messages.file_not_found.format(theme_folder))
if "config.yaml" in os.listdir(theme_folder) and not os.path.isdir(themes_folder+"/config.yaml"):
import yaml
config = yaml.load(open(theme_folder+"/config.yaml",'r').read())
......@@ -190,7 +194,6 @@ def export_blog(argv=list()):
def edit_and_export(argv):
if len(argv) != 1:
from venc2.helpers import die
die(messages.missing_params.format("--edit-and-export"))
try:
......@@ -199,7 +202,6 @@ def edit_and_export(argv):
pass
except TypeError:
from venc2.helpers import die
die(messages.unknown_text_editor.format(datastore.blog_configuration["text_editor"]))
except:
......
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