New gallery in each blog post

26 views
Skip to first unread message

tch...@gmail.com

unread,
Oct 17, 2020, 6:48:10 PM10/17/20
to nikola-discuss

Hi!

nikola newb here - I'm enjoying what I've been able to do so far, but I seem stuck, and couldn't figure out from the docs what to try.

I'd like to be able to have a different gallery appear in each blog post - and have the post display the thumbnails. All I have been able to achieve is generate clickable links to galleries ... which is not quite what I really would like.

Am I missing something obvious? (Quite probable.) Or does anyone have any suggestions?

Roberto Alsina

unread,
Oct 19, 2020, 11:15:27 AM10/19/20
to Nikola—Discuss
If you want to embed a gallery in a post:

* Create the gallery (it's just a folder with images in it, by default they are in galleries/)

* In the post, what you can use depends on what markup you are using but for example if you are using markdown you can use
  something like the gallery shortcode plugin: https://plugins.getnikola.com/v8/gallery_shortcode/

So, if your gallery is in galleries/foo and you have the shortcode installed, you can embed the gallery by adding

{% gallery foo %}

in your post. 

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/e99e8577-29eb-4bb4-a4a6-6cc010360b0dn%40googlegroups.com.

tch...@gmail.com

unread,
Oct 19, 2020, 12:29:12 PM10/19/20
to nikola-discuss
Hi Roberto,

Thank you very much for pointing that out. It worked fine and seems very serviceable.

I suppose it is not quite as 'neat' as the initial presentation of "pure" galleries, but it is absolutely fine for my uses - so thanks again!

Roberto Alsina

unread,
Oct 19, 2020, 12:50:48 PM10/19/20
to Nikola—Discuss
On Mon, Oct 19, 2020 at 1:29 PM f365...@gmail.com <tch...@gmail.com> wrote:
Hi Roberto,

Thank you very much for pointing that out. It worked fine and seems very serviceable.

I suppose it is not quite as 'neat' as the initial presentation of "pure" galleries, but it is absolutely fine for my uses - so thanks again!


You can always tweak the template it uses!
 
On Monday, 19 October 2020 at 16:15:27 UTC+1 Roberto Alsina wrote:
On Sat, Oct 17, 2020 at 7:48 PM f365...@gmail.com <tch...@gmail.com> wrote:

Hi!

nikola newb here - I'm enjoying what I've been able to do so far, but I seem stuck, and couldn't figure out from the docs what to try.

I'd like to be able to have a different gallery appear in each blog post - and have the post display the thumbnails. All I have been able to achieve is generate clickable links to galleries ... which is not quite what I really would like.

Am I missing something obvious? (Quite probable.) Or does anyone have any suggestions?

If you want to embed a gallery in a post:

* Create the gallery (it's just a folder with images in it, by default they are in galleries/)

* In the post, what you can use depends on what markup you are using but for example if you are using markdown you can use
  something like the gallery shortcode plugin: https://plugins.getnikola.com/v8/gallery_shortcode/

So, if your gallery is in galleries/foo and you have the shortcode installed, you can embed the gallery by adding

{% gallery foo %}

in your post. 

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/e99e8577-29eb-4bb4-a4a6-6cc010360b0dn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages