# Adding a photoswipe gallery as a shortcode using Page.Resources

**URL:** <https://discourse.gohugo.io/t/adding-a-photoswipe-gallery-as-a-shortcode-using-page-resources/10672>\
**Category:** tips & tricks\
**Created:** [February 21, 2018, 9:45pm UTC](https://discourse.gohugo.io/t/adding-a-photoswipe-gallery-as-a-shortcode-using-page-resources/10672 "2018-02-21T21:45:42Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![juh2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/juh2/32/3980_2.png) [@juh2](https://discourse.gohugo.io/u/juh2)\
**Post date:** [August 23, 2019, 12:43pm UTC](https://discourse.gohugo.io/t/adding-a-photoswipe-gallery-as-a-shortcode-using-page-resources/10672/11 "2019-08-23T12:43:25Z")

</div>

If have the same problem. Only the title shows up.

index.md:

```
---
title: foo
resources: 
- src: "gallery1/*.jpg"
  name: Fotorundgang
  title: Fotorundgang
 ---

{{% gallery folder="gallery1" title="Rundgang" %}}

```

Images are in the folder `gallery1` in the content folder

Output:

```
<link rel="stylesheet" href="/plugins/photoswipe/photoswipe.css">
<link rel="stylesheet" href="/plugins/photoswipe/default-skin/default-skin.css">

<h4 class="title">Rundgang</h4>
<div class="row">
<div class="12u$">
<div class="gallery" itemscope itemtype="http://schema.org/ImageGallery">

</div>
</div>

```

Followed by style and js code of the shortcode

My guess is that the code does not play with hugo v0.54

---

_[View the full topic](https://discourse.gohugo.io/t/adding-a-photoswipe-gallery-as-a-shortcode-using-page-resources/10672)._
