diff --git a/.hgignore b/.hgignore deleted file mode 100644 index f9fdccc..0000000 --- a/.hgignore +++ /dev/null @@ -1,2 +0,0 @@ -syntax: glob -output/* diff --git a/pelican.conf.py b/pelican.conf.py index 9172b14..e36f44c 100644 --- a/pelican.conf.py +++ b/pelican.conf.py @@ -3,9 +3,7 @@ PATH = "content" AUTHOR = u'Alexis Métaireau' SITENAME = u"Carnets Web" -THEME = "pelicanyan" -# THEME = "theme" -CSS_FILE = "wide.css" +THEME = "theme" DISQUS_SITENAME = 'notmyidea' STATIC_PATHS = ['static'] diff --git a/pelicanyan/README.md b/pelicanyan/README.md deleted file mode 100644 index c72c2e1..0000000 --- a/pelicanyan/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# Pelicanyan - -Pelicanyan brings Jekyll's [Lanyon Theme](https://github.com/poole/lanyon/) to -[Pelican](http://github.com/getpelican) and adds some Pelican niceties -including a sitemap.xml, robots.txt, humans.txt, etc. - -More information about the lanyon theme including screenshots and such -is best found over at the [Lanyon Repo](https://github.com/poole/lanyon/). Here's a sample: - -![Lanyon](https://f.cloud.github.com/assets/98681/1825266/be03f014-71b0-11e3-9539-876e61530e24.png) - -## Usage - -Assumes you've already got your [blog -created](http://docs.getpelican.com/en/3.5.0/quickstart.html) and have -cloned this repo. - -1. Download poole.css, lanyon.css, and syntax.css from the [Lanyon - repo](https://github.com/poole/lanyon/tree/master/public/css) and save into the static/css directory -2. Set basic theme-specific settings in your blog's pelicanconf.py: - - THEME='path-to-cloned-repo' - - GA_ACCOUNT (your GA account id, e.g., 'UA-12344321-1') assuming - you'd like GA enabled (see base.html) - - TWITTER_ACCOUNT (e.g., your twitter account name without the @) - - DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', - 'sitemap', 'robots', 'humans') - - ROBOTS_SAVE_AS = 'robots.txt' - - HUMANS_SAVE_AS = 'humans.txt' - - SITEMAP_SAVE_AS = 'sitemap.xml' - - DEFAULT_LANG = 'en' - - DATE_FORMATS = { 'en': '%B %d, %Y', } - - STATIC_PATHS = ['images', 'favicon.ico'] note: this assumes your - blog's article images are located in content/images/ and your favicon.ico is located in content/ - - (Additional Required Fields) AUTHOR, SITENAME, SITEURL - - (Optional) TYPOGRIFY=True (and pip3 install it of course) - - (Optional) Set SITEDESCRIPTION - - (Optional) Set your LINKS -3. Add your profile photo - Replace the 400x400 PNG located at - static/img/profile.png with your own - -Then to try it out locally, back in your blog's directory: -```bash -$ make clean && make devserver && open http://localhost:8000 -``` - -## Compatability & Caveats - -Pelicanyan's probably best considered alpha at this time and hasn't -undergone much testing - would welcome help finding & fixing bugs and -also with the browser compatability matrix! While it's likely that -Lanyon's options - e.g., reversing the layout, updating color scheme, -etc. - remain functional here, these haven't been tested either. - -## Author - -**Thomas Willey** -- -- - -## License - -Open sourced under the [MIT license](LICENSE). - -### Example Quickstart - -```bash -$ mkdir sample_blog && cd sample_blog/ -$ python3 -m virtualenv --no-site-packages --distribute venv -$ source venv/bin/activate -$ pip3 install pelican markdown typogrify -$ pelican-quickstart -``` - -``` - Where do you want to create your new web site? [.] - What will be the title of this web site? sample blog - Who will be the author of this web site? me - What will be the default language of this web site? [en] - Do you want to specify a URL prefix? e.g., http://example.com - (Y/n) n - Do you want to enable article pagination? (Y/n) n - Do you want to generate a Fabfile/Makefile to automate - generation and publishing? (Y/n) Y - Do you want an auto-reload & simpleHTTP script to assist with theme - and site development? (Y/n) Y - Do you want to upload your website using FTP? (y/N) n - Do you want to upload your website using SSH? (y/N) n - Do you want to upload your website using Dropbox? (y/N) n - Do you want to upload your website using S3? (y/N) n - Do you want to upload your website using Rackspace Cloud Files? - (y/N) n - Do you want to upload your website using GitHub Pages? (y/N) n - Done. Your new project is available at /xyz/sample_blog -``` - -```bash -$ git clone https://github.com/thomaswilley/pelicanyan.git -$ vim pelicanconf.py -``` -Append the following to pelicanconf.py: - -``` -THEME = 'pelicanyan' -GA_ACCOUNT = 'UA-12344321-1' -TWITTER_ACCOUNT = 'getpelican' -DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'sitemap', 'robots', 'humans') -ROBOTS_SAVE_AS = 'robots.txt' -HUMANS_SAVE_AS = 'humans.txt' -SITEMAP_SAVE_AS = 'sitemap.xml' -DEFAULT_LANG = 'en' -DATE_FORMATS = { 'en': '%B %d, %Y', } -STATIC_PATHS = ['images', 'favicon.ico'] -SITEDESCRIPTION = 'sample blog' -TYPOGRIFY=True -``` - -```bash -$ cd pelicanyan/static/css/ -$ wget https://raw.githubusercontent.com/poole/lanyon/master/public/css/lanyon.css -$ wget https://raw.githubusercontent.com/poole/lanyon/master/public/css/poole.css -$ wget https://raw.githubusercontent.com/poole/lanyon/master/public/css/syntax.css -$ cd ../../../ -``` -(back in /xyz/sample_blog) - -```bash -$ make clean && make html && make serve -$ open http://localhost:8000 -``` diff --git a/pelicanyan/static/.DS_Store b/pelicanyan/static/.DS_Store deleted file mode 100644 index ca0d446..0000000 Binary files a/pelicanyan/static/.DS_Store and /dev/null differ diff --git a/pelicanyan/LICENSE b/theme/LICENSE similarity index 100% rename from pelicanyan/LICENSE rename to theme/LICENSE diff --git a/pelicanyan/static/css/lanyon.css b/theme/static/css/lanyon.css similarity index 100% rename from pelicanyan/static/css/lanyon.css rename to theme/static/css/lanyon.css diff --git a/pelicanyan/static/css/poole.css b/theme/static/css/poole.css similarity index 100% rename from pelicanyan/static/css/poole.css rename to theme/static/css/poole.css diff --git a/pelicanyan/static/css/styles.css b/theme/static/css/styles.css similarity index 100% rename from pelicanyan/static/css/styles.css rename to theme/static/css/styles.css diff --git a/pelicanyan/static/css/syntax.css b/theme/static/css/syntax.css similarity index 100% rename from pelicanyan/static/css/syntax.css rename to theme/static/css/syntax.css diff --git a/pelicanyan/static/img/2015-05-01.jpg b/theme/static/img/2015-05-01.jpg similarity index 100% rename from pelicanyan/static/img/2015-05-01.jpg rename to theme/static/img/2015-05-01.jpg diff --git a/pelicanyan/static/img/profile.png b/theme/static/img/profile.png similarity index 100% rename from pelicanyan/static/img/profile.png rename to theme/static/img/profile.png diff --git a/pelicanyan/static/js/instantclick.min.js b/theme/static/js/instantclick.min.js similarity index 100% rename from pelicanyan/static/js/instantclick.min.js rename to theme/static/js/instantclick.min.js diff --git a/pelicanyan/templates/archives.html b/theme/templates/archives.html similarity index 100% rename from pelicanyan/templates/archives.html rename to theme/templates/archives.html diff --git a/pelicanyan/templates/article.html b/theme/templates/article.html similarity index 100% rename from pelicanyan/templates/article.html rename to theme/templates/article.html diff --git a/pelicanyan/templates/author.html b/theme/templates/author.html similarity index 100% rename from pelicanyan/templates/author.html rename to theme/templates/author.html diff --git a/pelicanyan/templates/authors.html b/theme/templates/authors.html similarity index 100% rename from pelicanyan/templates/authors.html rename to theme/templates/authors.html diff --git a/pelicanyan/templates/base.html b/theme/templates/base.html similarity index 100% rename from pelicanyan/templates/base.html rename to theme/templates/base.html diff --git a/pelicanyan/templates/categories.html b/theme/templates/categories.html similarity index 100% rename from pelicanyan/templates/categories.html rename to theme/templates/categories.html diff --git a/pelicanyan/templates/category.html b/theme/templates/category.html similarity index 100% rename from pelicanyan/templates/category.html rename to theme/templates/category.html diff --git a/pelicanyan/templates/humans.html b/theme/templates/humans.html similarity index 100% rename from pelicanyan/templates/humans.html rename to theme/templates/humans.html diff --git a/pelicanyan/templates/index.html b/theme/templates/index.html similarity index 100% rename from pelicanyan/templates/index.html rename to theme/templates/index.html diff --git a/pelicanyan/templates/page.html b/theme/templates/page.html similarity index 100% rename from pelicanyan/templates/page.html rename to theme/templates/page.html diff --git a/pelicanyan/templates/pagination.html b/theme/templates/pagination.html similarity index 100% rename from pelicanyan/templates/pagination.html rename to theme/templates/pagination.html diff --git a/pelicanyan/templates/period_archives.html b/theme/templates/period_archives.html similarity index 100% rename from pelicanyan/templates/period_archives.html rename to theme/templates/period_archives.html diff --git a/pelicanyan/templates/robots.html b/theme/templates/robots.html similarity index 100% rename from pelicanyan/templates/robots.html rename to theme/templates/robots.html diff --git a/pelicanyan/templates/sidebar.html b/theme/templates/sidebar.html similarity index 100% rename from pelicanyan/templates/sidebar.html rename to theme/templates/sidebar.html diff --git a/pelicanyan/templates/sitemap.html b/theme/templates/sitemap.html similarity index 100% rename from pelicanyan/templates/sitemap.html rename to theme/templates/sitemap.html diff --git a/pelicanyan/templates/tag.html b/theme/templates/tag.html similarity index 100% rename from pelicanyan/templates/tag.html rename to theme/templates/tag.html diff --git a/pelicanyan/templates/tags.html b/theme/templates/tags.html similarity index 100% rename from pelicanyan/templates/tags.html rename to theme/templates/tags.html diff --git a/pelicanyan/templates/translations.html b/theme/templates/translations.html similarity index 100% rename from pelicanyan/templates/translations.html rename to theme/templates/translations.html