Skip to content

Commit

Permalink
Fix: 修复标题或者目录无法点击滚动的问题 (hugo-fixit/FixIt#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 24, 2024
1 parent 650fca2 commit af9732d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The `music` shortcode embeds a responsive music player based on [APlayer][aplaye

There are three ways to use it the `music` shortcode.

## 1 Custom Music URL {#custom-music-url}
## Custom Music URL {#custom-music-url}

The complete usage of [local resource references][contents-organization] is supported.

Expand Down Expand Up @@ -57,7 +57,7 @@ The rendered output looks like this:

{{< music url="/music/Wavelength.mp3" name=Wavelength artist=oldmanyoung cover="/images/Wavelength.jpg" >}}

## 2 Music Platform URL Automatic Identification {#automatic-identification}
## Music Platform URL Automatic Identification {#automatic-identification}

The `music` shortcode has one named parameter by music platform URL automatic identification:

Expand All @@ -78,7 +78,7 @@ The rendered output looks like this:

{{< music auto="https://music.163.com/#/playlist?id=60198" >}}

## 3 Custom Server, Type and ID {#custom-server}
## Custom Server, Type and ID {#custom-server}

The `music` shortcode has the following named parameters by custom music platform:

Expand Down Expand Up @@ -110,7 +110,7 @@ The rendered output looks like this:

{{< music netease song 1868553 >}}

## 4 Other Parameters {#other-parameters}
## Other Parameters {#other-parameters}

The `music` shortcode has other named parameters applying to the above three ways:

Expand Down Expand Up @@ -160,6 +160,8 @@ The `music` shortcode has the following named parameters only applying to the ty

Max height of the music list, default value is `340px`.

<!-- link reference definition -->
<!-- markdownlint-disable-file reference-links-images -->
[aplayer]: https://github.com/MoePlayer/APlayer
[metingjs]: https://github.com/metowolf/MetingJS
[contents-organization]: {{< relref path="/documentation/content-management/introduction#contents-organization" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ categories:

有三种方式使用 `music` shortcode。

## 1 自定义音乐 URL {#custom-music-url}
## 自定义音乐 URL {#custom-music-url}

支持 [本地资源引用][contents-organization] 的完整用法。

Expand Down Expand Up @@ -57,7 +57,7 @@ categories:

{{< music url="/music/Wavelength.mp3" name=Wavelength artist=oldmanyoung cover="/images/Wavelength.jpg" >}}

## 2 音乐平台 URL 的自动识别 {#automatic-identification}
## 音乐平台 URL 的自动识别 {#automatic-identification}

`music` shortcode 有一个命名参数来使用音乐平台 URL 的自动识别:

Expand All @@ -77,7 +77,7 @@ categories:

{{< music auto="https://music.163.com/#/playlist?id=60198" >}}

## 3 自定义音乐平台,类型和 ID {#custom-server}
## 自定义音乐平台,类型和 ID {#custom-server}

`music` shortcode 有以下命名参数来使用自定义音乐平台:

Expand Down Expand Up @@ -109,7 +109,7 @@ categories:

{{< music netease song 1868553 >}}

## 4 其它参数 {#other-parameters}
## 其它参数 {#other-parameters}

`music` shortcode 有一些可以应用于以上三种方式的其它命名参数:

Expand Down Expand Up @@ -159,6 +159,8 @@ categories:

音乐列表的最大高度,默认值是 `340px`

<!-- link reference definition -->
<!-- markdownlint-disable-file reference-links-images -->
[aplayer]: https://github.com/MoePlayer/APlayer
[metingjs]: https://github.com/metowolf/MetingJS
[contents-organization]: {{< relref path="/documentation/content-management/introduction#contents-organization" >}}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/hugo-fixit/docs
go 1.20

require (
github.com/hugo-fixit/FixIt v0.3.9-0.20240724042839-de18e9114659 // indirect
github.com/hugo-fixit/FixIt v0.3.9-0.20240724073957-bcd69879107a // indirect
github.com/hugo-fixit/component-projects v1.1.2 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect
github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/hugo-fixit/FixIt v0.3.9-0.20240724042839-de18e9114659 h1:d517HDKF6Kn8fRdhAz7OM8caJUfaonSgMgDiAn4uur4=
github.com/hugo-fixit/FixIt v0.3.9-0.20240724042839-de18e9114659/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/FixIt v0.3.9-0.20240724073957-bcd69879107a h1:CCYp2GDmz3AlEV3PuvI7pYYGsI9hPJDznpj36OcyBko=
github.com/hugo-fixit/FixIt v0.3.9-0.20240724073957-bcd69879107a/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/component-projects v1.1.2 h1:hKJ+1CM6Y0wEdA8Pnn8MSZel+ukYtUvzC3VQk+AFSl4=
github.com/hugo-fixit/component-projects v1.1.2/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=
Expand Down

0 comments on commit af9732d

Please sign in to comment.