145 Commits

Author SHA1 Message Date
Julien Malik
be7fd9e904 [fix] oops 2016-02-19 09:17:05 +01:00
Julien Malik
c71008a5ce [enh] be more pythonic 2016-02-19 08:51:18 +01:00
Julien Malik
10279716d5 [enh] avoid a double if 2016-02-19 08:48:31 +01:00
Julien Malik
dc5172303d [enh] add show_date setting, to be able to order galleries, without showing the date
This allows (by chance) date keys to have non-date values, they just need to be comparable.
2016-02-18 17:00:17 +01:00
Julien Malik
121a37dea1 [fix] remove unused properties 2016-02-18 15:54:24 +01:00
Julien Malik
6c1d9c3069 [fix] prevent rendering None as a string 2016-02-18 15:51:52 +01:00
Julien Malik
1fa2c55a84 [enh] Same cache logic for thumbs and fullsize pictures
- store gm settings in the cache as a dict
- generalize usage of the gm settings to resize
- can be used to resize fullsize versions of the pictures
- without -quality switch, gm defaults to -quality 75.
  use -define jpeg:preserve-settings for fullsize versions to
  avoid altering them
- do not store "name" in the cache, because when the same image
  is used in a gallery and as the cover, it invalidates the cache
  entry and becomes always generated
2016-02-18 14:27:13 +01:00
Julien Malik
a818bf24fa [fix] individual images can override global settings, not the other way around 2016-02-18 09:05:17 +01:00
Laurent Peuch
01bf77249d [enh] cache images that are auto-oriented by gm 2016-02-18 08:29:08 +01:00
Laurent Peuch
b4ddd0a0b6 [mod] move to a more django oriented style of settings 2016-02-18 06:48:05 +01:00
Laurent Peuch
24b9883f02 [mod] same for error function 2016-02-18 06:44:12 +01:00
Laurent Peuch
4747366446 [mod] put cache.py in another file 2016-02-18 06:43:28 +01:00
Laurent Peuch
c95b0d0207 [mod] autopep8 2016-02-18 06:40:56 +01:00
Laurent Peuch
ac972dd62a [mod] remove useless code 2016-02-18 06:40:05 +01:00
Laurent Peuch
0ed6d47ef0 [mod] trailing spaces 2016-02-18 06:39:49 +01:00
Julien Malik
a2ae29b5c7 [enh] put default gm settings in a global dict, can be overridden in root settings.yaml 2016-02-17 17:53:30 +01:00
Julien Malik
c23612e87b [fix] be coherent, use -strip at the beginning of the pipeline always 2016-02-17 12:33:24 +01:00
Julien Malik
d522b6c25b [enh] use gm -strip option 2016-02-17 12:33:24 +01:00
Julien Malik
3818012f91 [fix] quality and autoorient need to be in the cache 2016-02-17 12:33:24 +01:00
Julien Malik
a3a1451a5c [enh] allow to customize gm quality in root settings 2016-02-17 12:33:24 +01:00
Julien Malik
cecc95ea6a [enh] allow the use of auto-orient gm settings to autofix orientation of pictures during build (default False) 2016-02-17 12:33:24 +01:00
Julien Malik
1fb1dff47f [fix] embed thumbnail size in their filename (fix #19) 2016-02-17 11:12:07 +01:00
Laurent Peuch
c7b1628ee0 Merge remote-tracking branch 'julienmalik/typo'
Conflicts:
	prosopopee/prosopopee.py
2016-02-16 10:11:30 +01:00
Laurent Peuch
ed84052178 [mod] dedent 2016-02-16 08:51:46 +01:00
Laurent Peuch
1a14f79d19 [mod] retab 2016-02-16 08:51:10 +01:00
Laurent Peuch
85311e928e [mod] remove blank line 2016-02-16 08:50:04 +01:00
Laurent Peuch
43a235b9b4 [mod] add comment for reference 2016-02-16 08:49:03 +01:00
Laurent Peuch
cbf86ae55b [mod] remove indentation 2016-02-16 08:47:54 +01:00
Laurent Peuch
8b35886c2c [mod] add error message for usability 2016-02-16 08:44:42 +01:00
Laurent Peuch
4dcce1fcd2 [mod] simplify code 2016-02-16 08:43:46 +01:00
Laurent Peuch
c1b25f5189 [mod] remove trailing spaces 2016-02-16 08:41:53 +01:00
Julien Malik
935650a329 typo 2016-02-15 11:59:09 +01:00
Adrien Beudin
55def9c4a8 add external link in menu and more easier config 2016-02-13 11:21:51 +01:00
Adrien Beudin
419ce00c0e fix tags 2016-02-11 23:19:24 +01:00
Adrien Beudin
9f51abaeaf Add tags and new features for menu 2016-02-11 22:54:27 +01:00
Laurent Peuch
cf4e779175 [fix] avoid using one additionnal class for page style 2016-02-09 22:14:30 +01:00
Laurent Peuch
64c96f5122 [enh] move to template inheritance to avoid redudency 2016-02-09 22:14:30 +01:00
Laurent Peuch
ef55e9baf2 [mod] retab 2016-02-09 22:13:28 +01:00
Laurent Peuch
96b364a874 [mod] simplify code 2016-02-09 22:06:38 +01:00
Laurent Peuch
5399f9e8e0 [mod] better error message 2016-02-09 22:06:38 +01:00
Laurent Peuch
f54483b58c [mod] reduce indentation 2016-02-09 22:06:38 +01:00
Laurent Peuch
9cbb1eca5e [mod] autopep8 2016-02-09 22:06:38 +01:00
Adrien Beudin
f144a53ee5 Update README 2016-02-09 21:59:03 +01:00
Adrien Beudin
26a22ee893 fix generate page 2016-02-09 21:24:41 +01:00
Adrien Beudin
cfd2c4b751 merge from master 2016-02-09 21:12:34 +01:00
Adrien Beudin
a290c2bea3 Update code of menu 2016-02-09 21:03:21 +01:00
Laurent Peuch
acccb41ff0 [mod] update sections templates for new behavior 2016-02-09 07:36:08 +01:00
Laurent Peuch
1866d6279e [mod] merge images and templates class into one, go full OO 2016-02-09 07:36:08 +01:00
Laurent Peuch
a2d04eb3ce [fix] very strange behavior of python interpretor 2016-02-09 07:36:08 +01:00
Laurent Peuch
3ee90704bc [fix] save CACHE version in cache, otherwise don't make sens 2016-02-09 07:36:08 +01:00