1
0
Fork 0
forked from github/pelican
Commit graph

2,312 commits

Author SHA1 Message Date
Justin Mayer
011cd50e2e Minor improvements to Settings docs 2014-03-01 18:25:07 +01:00
Justin Mayer
e38be6b2ea Merge pull request #1267 from mlang/escape-for-html
Run tag names through escape filter to avoid invalid HTML
2014-02-28 18:24:52 +01:00
Justin Mayer
d23c68361a Merge pull request #1201 from hrbonz/draft_lang
Add language support for drafts
2014-02-23 15:13:55 +01:00
Stefan hr Berder
652eb3686f add lang support for drafts (#826 & #1107)
Fix #826
Fix #1107
2014-02-23 14:03:09 +01:00
Stefan hr Berder
7f2bc2a23b change date metadata parsing to dateutil.parser 2014-02-23 11:21:44 +01:00
Ben Bridts
05d357e98e Split multiple authors on ',' 2014-02-18 17:56:57 +01:00
Mario Lang
a7ca52dee0 Run tag name through escape filter to avoid invalid HTML
If a tag contains characters like <> or &, we currently generate invalid HTML.
This is easily fixed by sending the tag through the jinja escape filter.

(This bug is not theoretical, I hit it when using C++ template names for tags,
 like "boost::variant<>".)
2014-02-18 15:01:31 +01:00
Justin Mayer
58e817cb0f Merge pull request #859 from cdunklau/new_github_logo
Update GitHub icon for notmyidea theme
2014-02-17 09:40:46 -08:00
Justin Mayer
de3475aa64 Merge pull request #1265 from mlang/valid-html
Fix notmyidea theme's HTML tags
2014-02-15 10:28:27 -08:00
Mario Lang
e500e64ebd Some browsers like Lynx render adjacent links without implicit spaces.
Put an extra space at the end of each link to a tag so that Lynx doesnt render
the tags as a single word.
2014-02-15 13:24:22 +01:00
Mario Lang
cff9d0aa58 Fix stray </ol> and </section> if only one article is displayed.
We already check if loop.length > 1 before outputting <section> and <ol>
tags, but we neglected to do the same check when outputting the corresponding
end tags.

Also, since I had to read the code when I touched it, simplified a conditional:
if (a) if (a and (b or not b and c))
can be simplified to
if (a) if (b or c)

Note the "b or not b", it was just too ugly to not fix.
2014-02-15 13:21:06 +01:00
Mario Lang
459a13bf79 HTML error in notmyidea: <li> not allowed in <section>.
<li> tags need to be inside of <ul> or <ol>.
Thanks to the w3c_validate plugin for finding this.
2014-02-15 13:02:03 +01:00
Justin Mayer
c00d808bf8 Add squashing to CONTRIBUTING docs. Fix URLs. 2014-02-14 14:37:54 -08:00
Rob Kennedy
1b6f081619 Allow socket address reuse; fixed #1264
The socket may remain in the TIME_WAIT state for some time after the
server shuts down, which prevents another instance of the server from
listening on the same port. This change allows the server to reuse the
address even when it's still waiting.
2014-02-14 14:20:38 -08:00
Justin Mayer
826ff4df50 Merge pull request #1247 from paylogic/multiple-authors
Multiple authors implementation for #956
2014-02-13 19:08:34 -08:00
Anatoly Bubenkov
2c25e488c4 multiple authors implemented 2014-02-14 03:21:06 +01:00
Justin Mayer
57155b561a Merge pull request #1262 from utdemir/master
Fix issue #1258
2014-02-13 17:30:00 -08:00
Utku Demir
e55e550198 Fix issue #1258
Correctly handle DEFAULT_DATE = None .
2014-02-13 12:21:29 +02:00
Justin Mayer
00e1b68e74 Revert to newly-revived Typogrify project
Since the Typogrify project will be actively maintained going forward,
there is no need for the fork.
2014-02-12 10:54:56 -08:00
Colin Dunklau
81e44ed2de Use absolute size for github mark 2014-02-09 21:20:02 +01:00
Colin Dunklau
df21315a24 32px Github logo and CSS shinker 2014-02-09 21:17:39 +01:00
Colin Dunklau
4f0431f9e9 Updated tests 2014-02-09 20:23:12 +01:00
Colin Dunklau
70a690650d Updated github mark for notmyidea
The smallest mark GitHub provides in the bundle is 32x32. Since they
explicitly say don't resize the mark, I asked them to provide a 16x16
so we could use it. I received the 16x16 in this commit from GitHub
support.

However, they suggested we use the 32x32 and use CSS rules to adjust
the size:

"...we use the 32px for both and employ css background and background-
size rules to handle retina displays. I recommend that technique,
since retina users will see a mess of pixels for icons that small."

This sounds like reasonable advice. Should we consider migrating the
notmyidea social icons to 32x32, with appropriate CSS to adjust the
sizes?
2014-02-09 20:23:12 +01:00
Justin Mayer
6b0a99932f Revert test-failing change from #1114 2014-02-09 08:45:06 -08:00
Justin Mayer
c60e0d03fb Merge pull request #1114 from brannerchinese/master
xml => lxml for bs4, in pelican-import.wp2fields()
2014-02-08 15:38:06 -08:00
Justin Mayer
e58cab0250 Merge pull request #1178 from robulouski/devserver_fix
Fix issue in devserver introduced in v3.3
2014-02-08 15:36:14 -08:00
Justin Mayer
a9d1fdae3d PY and PELICAN env variable overrides for Make
This allows the user to set PY and/or PELICAN environment variable
overrides, which will be respected by the Makefile and devserver.sh.
If, for example, the default Python on your system were Python 3 and
you wanted to run Make with Python 2, using bash you could run
`PY=python2 make`. Refs #915.
2014-02-08 14:32:58 -08:00
Justin Mayer
9b36437d97 Merge pull request #1246 from fenekku/period-to-archive-context
Add period to period_archives context. Refs #1044.
2014-02-08 12:19:36 -08:00
Justin Mayer
05f392c6bc Merge pull request #1249 from smartass101/split_articles_generate_context
Add article_generator_pretaxonomy signal
2014-02-08 12:13:23 -08:00
Justin Mayer
45e1aa112f Clarify docs re: settings file 2014-02-07 17:05:15 -08:00
Ondrej Grover
22762f2c16 add signal article_generator_pretaxonomy
invoked before categories and tags lists are created
useful when e.g. modifying the list of articles to be generated
so that removed articles are not leaked in categories or tags
2014-02-07 08:34:27 +01:00
Justin Mayer
dcadf33988 Merge pull request #1183 from Rogdham/pelican-fixcopy
Fix `utils.copy` for copying files
2014-02-05 08:19:34 -08:00
Justin Mayer
89de903925 Merge pull request #1200 from tomtung/patch-1
`ctrl+c` correctly terminates&reenables `fab serve`
2014-02-05 08:11:20 -08:00
Justin Mayer
9dd8e3954c Merge pull request #1202 from tomtung/patch-2
Update settings.rst to match tag cloud code
2014-02-05 07:43:51 -08:00
fenekku
f6e27617f8 Add period to period_archives context. Refs #1044.
* Adds period tuple of (year, month, day) matching the time
  period of the current archive. Note that this is done
  to the archive context if period_archives.html doesn't exist.
* Adds tests to verify this.
* Adds documentation in themes.rst about period in period_archives.html.
2014-02-03 20:26:38 -05:00
Justin Mayer
24866b77c7 Merge pull request #1234 from alistairmagee/wp-custom-posts-and-attachment-download
WordPress custom posts and attachment download
2014-02-03 10:08:17 -08:00
Alistair Magee
ea3e160db1 Extra functionality for pelican-import for wordpress imports 2014-02-03 17:36:41 +00:00
Justin Mayer
d91750090b Merge pull request #1244 from alistairmagee/article-writer-signal
add the new signal to the docs
2014-01-26 15:06:12 -08:00
Alistair Magee
45bc018672 add the new signal to the docs 2014-01-25 20:44:15 +00:00
Justin Mayer
f232958daf Merge pull request #1242 from alistairmagee/article-writer-signal
Add signal upon writing pages and feeds
2014-01-24 13:01:00 -08:00
Alistair Magee
752e862b80 Needed a signal for my subcategory plugin 2014-01-24 06:31:26 +00:00
Justin Mayer
23e7ac3659 Merge pull request #1094 from mua/master
Watch static folders in Autoreload mode
2014-01-22 07:54:12 -08:00
M. Utku Altinkaya
cda21c5481 Update __init__.py
Watch static folders using utils.folder_watcher
2014-01-22 01:55:46 +02:00
Justin Mayer
e60b5602ec Merge pull request #1228 from getpelican/testing
Clean up unit testing dependencies
2014-01-21 10:35:39 -08:00
Justin Mayer
960291c2f2 Merge pull request #1227 from alistairmagee/test_absolute_import
Fix test-suite import error
2014-01-19 12:08:16 -08:00
Justin Mayer
7a15045fbc Merge pull request #1232 from hlapp/fix-sitelink
Append slash to href of link to site home
2014-01-13 09:46:56 -08:00
Hilmar Lapp
5eb9fa6d16 Append slash to href of link to site home
This is necessary to make the link to the site home work locally, because then SITEURL may be set to an empty string (in fact the Pelican default configuration sets it to an empty string in pelicanconf.py).
2014-01-13 12:37:15 -05:00
Alistair Magee
dc552bb869 fix test-suite import error 2014-01-10 16:33:02 +00:00
Kyle Fuller
8dfa7c23f3 Use dev_requirements.txt for tox dependencies 2014-01-10 07:34:13 +00:00
Kyle Fuller
d8e50d56da travis: Use dev_requirements.txt for dependencies 2014-01-10 07:33:41 +00:00