-
Notifications
You must be signed in to change notification settings - Fork 66
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
Nothing appear #32
Comments
I need more input to help you with this issue. Can you create a zip file that contains all files needed to reproduce your issue. |
same here , here is my config.toml ...
baseURL = "https://stiliajohny.github.io/"
# [en, zh-cn, fr, pl, ...] determines default content language
defaultContentLanguage = "en"
# theme
theme = ["LoveIt", "hugo-shortcode-gallery"]
# themes directory
# themesDir = "./themes"
... here is the post that contains the gallery ( its the ---
title: ""
date: 2021-12-24
author: "John Stilia"
# resources:
# - name: featured-image
# src: java-vurn.png
# - name: featured-image-preview
# src: log4j-1.png
draft: false
lightgallery: true
fontawesome: true
linkToMarkdown: true
rssFullText: false
toc:
auto: true
---
{{< gallery match="./images/*" sortOrder="desc" rowHeight="150" previewType="blur" embedPreview="true" >}}
|
after some research it seems to be the YAML metadata on the top of my post in particular. Look here and here is the raw |
and to finalise my answer te element it was missing for the shortcode to work was
|
I had that problem too. After 2 hours of troubleshooting I took a look in the developer console and spotted the error "Uncaught ReferenceError: jQuery is not defined". Turns out my theme was not using jquery. |
In case your main theme does not already provide jQuery the loadJQuery parameter can be used. If set to true, the jQuery of this theme component is imported wherever the shortcode is used.
|
It indeed was the missing |
I'm using this:
and nothing appears... It just stays blank. I do have images under theme = ["zzo", "hugo-shortcode-gallery"] # Name of Zzo theme folder `in` `themes/`. There are no errors in the output of hugo... So it means that the shortcode is found, but nothing is produced. I have no clue what to do... |
@sim590 Have you checked the generated HTML? Does it contain an empty gallery? |
I have the same issue, and upon checking the HTML the gallery is not generated at all |
@lorenviol What does your folder layout look like? |
Your folder layout looks good to me. What's the content of index.md? |
This fixed it for me, I was really not understanding why my drone.ci runner was complaining about the missing gallery shortcode. Adding this fixed my builds, thank you very much! |
Hey there ! Same for me, unfortunately. I'm using the theme PaperMod, and have added the I can display an image with I'm quite new to hugo, and can't figure out any log files or debug lines, is there any that can provides some infos about this ? There is no error on the developer console of Firefox (except for favicon missing). Edit : here's the webpage when rendered on the navigator link |
I need more input in order to help you. Can you provide a small but complete example of your issue in a zip file? |
Thank you for the reply. But problem solved. I had to rename the file |
Hi! I too am facing the same issue. Here is the website and here is the repository. I am using the Massively theme. It seems that the gallery is rendered in the DOM. It's just not visible (the width is zero). |
I'm having the same issue and it is documented as an issue in the Congo repository: jpanther/congo#652 I'm cross-posting it here to see whether it might be something you can help me with? |
@larihuttunen I have now found the time to look at your problem. A correct build would look like this So this is probably not (or not only) a problem with the Congo theme, but with the way you are trying to include your images. Please, first have a read about the required folder structure for this shortcode here and about page bundles here. After that you will notice that your "_index.md" is a branch bundle and therefore the shortcode cannot access the images in any subfolder:
When you have found a solution to this problem, I would be interested to hear from you about how you solved it. |
Unfortunately, I have to use the branch bundle, since my site is offering content in multiple languages. The good news is that moving the images up a level and adjusting the macro made it work. Thanks for the help! |
I'm struggeling with the same problem here... how did you adjust the macro to get in running...? |
Hi! I'm trying to use your awesome shortcode, yet nothing appear on my side. The page resources appear in the build root, yet nothing shows where it should get the gallery. It's a multi language site, with hugo 0.89.4. I followed the instructions, so I have all my images under images/* and copied the shortcode command. No error at build or serve, yet no gallery... any clue?
The text was updated successfully, but these errors were encountered: