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

How to include images and youtube videos in the additional single page #73

Closed
sureshkvl opened this issue Sep 6, 2019 · 2 comments
Closed

Comments

@sureshkvl
Copy link

Hi ,
I follow the "exampleSite/content/agb.md" for designing single page.

I would like to include images and youtube videos.

Question1: is there any custom tag for IMAGE and Videos, like below,
{{% subtitle5 " My subtile" %}}

or should i use html tag?

Question2: Where i should i place the images?

Thanks
suresh

@nathanbiller
Copy link
Contributor

@sureshkvl There are standard hugo shortcodes. For youtube it should be:

{{< youtube w7Ft2ymGmfc >}}

They also explain how to handle images:

Input:
{{< figure src="/media/spf13.jpg" title="Steve Francia" >}}

Output:

<figure>
  <img src="/media/spf13.jpg"  />
  <figcaption>
      <h4>Steve Francia</h4>
  </figcaption>
</figure>

"/media" would be referring to your "static/media/" folder I believe. I'd recommend putting all static content in the static folder.

Hope this helps :)

@StefMa
Copy link
Owner

StefMa commented Oct 8, 2019

Thanks for the explanation @nathanbiller!
Closed as answered.

@StefMa StefMa closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants