Skip to content
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

Dotfiles are not generated anymore #195

Closed
jlecour opened this issue Jul 23, 2010 · 10 comments
Closed

Dotfiles are not generated anymore #195

jlecour opened this issue Jul 23, 2010 · 10 comments

Comments

@jlecour
Copy link
Contributor

jlecour commented Jul 23, 2010

Hi,

In a blog managed with 0.5.7, I have an .htaccess in the root directory. It contains some rules depending on the published posts, … and it needs to be parsed and generated into the _site directory.

It was working great until I update to Jekyll 0.6.2 where this file is simply ignored.
I don't know if it's a bug or a new feature/default configuration that I'm not aware of.

Thanks for any help.

Here is my .htaccess file :


---
layout: nil

---
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
<IfModule mod_rewrite.c>
    RewriteEngine On
{% for post in site.posts %}
    {% if post.post_id != null %}RewriteRule ^r/{{ post.post_id }}/?$ {{ post.url }} [R=301,L]{% endif %}
{% endfor %}
</IfModule>
@jlecour
Copy link
Contributor Author

jlecour commented Sep 9, 2010

It still doesn't seem to work with jekyll 0.7

@jlecour
Copy link
Contributor Author

jlecour commented Sep 9, 2010

I've made a pull request associated with #210

@stereobooster
Copy link
Contributor

solved in #208

@jlecour
Copy link
Contributor Author

jlecour commented Feb 10, 2012

I'm sorry, but this doesn't work.

I can see that there is a passing test, but the file is not really generated.

Is there a debug or verbose mode to see why it doesn't generate it ?

@stereobooster
Copy link
Contributor

I didn't check it, but relly upon this comment

Maybe jekyll_alias_generator will solve your problem

@jlecour
Copy link
Contributor Author

jlecour commented Feb 10, 2012

@stereobooster Thanks for trying to help me with this, but I really need an .htaccess file, not only for a few basic redirections.

And in my case it's an .htaccess file, but it could be any other dotfile that needs to be in the website's directory

@ghost
Copy link

ghost commented Feb 11, 2012

This has to do with line 315 in lib/jekyll/site.rb. The line excludes all files beginning with ., _, or #.

@jlecour
Copy link
Contributor Author

jlecour commented Feb 11, 2012

@dunsmoreb In fact the filter_entries method is indeed filtering such files, but it's also using a global include array of files to, well, include (as in "not exclude") ;-)

I've added this in my _config.yml, and now, it's working :

include:
  - .htaccess

@jlecour
Copy link
Contributor Author

jlecour commented Feb 11, 2012

I've just realised that this "include" list is working only in the master branch. The latest release (v0.11.2) doesn't work like this.

I hope @mojombo will release soon to benefit from this new feature.

@qrush
Copy link
Contributor

qrush commented Jan 2, 2013

Sounds like this is fixed. Yell if not.

@qrush qrush closed this as completed Jan 2, 2013
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
pointblack pushed a commit to pointblack/jekyll that referenced this issue Feb 3, 2018
I've added improved support for syntax highlighting. It's definitely
still more minimal than something like Solarized, but I feel it is
a better fit for the Pixyll aesthetic.

Closes jekyll#195
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants