416 Commits

Author SHA1 Message Date
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
Laurent Peuch
904b1385d1 [mod] upgrade CACHE number to avoid bugs 2016-02-23 05:57:25 +01:00
Adrien Beudin
3f7d5866b6 move default theme in themes folder 2016-02-22 16:36:00 +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
095034b117 remove useless files 2016-02-22 14:14:50 +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
9a876aafc4 [fix] Revert "[fix] css fix. covers were overlapping"
This was fixing the behavior for cover-1, but breaks it when several cover-3 follows.
Better keep it as it was before, waiting for a better solution.

This reverts commit 13e9d369c10c0b0811764cf7c9b56ff4c0bd4666.
2016-02-19 15:46:36 +01:00
Julien Malik
13e9d369c1 [fix] css fix. covers were overlapping 2016-02-19 11:38:35 +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
Laurent Peuch
31298be91b [mod] same for LICENCE (we don't use neither of those anymore) 2016-02-19 09:47:24 +01:00
Laurent Peuch
8155679dbb [mod] remove old materialize README 2016-02-19 09:47:00 +01:00
Laurent Peuch
c00dd133fb Merge pull request #26 from julienmalik/show_date
[enh] add show_date setting, to be able to order galleries
2016-02-19 09:44:50 +01:00
Julien Malik
54fc904a07 [fix] fix permissions of README.md 2016-02-19 09:29:17 +01:00
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