commit 4ef88ade548e272f89b9c2389e4ca198bdfd2418 Author: theo lem <=> Date: Fri Apr 3 15:05:13 2020 +0200 first commit diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..14f9864 --- /dev/null +++ b/Makefile @@ -0,0 +1,75 @@ +PY?=python3 +PELICAN?=pelican +PELICANOPTS= + +BASEDIR=$(CURDIR) +INPUTDIR=$(BASEDIR)/content +OUTPUTDIR=$(BASEDIR)/output +CONFFILE=$(BASEDIR)/pelicanconf.py +PUBLISHCONF=$(BASEDIR)/publishconf.py + + +DEBUG ?= 0 +ifeq ($(DEBUG), 1) + PELICANOPTS += -D +endif + +RELATIVE ?= 0 +ifeq ($(RELATIVE), 1) + PELICANOPTS += --relative-urls +endif + +help: + @echo 'Makefile for a pelican Web site ' + @echo ' ' + @echo 'Usage: ' + @echo ' make html (re)generate the web site ' + @echo ' make clean remove the generated files ' + @echo ' make regenerate regenerate files upon modification ' + @echo ' make publish generate using production settings ' + @echo ' make serve [PORT=8000] serve site at http://localhost:8000' + @echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 ' + @echo ' make devserver [PORT=8000] serve and regenerate together ' + @echo ' make ssh_upload upload the web site via SSH ' + @echo ' make rsync_upload upload the web site via rsync+ssh ' + @echo ' ' + @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' + @echo 'Set the RELATIVE variable to 1 to enable relative urls ' + @echo ' ' + +html: + $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) + +clean: + [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) + +regenerate: + $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) + +serve: +ifdef PORT + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) +else + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) +endif + +serve-global: +ifdef SERVER + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) +else + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0 +endif + + +devserver: +ifdef PORT + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) +else + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) +endif + +publish: + $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) + + +.PHONY: html help clean regenerate serve serve-global devserver publish diff --git a/__pycache__/pelicanconf.cpython-37.pyc b/__pycache__/pelicanconf.cpython-37.pyc new file mode 100644 index 0000000..d7cc80c Binary files /dev/null and b/__pycache__/pelicanconf.cpython-37.pyc differ diff --git a/content/articles/article-de-manon.md b/content/articles/article-de-manon.md new file mode 100644 index 0000000..7daef28 --- /dev/null +++ b/content/articles/article-de-manon.md @@ -0,0 +1,14 @@ +Title: L'article de Manon +Date: 2020-03-30 10:20 +Modified: 2020-03-30 10:20 +Category: public +Tags: swag, résilience +Slug: article-manon +Authors: manon +Summary: Short version for index and feeds + +# Le swag +Définition : un levier de paillettes + +# La résilience +Une porte d'entrée vers les perspectives \ No newline at end of file diff --git a/content/articles/firstarticle.md b/content/articles/firstarticle.md new file mode 100644 index 0000000..d6162f2 --- /dev/null +++ b/content/articles/firstarticle.md @@ -0,0 +1,30 @@ +Title: My super title 1 +Date: 2020-03-30 10:20 +Modified: 2020-03-30 10:20 +Category: public +Tags: ducks, kubernetes +Slug: my-super-post-1 +Authors: fel +Summary: Short version for index and feeds + +# CALLED IT +`do you even markdown` + +do you even markdown + +# autres trucs +

+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fermentum dui faucibus in ornare quam. Lacinia quis vel eros donec ac odio. Commodo viverra maecenas accumsan lacus vel facilisis. Donec et odio pellentesque diam volutpat commodo sed egestas. Vel orci porta non pulvinar neque laoreet suspendisse. Habitasse platea dictumst vestibulum rhoncus est pellentesque elit. Sit amet mattis vulputate enim nulla aliquet porttitor. Metus vulputate eu scelerisque felis imperdiet proin fermentum leo. Sagittis aliquam malesuada bibendum arcu. Bibendum arcu vitae elementum curabitur vitae nunc sed. Semper eget duis at tellus at urna. Mi proin sed libero enim sed faucibus turpis in. Ac turpis egestas integer eget aliquet nibh. Quis risus sed vulputate odio ut enim blandit. Ultrices mi tempus imperdiet nulla. +

+

+Sed augue lacus viverra vitae congue eu. Sed id semper risus in hendrerit gravida rutrum. Sollicitudin ac orci phasellus egestas tellus rutrum tellus pellentesque. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Ut venenatis tellus in metus vulputate eu scelerisque felis. Lorem ipsum dolor sit amet. Varius duis at consectetur lorem donec massa sapien faucibus et. Nisl suscipit adipiscing bibendum est ultricies integer. Sed egestas egestas fringilla phasellus. Vulputate ut pharetra sit amet aliquam id diam. Varius morbi enim nunc faucibus a pellentesque sit amet porttitor. Sodales neque sodales ut etiam. Cursus risus at ultrices mi tempus imperdiet nulla. +

+

+Gravida dictum fusce ut placerat orci nulla. Ullamcorper a lacus vestibulum sed arcu non. Sed risus pretium quam vulputate dignissim suspendisse in est ante. Lectus arcu bibendum at varius vel pharetra vel. Et malesuada fames ac turpis egestas. Sed id semper risus in. In arcu cursus euismod quis viverra. Pretium fusce id velit ut tortor. Elit eget gravida cum sociis. Urna porttitor rhoncus dolor purus non enim praesent elementum facilisis. Mi proin sed libero enim sed faucibus turpis in. Id interdum velit laoreet id donec ultrices tincidunt arcu. Proin fermentum leo vel orci. Egestas congue quisque egestas diam in arcu. Lectus nulla at volutpat diam. At tempor commodo ullamcorper a lacus vestibulum sed arcu non. Pellentesque sit amet porttitor eget dolor. Enim sed faucibus turpis in eu mi bibendum. Pharetra massa massa ultricies mi. Mauris commodo quis imperdiet massa tincidunt. +

+

+Venenatis lectus magna fringilla urna porttitor rhoncus. Dictum non consectetur a erat nam at lectus urna. Viverra nibh cras pulvinar mattis nunc sed blandit libero volutpat. Hac habitasse platea dictumst quisque sagittis purus sit amet. Diam volutpat commodo sed egestas egestas fringilla phasellus faucibus scelerisque. Ut diam quam nulla porttitor massa id neque. Facilisis leo vel fringilla est ullamcorper eget. Rhoncus aenean vel elit scelerisque mauris pellentesque. Ipsum faucibus vitae aliquet nec ullamcorper sit amet risus nullam. Cum sociis natoque penatibus et magnis. Volutpat odio facilisis mauris sit amet massa vitae. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit amet. Sem nulla pharetra diam sit amet. Volutpat blandit aliquam etiam erat. Viverra orci sagittis eu volutpat odio facilisis mauris. Sed cras ornare arcu dui vivamus. Id cursus metus aliquam eleifend mi in nulla posuere. Viverra suspendisse potenti nullam ac tortor vitae. Malesuada proin libero nunc consequat interdum varius sit. Pellentesque sit amet porttitor eget dolor. +

+

+Dictumst quisque sagittis purus sit amet volutpat consequat mauris. Quam lacus suspendisse faucibus interdum posuere lorem ipsum dolor sit. Suspendisse interdum consectetur libero id. Blandit cursus risus at ultrices. Velit scelerisque in dictum non consectetur a erat nam at. Lacus viverra vitae congue eu consequat ac. Purus semper eget duis at tellus at urna condimentum. A erat nam at lectus. Ornare arcu dui vivamus arcu. Enim sed faucibus turpis in eu mi. Lectus quam id leo in vitae. Aliquet enim tortor at auctor urna nunc id cursus. Facilisi nullam vehicula ipsum a arcu cursus vitae congue mauris. Et netus et malesuada fames ac turpis egestas integer. Fermentum dui faucibus in ornare quam viverra orci sagittis. Diam donec adipiscing tristique risus nec. Massa eget egestas purus viverra accumsan in nisl. In aliquam sem fringilla ut morbi tincidunt augue. +

\ No newline at end of file diff --git a/content/articles/secondarticle.md b/content/articles/secondarticle.md new file mode 100644 index 0000000..b5ef0a1 --- /dev/null +++ b/content/articles/secondarticle.md @@ -0,0 +1,14 @@ +Title: My super title 2 +Date: 2010-12-03 10:20 +Modified: 2010-12-05 19:30 +Category: personal +Tags: beavers +Slug: my-super-post-2 +Authors: theo +Summary: Short version for index and feeds 2 + +# Second article + +Other random shit to talk about + +## other shit \ No newline at end of file diff --git a/output/archives.html b/output/archives.html new file mode 100644 index 0000000..e69de29 diff --git a/output/article-manon.html b/output/article-manon.html new file mode 100644 index 0000000..e8d9112 --- /dev/null +++ b/output/article-manon.html @@ -0,0 +1,29 @@ + + + + + Félicie + + + + + +
+

L'article de Manon

+

by manon

+

Le swag

+

Définition : un levier de paillettes

+

La résilience

+

Une porte d'entrée vers les perspectives

+
+ + + + \ No newline at end of file diff --git a/output/author/fel.html b/output/author/fel.html new file mode 100644 index 0000000..e69de29 diff --git a/output/author/manon.html b/output/author/manon.html new file mode 100644 index 0000000..e69de29 diff --git a/output/author/thelem.html b/output/author/thelem.html new file mode 100644 index 0000000..e69de29 diff --git a/output/author/theo.html b/output/author/theo.html new file mode 100644 index 0000000..e69de29 diff --git a/output/authors.html b/output/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/output/categories.html b/output/categories.html new file mode 100644 index 0000000..e69de29 diff --git a/output/category/article.html b/output/category/article.html new file mode 100644 index 0000000..e69de29 diff --git a/output/category/personal.html b/output/category/personal.html new file mode 100644 index 0000000..e69de29 diff --git a/output/category/public.html b/output/category/public.html new file mode 100644 index 0000000..e69de29 diff --git a/output/index.html b/output/index.html new file mode 100644 index 0000000..e872a36 --- /dev/null +++ b/output/index.html @@ -0,0 +1,41 @@ + + + + + Félicie + + + + + +
+

Welcome aboard !

+ + + + + + + +
+ + + + \ No newline at end of file diff --git a/output/my-super-post-1.html b/output/my-super-post-1.html new file mode 100644 index 0000000..e571d3b --- /dev/null +++ b/output/my-super-post-1.html @@ -0,0 +1,44 @@ + + + + + Félicie + + + + + +
+

My super title 1

+

by fel

+

CALLED IT

+

do you even markdown

+

do you even markdown

+

autres trucs

+

+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fermentum dui faucibus in ornare quam. Lacinia quis vel eros donec ac odio. Commodo viverra maecenas accumsan lacus vel facilisis. Donec et odio pellentesque diam volutpat commodo sed egestas. Vel orci porta non pulvinar neque laoreet suspendisse. Habitasse platea dictumst vestibulum rhoncus est pellentesque elit. Sit amet mattis vulputate enim nulla aliquet porttitor. Metus vulputate eu scelerisque felis imperdiet proin fermentum leo. Sagittis aliquam malesuada bibendum arcu. Bibendum arcu vitae elementum curabitur vitae nunc sed. Semper eget duis at tellus at urna. Mi proin sed libero enim sed faucibus turpis in. Ac turpis egestas integer eget aliquet nibh. Quis risus sed vulputate odio ut enim blandit. Ultrices mi tempus imperdiet nulla. +

+

+Sed augue lacus viverra vitae congue eu. Sed id semper risus in hendrerit gravida rutrum. Sollicitudin ac orci phasellus egestas tellus rutrum tellus pellentesque. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Ut venenatis tellus in metus vulputate eu scelerisque felis. Lorem ipsum dolor sit amet. Varius duis at consectetur lorem donec massa sapien faucibus et. Nisl suscipit adipiscing bibendum est ultricies integer. Sed egestas egestas fringilla phasellus. Vulputate ut pharetra sit amet aliquam id diam. Varius morbi enim nunc faucibus a pellentesque sit amet porttitor. Sodales neque sodales ut etiam. Cursus risus at ultrices mi tempus imperdiet nulla. +

+

+Gravida dictum fusce ut placerat orci nulla. Ullamcorper a lacus vestibulum sed arcu non. Sed risus pretium quam vulputate dignissim suspendisse in est ante. Lectus arcu bibendum at varius vel pharetra vel. Et malesuada fames ac turpis egestas. Sed id semper risus in. In arcu cursus euismod quis viverra. Pretium fusce id velit ut tortor. Elit eget gravida cum sociis. Urna porttitor rhoncus dolor purus non enim praesent elementum facilisis. Mi proin sed libero enim sed faucibus turpis in. Id interdum velit laoreet id donec ultrices tincidunt arcu. Proin fermentum leo vel orci. Egestas congue quisque egestas diam in arcu. Lectus nulla at volutpat diam. At tempor commodo ullamcorper a lacus vestibulum sed arcu non. Pellentesque sit amet porttitor eget dolor. Enim sed faucibus turpis in eu mi bibendum. Pharetra massa massa ultricies mi. Mauris commodo quis imperdiet massa tincidunt. +

+

+Venenatis lectus magna fringilla urna porttitor rhoncus. Dictum non consectetur a erat nam at lectus urna. Viverra nibh cras pulvinar mattis nunc sed blandit libero volutpat. Hac habitasse platea dictumst quisque sagittis purus sit amet. Diam volutpat commodo sed egestas egestas fringilla phasellus faucibus scelerisque. Ut diam quam nulla porttitor massa id neque. Facilisis leo vel fringilla est ullamcorper eget. Rhoncus aenean vel elit scelerisque mauris pellentesque. Ipsum faucibus vitae aliquet nec ullamcorper sit amet risus nullam. Cum sociis natoque penatibus et magnis. Volutpat odio facilisis mauris sit amet massa vitae. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit amet. Sem nulla pharetra diam sit amet. Volutpat blandit aliquam etiam erat. Viverra orci sagittis eu volutpat odio facilisis mauris. Sed cras ornare arcu dui vivamus. Id cursus metus aliquam eleifend mi in nulla posuere. Viverra suspendisse potenti nullam ac tortor vitae. Malesuada proin libero nunc consequat interdum varius sit. Pellentesque sit amet porttitor eget dolor. +

+

+Dictumst quisque sagittis purus sit amet volutpat consequat mauris. Quam lacus suspendisse faucibus interdum posuere lorem ipsum dolor sit. Suspendisse interdum consectetur libero id. Blandit cursus risus at ultrices. Velit scelerisque in dictum non consectetur a erat nam at. Lacus viverra vitae congue eu consequat ac. Purus semper eget duis at tellus at urna condimentum. A erat nam at lectus. Ornare arcu dui vivamus arcu. Enim sed faucibus turpis in eu mi. Lectus quam id leo in vitae. Aliquet enim tortor at auctor urna nunc id cursus. Facilisi nullam vehicula ipsum a arcu cursus vitae congue mauris. Et netus et malesuada fames ac turpis egestas integer. Fermentum dui faucibus in ornare quam viverra orci sagittis. Diam donec adipiscing tristique risus nec. Massa eget egestas purus viverra accumsan in nisl. In aliquam sem fringilla ut morbi tincidunt augue. +

+
+ + + + \ No newline at end of file diff --git a/output/my-super-post-2.html b/output/my-super-post-2.html new file mode 100644 index 0000000..c64a682 --- /dev/null +++ b/output/my-super-post-2.html @@ -0,0 +1,28 @@ + + + + + Félicie + + + + + +
+

My super title 2

+

by theo

+

Second article

+

Other random shit to talk about

+

other shit

+
+ + + + \ No newline at end of file diff --git a/output/second-article-title.html b/output/second-article-title.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tag/beavers.html b/output/tag/beavers.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tag/ducks.html b/output/tag/ducks.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tag/kubernetes.html b/output/tag/kubernetes.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tag/resilience.html b/output/tag/resilience.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tag/swag.html b/output/tag/swag.html new file mode 100644 index 0000000..e69de29 diff --git a/output/tags.html b/output/tags.html new file mode 100644 index 0000000..e69de29 diff --git a/output/theme/css/main.css b/output/theme/css/main.css new file mode 100644 index 0000000..8767996 --- /dev/null +++ b/output/theme/css/main.css @@ -0,0 +1,32 @@ +*{ + font-family: 'Courier New', Courier, monospace; + background-color:#527a7a; +} + +.sidebar{ + height: 100%; + width: 160px; + z-index: 1; /* Stay on top */ + top: 0; /* Stay at the top */ + left: 0; + padding-top: 20px; + position: fixed; + border-style: double; + border-right-color: black; +} + +.content{ + margin-left: 200px; + max-width: 60%; +} + +/* CSS MAIN */ + +h2{ + font-style: italic; +} + +a:before{ + color: #85adad; + content: '> '; +} \ No newline at end of file diff --git a/output/this-is-an-attempt-to-create-an-article.html b/output/this-is-an-attempt-to-create-an-article.html new file mode 100644 index 0000000..e69de29 diff --git a/pelicanconf.py b/pelicanconf.py new file mode 100644 index 0000000..d80cc8c --- /dev/null +++ b/pelicanconf.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # +from __future__ import unicode_literals + +AUTHOR = 'thelem' +SITENAME = 'Félicie' +SITEURL = '127.0.0.1' +CSS_FILE= 'main.css' + +PATH = 'content' + +TIMEZONE = 'Europe/Paris' + +DEFAULT_LANG = 'fr' + +# Feed generation is usually not desired when developing +FEED_ALL_ATOM = None +CATEGORY_FEED_ATOM = None +TRANSLATION_FEED_ATOM = None +AUTHOR_FEED_ATOM = None +AUTHOR_FEED_RSS = None + +# Blogroll +#LINKS = (('Pelican', 'http://getpelican.com/'), +# ('Python.org', 'http://python.org/'), +# ('Jinja2', 'http://jinja.pocoo.org/'), +# ('You can modify those links in your config file', '#'),) + +# Social widget +#SOCIAL = (('You can add links in your config file', '#'), +# ('Another social link', '#'),) + +DEFAULT_PAGINATION = 10 + +# Uncomment following line if you want document-relative URLs when developing +#RELATIVE_URLS = True + +THEME='themes/felicie' diff --git a/publishconf.py b/publishconf.py new file mode 100644 index 0000000..d64e470 --- /dev/null +++ b/publishconf.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # +from __future__ import unicode_literals + +# This file is only used if you use `make publish` or +# explicitly specify it as your config file. + +import os +import sys +sys.path.append(os.curdir) +from pelicanconf import * + +# If your site is available via HTTPS, make sure SITEURL begins with https:// +SITEURL = '127.0.0.1:8000/' +RELATIVE_URLS = False + +FEED_ALL_ATOM = 'feeds/all.atom.xml' +CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' + +DELETE_OUTPUT_DIRECTORY = True + +# Following items are often useful when publishing + +#DISQUS_SITENAME = "" +#GOOGLE_ANALYTICS = "" diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..e89b3db --- /dev/null +++ b/tasks.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- + +import os +import shutil +import sys +import datetime + +from invoke import task +from invoke.util import cd +from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer +from pelican.settings import DEFAULT_CONFIG, get_settings_from_file + +SETTINGS_FILE_BASE = 'pelicanconf.py' +SETTINGS = {} +SETTINGS.update(DEFAULT_CONFIG) +LOCAL_SETTINGS = get_settings_from_file(SETTINGS_FILE_BASE) +SETTINGS.update(LOCAL_SETTINGS) + +CONFIG = { + 'settings_base': SETTINGS_FILE_BASE, + 'settings_publish': 'publishconf.py', + # Output path. Can be absolute or relative to tasks.py. Default: 'output' + 'deploy_path': SETTINGS['OUTPUT_PATH'], + # Port for `serve` + 'port': 8000, +} + +@task +def clean(c): + """Remove generated files""" + if os.path.isdir(CONFIG['deploy_path']): + shutil.rmtree(CONFIG['deploy_path']) + os.makedirs(CONFIG['deploy_path']) + +@task +def build(c): + """Build local version of site""" + c.run('pelican -s {settings_base}'.format(**CONFIG)) + +@task +def rebuild(c): + """`build` with the delete switch""" + c.run('pelican -d -s {settings_base}'.format(**CONFIG)) + +@task +def regenerate(c): + """Automatically regenerate site upon file modification""" + c.run('pelican -r -s {settings_base}'.format(**CONFIG)) + +@task +def serve(c): + """Serve site at http://localhost:$PORT/ (default port is 8000)""" + + class AddressReuseTCPServer(RootedHTTPServer): + allow_reuse_address = True + + server = AddressReuseTCPServer( + CONFIG['deploy_path'], + ('', CONFIG['port']), + ComplexHTTPRequestHandler) + + sys.stderr.write('Serving on port {port} ...\n'.format(**CONFIG)) + server.serve_forever() + +@task +def reserve(c): + """`build`, then `serve`""" + build(c) + serve(c) + +@task +def preview(c): + """Build production version of site""" + c.run('pelican -s {settings_publish}'.format(**CONFIG)) + +@task +def livereload(c): + """Automatically reload browser tab upon file modification.""" + from livereload import Server + build(c) + server = Server() + # Watch the base settings file + server.watch(CONFIG['settings_base'], lambda: build(c)) + # Watch content source files + content_file_extensions = ['.md', '.rst'] + for extension in content_file_extensions: + content_blob = '{0}/**/*{1}'.format(SETTINGS['PATH'], extension) + server.watch(content_blob, lambda: build(c)) + # Watch the theme's templates and static assets + theme_path = SETTINGS['THEME'] + server.watch('{}/templates/*.html'.format(theme_path), lambda: build(c)) + static_file_extensions = ['.css', '.js'] + for extension in static_file_extensions: + static_file = '{0}/static/**/*{1}'.format(theme_path, extension) + server.watch(static_file, lambda: build(c)) + # Serve output path on configured port + server.serve(port=CONFIG['port'], root=CONFIG['deploy_path']) + + +@task +def publish(c): + """Publish to production via rsync""" + c.run('pelican -s {settings_publish}'.format(**CONFIG)) + c.run( + 'rsync --delete --exclude ".DS_Store" -pthrvz -c ' + '-e "ssh -p {ssh_port}" ' + '{} {ssh_user}@{ssh_host}:{ssh_path}'.format( + CONFIG['deploy_path'].rstrip('/') + '/', + **CONFIG)) + diff --git a/themes/cebong/LICENSE.txt b/themes/cebong/LICENSE.txt new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/themes/cebong/LICENSE.txt @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/themes/cebong/README.markdown b/themes/cebong/README.markdown new file mode 100644 index 0000000..4964c95 --- /dev/null +++ b/themes/cebong/README.markdown @@ -0,0 +1,14 @@ +# pelican-cebong-theme # + +This theme is focused on simplicity and solarized-looks, its structure was derived from the pelican's *notmyidea* theme, and I altered some stuff to look more like [my old tumblr blog](http://kecebongsoft.tumblr.com), which is pretty much solarized-like. + +This theme is used for [my pelican blog](http://kecebongsoft.com). + +You can add a tagline below the title using `SITETAGLINE`, and add +additional footer information with `FOOTERTEXT` + +## Screenshots ## + +![screenshot1](screenshot-article.png) +![screenshot2](screenshot-with-tagline.png) +![screenshot3](screenshot-without-tagline.png) \ No newline at end of file diff --git a/themes/cebong/screenshot-article.png b/themes/cebong/screenshot-article.png new file mode 100644 index 0000000..b5a41f9 Binary files /dev/null and b/themes/cebong/screenshot-article.png differ diff --git a/themes/cebong/screenshot-with-tagline.png b/themes/cebong/screenshot-with-tagline.png new file mode 100644 index 0000000..e980313 Binary files /dev/null and b/themes/cebong/screenshot-with-tagline.png differ diff --git a/themes/cebong/screenshot-without-tagline.png b/themes/cebong/screenshot-without-tagline.png new file mode 100644 index 0000000..c2bf4e2 Binary files /dev/null and b/themes/cebong/screenshot-without-tagline.png differ diff --git a/themes/cebong/static/css/main.css b/themes/cebong/static/css/main.css new file mode 100644 index 0000000..c123f8c --- /dev/null +++ b/themes/cebong/static/css/main.css @@ -0,0 +1,461 @@ +/* + Name: Smashing HTML5 + Date: July 2009 + Description: Sample layout for HTML5 and CSS3 goodness. + Version: 1.0 + Author: Enrique Ramírez + Autor URI: http://enrique-ramirez.com +*/ + +/* Imports */ +@import url("reset.css"); +@import url("pygment.css"); +@import url("typogrify.css"); +@import url("https://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,600italic,700,700italic"); + +/***** Global *****/ +/* Body */ +body { + background: #FDF6E3; + color: #8A887B; + font-size: 16px; + font-family: 'Crimson Text', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; + /*line-height: 1.429;*/ + margin: 0; + padding: 0; + text-align: left; + text-shadow:0px 0px 1px #BFBFBF; + padding-top:120px; +} + +code{ + border:1px solid #eaeaea; + background-color:#f8f8f8; + font-size:11px; + font-style:normal; + color:#777; + -moz-border-radius:7px; + -webkit-border-radius:7px; + padding-left:3px; + padding-right:3px; + padding-bottom:0px; + font-weight:normal; + font-family:Consolas, "Liberation Mono", Courier, monospace; +} + +/* Headings */ +h1 {font-size: 2em } +h2 {font-size: 1.571em} /* 22px */ +h3 {font-size: 1.429em} /* 20px */ +h4 {font-size: 1.286em} /* 18px */ +h5 {font-size: 1.143em} /* 16px */ +h6 {font-size: 1em} /* 14px */ + +h1, h2, h3, h4, h5, h6 { + text-shadow:0px 0px 1px #BFBFBF; + font-weight: normal; + font-style: normal; + line-height: 50px; + /*margin-bottom: .8em;*/ + font-family: 'Crimson Text', arial, serif; +} +h1 { + font-size: 50px; + +} + +h3, h4, h5, h6 { margin-top: .8em; } + +hr { border: 1px dotted #8A887B; } + +/* Anchors */ +a {outline: 0;} +a img {border: 0px; text-decoration: none;} +a:link, a:visited { + color: inherit; + padding: 0 1px; + text-decoration: underline; +} +a:hover, a:active { + /*background-color: #inherit;*/ + /*color: #fff;*/ + text-decoration: underline; + /*text-shadow: 1px 1px 1px #333;*/ +} + +h1 a:hover { + background-color: inherit +} + +/* Paragraphs */ +p {margin-bottom: 1.143em;} + +strong, b {font-weight: bold;} +em, i {font-style: italic;} + +/* Lists */ +ul { + list-style: outside disc; + margin: 1em 0 1.5em 1.5em; +} + +ol { + list-style: outside decimal; + margin: 1em 0 1.5em 1.5em; +} + +.post-info { + /*float:right;*/ + /*margin:10px;*/ + /*padding:5px;*/ +} + +.post-info p{ + margin-bottom: 1px; +} + +.readmore { float: right } + +dl {margin: 0 0 1.5em 0;} +dt {font-weight: bold;} +dd {margin-left: 1.5em;} + +pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;} + +/* Quotes */ +blockquote { + margin: 20px; + font-style: italic; +} +cite {} + +q {} + +div.note { + float: right; + margin: 5px; + font-size: 85%; + max-width: 300px; +} + +/* Tables */ +table {margin: .5em auto 1.5em auto; width: 98%;} + + /* Thead */ + thead th {padding: .5em .4em; text-align: left;} + thead td {} + + /* Tbody */ + tbody td {padding: .5em .4em;} + tbody th {} + + tbody .alt td {} + tbody .alt th {} + + /* Tfoot */ + tfoot th {} + tfoot td {} + +/* HTML5 tags */ +header, section, footer, +aside, nav, article, figure { + display: block; +} + +/***** Layout *****/ +.body {clear: both; margin: 0 auto; width: 800px;} +img.right, figure.right {float: right; margin: 0 0 2em 2em;} +img.left, figure.left {float: left; margin: 0 2em 2em 0;} + +/* + Header +*****************/ +#banner { + margin: 0 auto; + padding: 2.5em 0 0 0; +} + + /* Banner */ + #banner h1 {font-size: 51px; line-height: 0;} + #banner h1 a:link, #banner h1 a:visited { + text-align:center; + color: #383732; + display: block; + font-weight: normal; + margin: 0 0 .4em .2em; + text-decoration: none; + } + #banner h1 a:hover, #banner h1 a:active { + background: none; + color: inherit; + /*text-shadow: none;*/ + } + + #banner h1 strong {font-size: 0.36em; font-weight: normal;} + + /* Main Nav */ + #banner nav { + background:transparent; + /*font-size: 1.143em;*/ + /*height: 40px;*/ + /*line-height: 30px;*/ + /*margin: 0 auto 2em auto;*/ + padding: 0; + text-align: center; + width: 800px; + font-style:italic; + + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + } + + #banner nav ul {list-style: none; margin: 0 auto; width: 800px;} + #banner nav li {float: left; display: inline; margin: 0;} + + #banner nav a:link, #banner nav a:visited { + display: inline-block; + /*height: 30px;*/ + padding: 5px; + text-decoration: none; + color: #8A887B; + } + #banner nav a:hover, #banner nav a:active, + #banner nav .active a:link, #banner nav .active a:visited { + background: transparent; + /*color: #fff;*/ + /*text-shadow: none !important;*/ + text-decoration:underline; + } + + #banner nav li:first-child a { + border-top-left-radius: 5px; + -moz-border-radius-topleft: 5px; + -webkit-border-top-left-radius: 5px; + + border-bottom-left-radius: 5px; + -moz-border-radius-bottomleft: 5px; + -webkit-border-bottom-left-radius: 5px; + } + +/* + Featured +*****************/ +#featured { + background: transparent; + margin-bottom: 2em; + overflow: hidden; + padding: 20px; + width: 760px; + + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; +} + +#featured figure { + border: 2px solid #eee; + float: right; + margin: 0.786em 2em 0 5em; + width: 248px; +} +#featured figure img {display: block; float: right;} + +#featured h2 {color: inherit; font-size: 1.714em; margin-bottom: 0.333em;} +#featured h3 {font-size: 1.429em; margin-bottom: .5em;} + +#featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;} +#featured h3 a:hover, #featured h3 a:active {color: #fff;} + +/* + Body +*****************/ +#content { + background: transparent; + margin-bottom: 2em; + overflow: hidden; + padding: 20px 20px; + width: 760px; + + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; +} + +/* + Extras +*****************/ +#extras {margin: 0 auto 3em auto; overflow: hidden;} + +#extras ul {list-style: none; margin: 0;} +#extras li {border-bottom: 1px solid #fff;} +#extras h2 { + color: inherit; + font-size: 1.429em; + margin-bottom: .25em; + padding: 0 3px; +} + +#extras a:link, #extras a:visited { + color: #444; + display: block; + border-bottom: 1px solid #F4E3E3; + text-decoration: none; + padding: .3em .25em; +} + +#extras a:hover, #extras a:active {color: #fff;} + + /* Blogroll */ + #extras .blogroll { + float: left; + width: 615px; + } + + #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;} + + /* Social */ + #extras .social { + float: right; + width: 175px; + } + + #extras div[class='social'] a { + background-repeat: no-repeat; + background-position: 3px 6px; + padding-left: 25px; + } + + /* Icons */ + .social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');} + .social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');} + .social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');} + .social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');} + .social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');} + .social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');} + .social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');} + .social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.org');} + +/* + About +*****************/ +#about { + background: transparent; + font-style: italic; + font-size: 11px; + margin-bottom: 2em; + overflow: hidden; + padding: 20px; + text-align: right; + width: 760px; + + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; +} + +#about .primary {float: left; width: 165px;} +#about .primary strong {color: #C64350; display: block; font-size: 1.286em;} +#about .photo {float: left; margin: 5px 20px;} + +#about .url:link, #about .url:visited {text-decoration: none;} + +#about .bio {float: right; width: 500px;} + +/* + Footer +*****************/ +#contentinfo {padding-bottom: 2em; text-align: right;} + +/***** Sections *****/ +/* Blog */ +.hentry { + display: block; + clear: both; + /*border-bottom: 1px solid #eee;*/ + /*padding: 1.5em 0;*/ +} +li:last-child .hentry, #content > .hentry {border: 0; margin: 0;} +#content > .hentry {padding: 1em 0;} +.hentry img{display : none ;} +.entry-title {text-align:center;font-size: 31px; font-style:italic; margin-bottom: 10px; margin-top: 0;} +.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #8A887B;} +.entry-title a:visited {background-color: #fff;} + +.hentry .post-info * {font-style: normal;} + + /* Content */ + .hentry footer {margin-bottom: 2em;} + .hentry footer address {display: inline;} + #posts-list footer address {display: block;} + + /* Blog Index */ + #posts-list {list-style: none; margin: 0;} + #posts-list .hentry {padding-left: 10px; position: relative;} + + #posts-list footer { + left: 10px; + position: relative; + float: left; + top: 0.5em; + width: 190px; + } + + /* About the Author */ + #about-author { + background: #f9f9f9; + clear: both; + font-style: normal; + margin: 2em 0; + padding: 10px 20px 15px 20px; + + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + } + + #about-author strong { + color: #C64350; + clear: both; + display: block; + font-size: 1.429em; + } + + #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;} + + /* Comments */ + #comments-list {list-style: none; margin: 0 1em;} + #comments-list blockquote { + background: #f8f8f8; + clear: both; + font-style: normal; + margin: 0; + padding: 15px 20px; + + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + } + #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;} + + #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;} + + /* Add a Comment */ + #add-comment label {clear: left; float: left; text-align: left; width: 150px;} + #add-comment input[type='text'], + #add-comment input[type='email'], + #add-comment input[type='url'] {float: left; width: 200px;} + + #add-comment textarea {float: left; height: 150px; width: 495px;} + + #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;} + + #add-comment input[type='submit'] {float: right; margin: 0 .5em;} + #add-comment * {margin-bottom: .5em;} + + #tagline{ + text-align:center; + font-style:italic; + padding:0px; + margin:0px; + } diff --git a/themes/cebong/static/css/pygment.css b/themes/cebong/static/css/pygment.css new file mode 100644 index 0000000..594b0fa --- /dev/null +++ b/themes/cebong/static/css/pygment.css @@ -0,0 +1,205 @@ +.hll { +background-color:#FFFFCC; +} +.c { +color:#408090; +font-style:italic; +} +.err { +border:1px solid #FF0000; +} +.k { +color:#007020; +font-weight:bold; +} +.o { +color:#666666; +} +.cm { +color:#408090; +font-style:italic; +} +.cp { +color:#007020; +} +.c1 { +color:#408090; +font-style:italic; +} +.cs { +background-color:#FFF0F0; +color:#408090; +} +.gd { +color:#A00000; +} +.ge { +font-style:italic; +} +.gr { +color:#FF0000; +} +.gh { +color:#000080; +font-weight:bold; +} +.gi { +color:#00A000; +} +.go { +color:#303030; +} +.gp { +color:#C65D09; +font-weight:bold; +} +.gs { +font-weight:bold; +} +.gu { +color:#800080; +font-weight:bold; +} +.gt { +color:#0040D0; +} +.kc { +color:#007020; +font-weight:bold; +} +.kd { +color:#007020; +font-weight:bold; +} +.kn { +color:#007020; +font-weight:bold; +} +.kp { +color:#007020; +} +.kr { +color:#007020; +font-weight:bold; +} +.kt { +color:#902000; +} +.m { +color:#208050; +} +.s { +color:#4070A0; +} +.na { +color:#4070A0; +} +.nb { +color:#007020; +} +.nc { +color:#0E84B5; +font-weight:bold; +} +.no { +color:#60ADD5; +} +.nd { +color:#555555; +font-weight:bold; +} +.ni { +color:#D55537; +font-weight:bold; +} +.ne { +color:#007020; +} +.nf { +color:#06287E; +} +.nl { +color:#002070; +font-weight:bold; +} +.nn { +color:#0E84B5; +font-weight:bold; +} +.nt { +color:#062873; +font-weight:bold; +} +.nv { +color:#BB60D5; +} +.ow { +color:#007020; +font-weight:bold; +} +.w { +color:#BBBBBB; +} +.mf { +color:#208050; +} +.mh { +color:#208050; +} +.mi { +color:#208050; +} +.mo { +color:#208050; +} +.sb { +color:#4070A0; +} +.sc { +color:#4070A0; +} +.sd { +color:#4070A0; +font-style:italic; +} +.s2 { +color:#4070A0; +} +.se { +color:#4070A0; +font-weight:bold; +} +.sh { +color:#4070A0; +} +.si { +color:#70A0D0; +font-style:italic; +} +.sx { +color:#C65D09; +} +.sr { +color:#235388; +} +.s1 { +color:#4070A0; +} +.ss { +color:#517918; +} +.bp { +color:#007020; +} +.vc { +color:#BB60D5; +} +.vg { +color:#BB60D5; +} +.vi { +color:#BB60D5; +} +.il { +color:#208050; +} diff --git a/themes/cebong/static/css/reset.css b/themes/cebong/static/css/reset.css new file mode 100644 index 0000000..1e21756 --- /dev/null +++ b/themes/cebong/static/css/reset.css @@ -0,0 +1,52 @@ +/* + Name: Reset Stylesheet + Description: Resets browser's default CSS + Author: Eric Meyer + Author URI: http://meyerweb.com/eric/tools/css/reset/ +*/ + +/* v1.0 | 20080212 */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + background: transparent; + border: 0; + font-size: 100%; + margin: 0; + outline: 0; + padding: 0; + vertical-align: baseline; +} + +body {line-height: 1;} + +ol, ul {list-style: none;} + +blockquote, q {quotes: none;} + +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! */ +:focus { + outline: 0; +} + +/* remember to highlight inserts somehow! */ +ins {text-decoration: none;} +del {text-decoration: line-through;} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} \ No newline at end of file diff --git a/themes/cebong/static/css/typogrify.css b/themes/cebong/static/css/typogrify.css new file mode 100644 index 0000000..c9b34dc --- /dev/null +++ b/themes/cebong/static/css/typogrify.css @@ -0,0 +1,3 @@ +.caps {font-size:.92em;} +.amp {color:#666; font-size:1.05em;font-family:"Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua",serif; font-style:italic;} +.dquo {margin-left:-.38em;} diff --git a/themes/cebong/static/css/wide.css b/themes/cebong/static/css/wide.css new file mode 100644 index 0000000..88fd59c --- /dev/null +++ b/themes/cebong/static/css/wide.css @@ -0,0 +1,48 @@ +@import url("main.css"); + +body { + font:1.3em/1.3 "Hoefler Text","Georgia",Georgia,serif,sans-serif; +} + +.post-info{ + display: none; +} + +#banner nav { + display: none; + -moz-border-radius: 0px; + margin-bottom: 20px; + overflow: hidden; + font-size: 1em; + background: #F5F4EF; +} + +#banner nav ul{ + padding-right: 50px; +} + +#banner nav li{ + float: right; + color: #000; +} + +#banner nav li a { + color: #000; +} + +#banner h1 { + margin-bottom: -18px; +} + +#featured, #extras { + padding: 50px; +} + +#featured { + padding-top: 20px; +} + +#extras { + padding-top: 0px; + padding-bottom: 0px; +} diff --git a/themes/cebong/static/images/icons/delicious.png b/themes/cebong/static/images/icons/delicious.png new file mode 100644 index 0000000..c6ce246 Binary files /dev/null and b/themes/cebong/static/images/icons/delicious.png differ diff --git a/themes/cebong/static/images/icons/facebook.png b/themes/cebong/static/images/icons/facebook.png new file mode 100644 index 0000000..a7914b4 Binary files /dev/null and b/themes/cebong/static/images/icons/facebook.png differ diff --git a/themes/cebong/static/images/icons/gitorious.png b/themes/cebong/static/images/icons/gitorious.png new file mode 100644 index 0000000..6485f5e Binary files /dev/null and b/themes/cebong/static/images/icons/gitorious.png differ diff --git a/themes/cebong/static/images/icons/lastfm.png b/themes/cebong/static/images/icons/lastfm.png new file mode 100644 index 0000000..b09c787 Binary files /dev/null and b/themes/cebong/static/images/icons/lastfm.png differ diff --git a/themes/cebong/static/images/icons/linkedin.png b/themes/cebong/static/images/icons/linkedin.png new file mode 100644 index 0000000..feb0496 Binary files /dev/null and b/themes/cebong/static/images/icons/linkedin.png differ diff --git a/themes/cebong/static/images/icons/rss.png b/themes/cebong/static/images/icons/rss.png new file mode 100644 index 0000000..7d4e85d Binary files /dev/null and b/themes/cebong/static/images/icons/rss.png differ diff --git a/themes/cebong/static/images/icons/twitter.png b/themes/cebong/static/images/icons/twitter.png new file mode 100644 index 0000000..d611928 Binary files /dev/null and b/themes/cebong/static/images/icons/twitter.png differ diff --git a/themes/cebong/templates/analytics.html b/themes/cebong/templates/analytics.html new file mode 100644 index 0000000..ba174fc --- /dev/null +++ b/themes/cebong/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + + +{% endif %} \ No newline at end of file diff --git a/themes/cebong/templates/archives.html b/themes/cebong/templates/archives.html new file mode 100644 index 0000000..ee225b4 --- /dev/null +++ b/themes/cebong/templates/archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block robots %}noindex,follow{% endblock %} +{% block content %} +
+

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% endblock %} diff --git a/themes/cebong/templates/article.html b/themes/cebong/templates/article.html new file mode 100644 index 0000000..15569d4 --- /dev/null +++ b/themes/cebong/templates/article.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} +{% block robots %} +{% if article.robots %}{{ article.robots }}{% else %}index,follow{% endif %} +{% endblock %} +{% block head_description %} +{% if article.summary %} +{{ article.summary|striptags }} +{% endif %} +{% endblock head_description %} +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block meta_tags_in_head %} +{% if article.tags and article.category %} + +{% endif %} +{% if article.category %} + +{% endif %} +{% if article.description %} + +{% elif article.summary %} + +{% endif %} +{% if article.author %} + + +{% endif %} +{% if article.date %} + +{% endif %} +{% endblock meta_tags_in_head %} +{% block content %} +
+
+
+

+ {{ article.title}}

+ {% include 'twitter.html' %} +
+ +
+ {% include 'article_infos.html' %} + {{ article.content }} +
+ {% if DISQUS_SITENAME %} +
+

Comments !

+
+ +
+ {% endif %} + +
+
+{% endblock %} diff --git a/themes/cebong/templates/article_infos.html b/themes/cebong/templates/article_infos.html new file mode 100644 index 0000000..f40c33b --- /dev/null +++ b/themes/cebong/templates/article_infos.html @@ -0,0 +1,7 @@ + diff --git a/themes/cebong/templates/author.html b/themes/cebong/templates/author.html new file mode 100644 index 0000000..7a49513 --- /dev/null +++ b/themes/cebong/templates/author.html @@ -0,0 +1,3 @@ +{% extends "index.html" %} +{% block robots %}noindex,follow{% endblock %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/themes/cebong/templates/authors.html b/themes/cebong/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/cebong/templates/base.html b/themes/cebong/templates/base.html new file mode 100644 index 0000000..bb61311 --- /dev/null +++ b/themes/cebong/templates/base.html @@ -0,0 +1,100 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + {% if not page and not article %} + + + {% if SITE_DESCRIPTION %} + + {% endif %} + {% endif %} + {% block meta_tags_in_head %} + {% endblock meta_tags_in_head %} + + + + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + +{% include 'github.html' %} + + {% block content %} + {% endblock %} +
+ {% if LINKS %} +
+

blogroll

+
    + {% for name, link in LINKS %} +
  • {{ name }}
  • + {% endfor %} +
+
+ {% endif %} + {% if SOCIAL %} + + {% endif %} +
+ + + +{% include 'analytics.html' %} +{% include 'piwik.html' %} +{% include 'disqus_script.html' %} + + diff --git a/themes/cebong/templates/category.html b/themes/cebong/templates/category.html new file mode 100644 index 0000000..bbbba4d --- /dev/null +++ b/themes/cebong/templates/category.html @@ -0,0 +1,3 @@ +{% extends "index.html" %} +{% block robots %}noindex,follow{% endblock %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/themes/cebong/templates/comments.html b/themes/cebong/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/themes/cebong/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/themes/cebong/templates/disqus_script.html b/themes/cebong/templates/disqus_script.html new file mode 100644 index 0000000..23ec532 --- /dev/null +++ b/themes/cebong/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/themes/cebong/templates/github.html b/themes/cebong/templates/github.html new file mode 100644 index 0000000..ccc401f --- /dev/null +++ b/themes/cebong/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} + +{% if GITHUB_POSITION != "left" %} +Fork me on GitHub +{% else %} +Fork me on GitHub +{% endif %} + +{% endif %} diff --git a/themes/cebong/templates/index.html b/themes/cebong/templates/index.html new file mode 100644 index 0000000..4fe58de --- /dev/null +++ b/themes/cebong/templates/index.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} +{% block robots %}noindex,follow{% endblock %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + + {# First item #} + {% if loop.first and not articles_page.has_previous() %} + + {% if loop.length > 1 %} +
+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first and articles_page.has_previous %} +
    +
      + {% endif %} +
    1. + {% endif %} + {% if loop.last %} +
    + {% if loop.last and (articles_page.has_previous() + or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} +
    + {% endif %} + {% endfor %} +{% else %} +
    +

    Pages

    + {% for page in pages %} +
  1. {{ page.title }}
  2. + {% endfor %} +
    +{% endif %} +{% endblock content %} diff --git a/themes/cebong/templates/page.html b/themes/cebong/templates/page.html new file mode 100644 index 0000000..54fe19e --- /dev/null +++ b/themes/cebong/templates/page.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block robots %} +{% if page.robots %}{{ page.robots }}{% else %}index,follow{% endif %} +{% endblock %} +{% block meta_tags_in_head %} +{% if page.tags and page.category %} + +{% endif %} +{% if page.category %} + +{% endif %} +{% if page.description %} + +{% elif page.summary %} + +{% endif %} +{% if page.author %} + + +{% endif %} +{% endblock meta_tags_in_head %} + +{% block content %} +
    +

    {{ page.title }}

    + {% if PDF_PROCESSOR %}get + the pdf{% endif %} + {{ page.content }} +
    +{% endblock %} diff --git a/themes/cebong/templates/piwik.html b/themes/cebong/templates/piwik.html new file mode 100644 index 0000000..337157a --- /dev/null +++ b/themes/cebong/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} diff --git a/themes/cebong/templates/tag.html b/themes/cebong/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/themes/cebong/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/themes/cebong/templates/taglist.html b/themes/cebong/templates/taglist.html new file mode 100644 index 0000000..c792fd7 --- /dev/null +++ b/themes/cebong/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

    tags: {% for tag in article.tags %}{{ tag }}{% endfor %}

    {% endif %} +{% if PDF_PROCESSOR %}

    get the pdf

    {% endif %} diff --git a/themes/cebong/templates/translations.html b/themes/cebong/templates/translations.html new file mode 100644 index 0000000..0079883 --- /dev/null +++ b/themes/cebong/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} diff --git a/themes/cebong/templates/twitter.html b/themes/cebong/templates/twitter.html new file mode 100644 index 0000000..bf78c32 --- /dev/null +++ b/themes/cebong/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} + +{% endif %} diff --git a/themes/felicie/static/css/main.css b/themes/felicie/static/css/main.css new file mode 100644 index 0000000..8767996 --- /dev/null +++ b/themes/felicie/static/css/main.css @@ -0,0 +1,32 @@ +*{ + font-family: 'Courier New', Courier, monospace; + background-color:#527a7a; +} + +.sidebar{ + height: 100%; + width: 160px; + z-index: 1; /* Stay on top */ + top: 0; /* Stay at the top */ + left: 0; + padding-top: 20px; + position: fixed; + border-style: double; + border-right-color: black; +} + +.content{ + margin-left: 200px; + max-width: 60%; +} + +/* CSS MAIN */ + +h2{ + font-style: italic; +} + +a:before{ + color: #85adad; + content: '> '; +} \ No newline at end of file diff --git a/themes/felicie/templates/archives.html b/themes/felicie/templates/archives.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/article.html b/themes/felicie/templates/article.html new file mode 100644 index 0000000..8f44f0d --- /dev/null +++ b/themes/felicie/templates/article.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} + +{% block content %} +

    {{ article.title }}

    + +
    {{ article.content }}
    +{% endblock content %} \ No newline at end of file diff --git a/themes/felicie/templates/author.html b/themes/felicie/templates/author.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/authors.html b/themes/felicie/templates/authors.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/base.html b/themes/felicie/templates/base.html new file mode 100644 index 0000000..5970107 --- /dev/null +++ b/themes/felicie/templates/base.html @@ -0,0 +1,26 @@ + + + + + {% block title %}{{ SITENAME }}{% endblock %} + + + + + +
    + {% block content%} {% endblock %} +
    + + + + \ No newline at end of file diff --git a/themes/felicie/templates/categories.html b/themes/felicie/templates/categories.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/category.html b/themes/felicie/templates/category.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/index.html b/themes/felicie/templates/index.html new file mode 100644 index 0000000..9e49530 --- /dev/null +++ b/themes/felicie/templates/index.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} + +{% block sidebar %} + +{% endblock sidebar %} + +{% block content %} +

    Welcome aboard !

    + + + + + + + + {% endblock content %} \ No newline at end of file diff --git a/themes/felicie/templates/page.html b/themes/felicie/templates/page.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/period_archives.html b/themes/felicie/templates/period_archives.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/tag.html b/themes/felicie/templates/tag.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/felicie/templates/tags.html b/themes/felicie/templates/tags.html new file mode 100644 index 0000000..e69de29