Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getnikola/nikola
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a944ef2ef9fd
Choose a base ref
...
head repository: getnikola/nikola
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c188e0d6c023
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 21, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    digitalresistor Delta Regeer
    Copy the full SHA
    dae1d18 View commit details
  2. Merge pull request #3208 from de-souza/fix-3207

    Fix #3207 -- fix error with new_post directory
    Kwpolska authored Jan 21, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    digitalresistor Delta Regeer
    Copy the full SHA
    c188e0d View commit details
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES.txt
  2. +1 −1 nikola/plugins/command/new_post.py
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@ New in master
Bugfixes
--------

* Fix error when ``nikola new_post`` receives directory name as
path (Issue #3207)
* Read listings files as UTF-8
* Set one-file status basing on default language only (Issue #3191)
* Don’t warn if post status is set to ``published`` explicitly
2 changes: 1 addition & 1 deletion nikola/plugins/command/new_post.py
Original file line number Diff line number Diff line change
@@ -264,7 +264,7 @@ def _execute(self, options, args):
if "@" in content_format:
content_format, content_subformat = content_format.split("@")

if not content_format and path:
if not content_format and path and not os.path.isdir(path):
# content_format not specified. If path was given, use
# it to guess (Issue #2798)
extension = os.path.splitext(path)[-1]