From 6f568f7c0408708733b3a3b3bc6cc72159af88c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Wed, 17 Jan 2018 19:30:28 +0100 Subject: [PATCH] Move the pelicanyan theme to theme --- .hgignore | 2 - pelican.conf.py | 4 +- pelicanyan/README.md | 129 ------------------ pelicanyan/static/.DS_Store | Bin 8196 -> 0 bytes {pelicanyan => theme}/LICENSE | 0 {pelicanyan => theme}/static/css/lanyon.css | 0 {pelicanyan => theme}/static/css/poole.css | 0 {pelicanyan => theme}/static/css/styles.css | 0 {pelicanyan => theme}/static/css/syntax.css | 0 .../static/img/2015-05-01.jpg | Bin {pelicanyan => theme}/static/img/profile.png | Bin .../static/js/instantclick.min.js | 0 {pelicanyan => theme}/templates/archives.html | 0 {pelicanyan => theme}/templates/article.html | 0 {pelicanyan => theme}/templates/author.html | 0 {pelicanyan => theme}/templates/authors.html | 0 {pelicanyan => theme}/templates/base.html | 0 .../templates/categories.html | 0 {pelicanyan => theme}/templates/category.html | 0 {pelicanyan => theme}/templates/humans.html | 0 {pelicanyan => theme}/templates/index.html | 0 {pelicanyan => theme}/templates/page.html | 0 .../templates/pagination.html | 0 .../templates/period_archives.html | 0 {pelicanyan => theme}/templates/robots.html | 0 {pelicanyan => theme}/templates/sidebar.html | 0 {pelicanyan => theme}/templates/sitemap.html | 0 {pelicanyan => theme}/templates/tag.html | 0 {pelicanyan => theme}/templates/tags.html | 0 .../templates/translations.html | 0 30 files changed, 1 insertion(+), 134 deletions(-) delete mode 100644 .hgignore delete mode 100644 pelicanyan/README.md delete mode 100644 pelicanyan/static/.DS_Store rename {pelicanyan => theme}/LICENSE (100%) rename {pelicanyan => theme}/static/css/lanyon.css (100%) rename {pelicanyan => theme}/static/css/poole.css (100%) rename {pelicanyan => theme}/static/css/styles.css (100%) rename {pelicanyan => theme}/static/css/syntax.css (100%) rename {pelicanyan => theme}/static/img/2015-05-01.jpg (100%) rename {pelicanyan => theme}/static/img/profile.png (100%) rename {pelicanyan => theme}/static/js/instantclick.min.js (100%) rename {pelicanyan => theme}/templates/archives.html (100%) rename {pelicanyan => theme}/templates/article.html (100%) rename {pelicanyan => theme}/templates/author.html (100%) rename {pelicanyan => theme}/templates/authors.html (100%) rename {pelicanyan => theme}/templates/base.html (100%) rename {pelicanyan => theme}/templates/categories.html (100%) rename {pelicanyan => theme}/templates/category.html (100%) rename {pelicanyan => theme}/templates/humans.html (100%) rename {pelicanyan => theme}/templates/index.html (100%) rename {pelicanyan => theme}/templates/page.html (100%) rename {pelicanyan => theme}/templates/pagination.html (100%) rename {pelicanyan => theme}/templates/period_archives.html (100%) rename {pelicanyan => theme}/templates/robots.html (100%) rename {pelicanyan => theme}/templates/sidebar.html (100%) rename {pelicanyan => theme}/templates/sitemap.html (100%) rename {pelicanyan => theme}/templates/tag.html (100%) rename {pelicanyan => theme}/templates/tags.html (100%) rename {pelicanyan => theme}/templates/translations.html (100%) 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 ca0d4465b66187b7c89f5b9cb5baf623985e0478..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeI1O>Epm6vyA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ZWm){`@LHmgMnWn4&rn;0_uwNBv+v-0_z8Z7Kj1n6 zR!MM0a3`U47w*P=*o4h^FSZa|9e6)JfXDCzo+QLh5o7~|*f5UZC_y%klW5?R=wJb7 za2DtAIeZ>pz!&j6A@>@-j&I?`HL#s5VJ0kIT7hjknYT>anjlXJ%^N!hwOdw!GBNWA zKmYe^{QduyeZFAgfdYX7f3EJ7@JC2iG h{)Zuzqtunh#C=;7mOPaH^$!8T{vYiB9(lKS_7}wC+j{^2 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