New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import_jekyll don't find posts #143

Closed
davidak opened this Issue Mar 2, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@davidak

davidak commented Mar 2, 2016

the import plugin searches the posts in a directory named 'source' or at a path defined in the config.

rel_path = self._jekyll_config.get('source', 'source')

but there is no such directory. maybe there was in earlier versions, i have jekyll 3.1.2 installed.

structure of new projects look like this:

my-awesome-site
├── _config.yml
├── _includes
│   ├── footer.html
│   ├── head.html
│   ├── header.html
│   ├── icon-github.html
│   ├── icon-github.svg
│   ├── icon-twitter.html
│   └── icon-twitter.svg
├── _layouts
│   ├── default.html
│   ├── page.html
│   └── post.html
├── _posts
│   └── 2016-03-02-welcome-to-jekyll.markdown
├── _sass
│   ├── _base.scss
│   ├── _layout.scss
│   └── _syntax-highlighting.scss
├── about.md
├── css
│   └── main.scss
├── feed.xml
└── index.html

and no 'source' parameter in config:

# Site settings
title: Your awesome title
email: your-email@domain.com
description: > # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new site here. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://yourdomain.com" # the base hostname & protocol for your site
twitter_username: jekyllrb
github_username:  jekyll

# Build settings
markdown: kramdown

my workaround changes the search path:

-         posts_path = os.path.join(self._jekyll_path, rel_path, '_posts')
+         posts_path = os.path.join(self._jekyll_path, '_posts')
@ralsina

This comment has been minimized.

Show comment
Hide comment
@ralsina

ralsina Mar 8, 2018

Member

I am gonna take your word for it and change the code accordingly.

Member

ralsina commented Mar 8, 2018

I am gonna take your word for it and change the code accordingly.

@ralsina ralsina closed this in 1eca74e Mar 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment