134 Commits

Author SHA1 Message Date
Adrien Beudin
0e84865560 fix ident prosopopee.py 2016-04-29 15:57:17 +02:00
Adrien Beudin
bec58371d6 pep8 prosopopee.py 2016-04-29 15:55:14 +02:00
Adrien Beudin
fc82ddc1ab start video support 2016-04-29 12:40:34 +02:00
Laurent Peuch
db53d48531 [fix] missing space 2016-04-19 07:09:19 +02:00
Laurent Peuch
dcfc2fd36a [mod] move to a warning for rss/share without url 2016-04-18 20:00:32 +02:00
Laurent Peuch
2a9f761584 [mod] introduce default settings behavior to clean the code 2016-04-18 19:58:43 +02:00
Laurent Peuch
63988533c8 [mod] try to improve a bit code readability 2016-04-18 19:54:18 +02:00
Laurent Peuch
35443b5c7e [fix] missing space + better formulation 2016-04-18 19:53:58 +02:00
Laurent Peuch
2eb8fecfd5 [mod] clearer error message 2016-04-18 19:45:10 +02:00
Laurent Peuch
a8c4a0f76f [mod] lisibility 2016-04-18 19:43:37 +02:00
Laurent Peuch
90694f1b0e [misc] trailing spaces 2016-04-18 19:40:48 +02:00
Adrien Beudin
de2b7433a8 add rss support 2016-04-18 14:27:28 +02:00
Laurent Peuch
aad887cf50 [fix] show_date default value wasn't transmitted to templates 2016-04-14 02:42:50 +02:00
Adrien Beudin
916bf03adc add social share 2016-04-06 20:34:05 +02:00
Laurent Peuch
6018624154 [mod] remove debug print 2016-02-23 06:01:07 +01:00
Laurent Peuch
719b994c07 [enh] add error in case theme doesn't exist 2016-02-23 06:00:57 +01:00
Laurent Peuch
f8580c7900 [enh] simplify a lot theme handling 2016-02-23 05:57:46 +01:00
Adrien Beudin
d3eea46393 Revert "move default theme in themes folder"
This reverts commit bf986ded7da83d4183a57c09e3c603abdaa94d62.
2016-02-22 16:32:44 +01:00
Adrien Beudin
bf986ded7d move default theme in themes folder 2016-02-22 16:29:36 +01:00
Adrien Beudin
8c7dbc5a4a add support theme 2016-02-22 14:11:36 +01:00
Adrien Beudin
7cbe86c653 [fix] enable add static files 2016-02-19 17:39:17 +01:00
Julien Malik
8030074b1f [fix] fix last commit 2016-02-19 11:36:17 +01:00
Julien Malik
44419b0390 [fix] typo 2016-02-19 11:32:53 +01:00
Laurent Peuch
ad8c1a5aad Merge remote-tracking branch 'julienmalik/cache_improvements'
Conflicts:
	prosopopee/prosopopee.py
2016-02-19 09:52:45 +01:00
Julien Malik
05f9224fcc [fix] remove unused properties 2016-02-19 09:51:07 +01:00
Julien Malik
ed8822ee14 [fix] prevent rendering None as a string 2016-02-19 09:51:07 +01:00
Julien Malik
947bbe9470 [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-19 09:51:07 +01:00
Julien Malik
c71008a5ce [enh] be more pythonic 2016-02-19 08:51:18 +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
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