Hello,
I’m new to hugo and this forum so first: thanks for your work !
What I did
I created a new project from quickstart guide:
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
So I have no exclusion rule in my config.toml
file.
Then I added a page and some images as content following this content organisation
mkdir -p content/pages/test1
mkdir -p content/pages/test1/.lol
mkdir -p content/pages/test1/foo
echo > content/pages/test1/index.md <<EOF
---
title: "My First Post"
date: 2022-11-20T09:03:20-08:00
---
## Test first post


EOF
(I put truc.jpg
In both .lol
and foo
directories)
Then I ran hugo
command.
What hugo did
Hugo copied the foo
directory but not the .lol
$ ls -A public/pages/test1/
foo index.html
What I expected
I’d like hugo to copy the .foo directory too because it contains my shiny picture! I can’t find any documentation about dotfiles or dotdir exception in the documentation.
Is this a bug or a feature? Is Hugo supposed to copy the dotdir in the public directory ?
My hugo version: hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended
Thanks for your time