FEATURE: add support for mp3 wav flac audio file.

This commit is contained in:
FarseaSH 2024-07-11 22:13:25 +08:00
parent 243696b49f
commit bd04f9592a
5 changed files with 185 additions and 2 deletions

View file

@ -35,6 +35,8 @@
<!-- the Moments style css file -->
{{ $style := resources.Get "style-refractored.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ $style_2 := resources.Get "audio.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style_2.Permalink }}">
<!-- fancybox css (js in the end before the body closing tag) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/>
@ -69,5 +71,8 @@
{{ end }}
{{/* audio file play */}}
<script src="/scripts/audio-play.js"></script>
<!-- website title -->
<title>{{ .Site.Params.title }}</title>