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

*.md blog feature doesn't work in subfolder #898

Open
KarstenHahn opened this issue Apr 28, 2024 · 8 comments
Open

*.md blog feature doesn't work in subfolder #898

KarstenHahn opened this issue Apr 28, 2024 · 8 comments
Labels

Comments

@KarstenHahn
Copy link

Hello,

just tried the app. Thanks a lot for this great application!

I tried to edit a *.md description for my journeys. Each journey in a seperate folder with its own *.md file. The inline blog function depending of a date does not work correct.

Is it an error?

Best greetings, Karsten

@bpatrik
Copy link
Owner

bpatrik commented Apr 29, 2024

Can you provide a bit more info? Its hard to tell whats up from this description.

@KarstenHahn
Copy link
Author

Sure. I'll try to give you some more information:

Version: newest docker images (compose)
Image: https://github.com/bpatrik/pigallery2/blob/master/docker/docker-compose/pigallery2-only/docker-compose.yml

I want to provide journey-photos seperated in folders, for example "2023-08 Baltikum". I've copied

  • several images into it
  • an index.md file according to the sample
<!-- @pg-date 2023-08-26 -->
#Fahrt zum Ort Blabla
<!-- @pg-date 2023-08-27 -->
#Fahrt zum Ort Blubb

The "Blog" function doesn't work if the images are in the folder as described. If I move the content of the folder into the root folder (/...../pigallery2/images/) the blog function is working as expected.

Can you give me a hint? Or can you recreate the problem?

Best greetings, Karsten

@kongeor
Copy link

kongeor commented May 15, 2024

Thank you all the effort on this amazing project.

I've ran onto the same issue while trying things and I've noticed that this was only happening when I was running this in docker locally and accessing via localhost. When I deployed this to a server (behind an nginx) everything was functioning normally. I've also noticed that Sorting/Filtering options where more rich on the server.

Thought of sharing this in case it helps.

@bpatrik
Copy link
Owner

bpatrik commented May 15, 2024

@KarstenHahn Can you explain to me what behavior is expected and what you see?

@kongeor I assume, when you deployed to the server, the install pulled a newer version.

@KarstenHahn
Copy link
Author

Hi,
sry for the delay ... I've set-up a test-instance (without any reverse proxy):

http://test.hahn.photos

As you can see, in the root, the behavior is perfect. One test image from 2022 and after that some pictures with *.md-text.
If you enter the sub-dir the same images appeares without the text .... the *.md-file is a copy of that in the root...

I've started the docker container in cli-mode, no errors appears

I would be very grateful if you would take a look at this. Regardless of this small problem, this is the ideal gallery for me. Thank you very much for that!

@KarstenHahn
Copy link
Author

I've opened the test gallery for everyone. Not a good idea :-) I've set a password for the gallery now. Please contact me, if you want to see the problem "live"...

Here are screenshots of the gallery:
grafik

and

grafik

Here is the index.md file:

Test-Reise in den Garten
<!-- @pg-date 2024-05-28 -->
Blumen
<!-- @pg-date 2024-05-29 -->
Wolken

@KarstenHahn
Copy link
Author

Hi Patrik,

I just looked at the test-system: the entries of the index.md files appears in the sub-directory too :-)

But: if I edit the *.md file, in dir of in the sub-dir, the changes were not visible after reload the page (or after logout->login).

The "reset gallery" function, which (in my interpretion) cleans the database and rebuild all, does not result in showing the changed entries...

Form my point of view, there is an error in the scanning/caching mechanism of *.md files .... Please, can you give me a hint how to re-read the entries?

Thanks a lot,
Karsten

@bpatrik bpatrik added bug and removed question labels Jun 28, 2024
@bpatrik
Copy link
Owner

bpatrik commented Jun 28, 2024

Hi

That indeed seems to be an issue. My guess the issue is related to time zones or day boundary or somiliar.
Might be related with the latest photo timestamp change @grasdk.
I will take a look at some point. In the meantime I think there is a settings in the config to disable inline mds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants