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

Provide an audio shortcode #827

Open
Miepee opened this issue Apr 24, 2024 · 0 comments
Open

Provide an audio shortcode #827

Miepee opened this issue Apr 24, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Miepee
Copy link

Miepee commented Apr 24, 2024

It'd be nice to provide an audio shortcode in order to more easily show audio.

For me personally, something like:

<audio controls preload="auto">
    <source src="{{ .Get "src" }}">
</audio>

with the usage of

{{ <audio src="./relative/path/to/file.mp3" > }}

would completely suffice. But I don't know if other people have different requirements that they need.

Something that would be nice tho, is to have an optional param to display the filename (i.e. file.mp3 in the above example.)

@xoxys xoxys added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants