Hey guys! I’m new to Hugo and SSG world (was spoiled too much by Wordpress CMS). Never knew static site could run so fast and Hugo is even faster than Jekyll in building page. Totally love it!
Currently I’m playing with Casper two theme, and I wonder if Hugo can insert content slider similar to goodhousekeeping.com posts?
I tried many sliders including slick, royalslider and woothemes flexslider, but none of them working well with “blind” insertion. What I mean with blind is: I followed their guide blindly and insert to Hugo HTML page.
I know hugo is a different platform, but considered I just learned this few days ago, I’m totally confused with how should I make slider to work with hugo.
Is there anyone here with experience in this area and willing to share? I’ll really appreciate your help!
what I’m trying to achieve is a content slider (in desktop view) that will automatically turn into a “list post” in mobile viewport.
example:
This is the common slider, but it will turn immediately into a list in mobile view:
It is definitely possible, but Hugo doesn’t come with many “off-the-shelf” components that plug into any site the way WordPress has plugins. So you’ll need to build the HTML, CSS and JavaScript, or have someone do it for you.
If you search the forums folks have commented on slider components they’ve used.
Dear Maiki, Thank you so much for helping! Yes I should build my own HTML CSS and JS. I could do it in plain HTML page, but strangely it’s not working with Hugo MD posts.
I have searched many solutions offered in the forum but none work well (or not what I want). I even tried to used the free js carousel/slider script from cssscript.com, and all result inside a single post view is broken.
I recreate them using very basic HTML + CSS + JS and it’s working. Perhaps I still haven’t tap into the Hugo environment yet. It would be great if someone can point me to a link or resource for this specific matter. I can try to learn it and craft the code myself.
I tried to read the documentation and seriously honest it’s pretty confusing
The result is a page with vertical images aligning together. I’ve tried with other slider scripts, some did give a different result (working but have strange location/placement). None of them give the same result shown in their examples or demos.
Perhaps I’m missing something very important here. But sadly I don’t know what it is.
Update: Yes it working well now! thank you, zwbetz!!
Okay, so I’ve figured out how to make slider work with hugo template, but now I’m searching for slider script that will work similar to that Housekeeping site. Anyone know what slider script is it?
The slider is smart enough to serve two type of contents in different viewport. In desktop view, we will see the slider “packed” into one and we can play with the slides with next/prev button.
while in the mobile view, the script somehow will disable the slider and “unpack” the html content slide and serve it as a lengthy list (no more slider).
Will greatly appreciate your input on this, and if possible please kindly point me to a link for it (if it’s available to download or purchase).
Thanks in advance guys!! have a greaaat New Year 2019!
haha, that’s soo true! But if only I have that skill set sadly I’m a beginner in coding.
since I don’t have that skill, I was trying to find a ready-made script for this purpose. I can do light modification but not building it from scratch.
But thanks for your suggestion, that’s indeed a good option to explore. I’ll try to dig further about how to build custom css media queries for ready-made slider.