Ignoring .gitignore and .gitkeep files

12 views
Skip to first unread message

Mike Ray

unread,
Dec 31, 2020, 4:54:12 PM12/31/20
to nikola-...@googlegroups.com
Hello

I often have both .gitignore and .gitkeep files dotted throughout my
pages and posts tree in my Nikola sites.

At the moment I am working on a site where I have some .gitkeep files in
my listings tree.

Nikola tries to render these files, and creates a .gitkeep.html file.

How can I make Nikola ignore some files it finds?

Mike


--
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

"Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away." -- A. de Saint-Exupery


https://cromarty.github.io/
http://eyesfreelinux.ninja/
http://www.raspberryvi.org/


Chris Warrick

unread,
Jan 1, 2021, 4:45:14 PM1/1/21
to Nikola—Discuss
On Thu, 31 Dec 2020 at 22:54, Mike Ray <mi...@raspberryvi.org> wrote:
>
> Hello
>
> I often have both .gitignore and .gitkeep files dotted throughout my
> pages and posts tree in my Nikola sites.
>
> At the moment I am working on a site where I have some .gitkeep files in
> my listings tree.
>
> Nikola tries to render these files, and creates a .gitkeep.html file.
>
> How can I make Nikola ignore some files it finds?

There is currently no way to do this. Nikola has a few filenames it
will ignore, but it’s not possible to extend this list. I would
recommend not storing those files in your listings folder — you can
use global .gitignore/.gitkeep files for the whole site.


--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
Reply all
Reply to author
Forward
0 new messages