Giter VIP home page Giter VIP logo

Comments (4)

OlafHaag avatar OlafHaag commented on July 19, 2024 1

I looked into it some more and came to the conclusion that this is not a bug caused by this shortcode, but by either hugo itself or the theme that I'm using.

The solution to the problem is simply to separate each video shortcode by an empty line.
Otherwise the first video tag of a bunch (not seperated) will be put inside a <p> tag and the text in the video tag will be pulled out and put below it.

from hugo-video.

martignoni avatar martignoni commented on July 19, 2024

I'm unable to reproduce this. This shortcode doesn't output any link to the displayed video.

Please share your code.

from hugo-video.

OlafHaag avatar OlafHaag commented on July 19, 2024

My repo isn't pushed to a public available upstream, unfortunately.

I have a file structure like this:

content\
|__english\
    |__blog\
        |__myfirstentry\
            |__vid\
                |__vid01.m4v
                |__vid02.m4v
                |__vid03.m4v
                |__vid04.m4v
            |__index.md

in index.md:

{{< video src="vid/vid01" autoplay="true" loop="true" mute="true" >}}
{{< video src="vid/vid02" autoplay="true" loop="true" mute="true" >}}
{{< video src="vid/vid03" autoplay="true" loop="true" mute="true" >}}
{{< video src="vid/vid04" autoplay="true" loop="true" mute="true" >}}

It renders all the videos, but somewhere (unpredictable below which) it renders this with a link to the first video (vid01.m4v):

translation: "Your browser doesn't support embedded videos, but don't worry, you can <a href=\"{{ .RelPermalink }}\">download it</a> and watch it with your favorite video player!"

from hugo-video.

martignoni avatar martignoni commented on July 19, 2024

I can't reproduce this. Could you please confirm that it still occurs with recent fixes?

from hugo-video.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.