Skip to content

Commit

Permalink
Rename cloudmusic shortcode to neteasemusic
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 4, 2020
1 parent 40d3368 commit c88b25c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ $ echo "SIDEBAR BEGIN" > layouts/partials/hooks/sidebar-begin.html
| `youku`| Youku video player | `{{< youku "video ID" >}}`
| `iqiyi`| iQiyi video player | `{{< iqiyi "vid" "tvid" >}}`
| `tencentvideo`| Tencent video player | `{{< tencentvideo "video ID" >}}`
| `cloudmusic`| Cloud music player | `{{< cloudmusic "song ID" >}}`
| `neteasemusic`| Netease music player | `{{< neteasemusic "song ID" >}}`

## Social Links

Expand Down
10 changes: 5 additions & 5 deletions exampleSite/content/posts/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags = [
"JSFiddle",
"CodePen",
"JSRun",
"Cloud Music",
"Netease Music",
"Bilibili",
"Youku",
"Tencent Video",
Expand All @@ -22,7 +22,7 @@ images = [
]
+++

In addition to Hugo's built-in shortcodes, this theme provides some extra useful shortcodes. Such as `alert`, `jsfiddle`, `codepen`, `jsrun`, `cloudmusic`, `bilibili`, `youku`, `tencentvideo`, `iqiyi`.
In addition to Hugo's built-in shortcodes, this theme provides some extra useful shortcodes. Such as `alert`, `jsfiddle`, `codepen`, `jsrun`, `neteasemusic`, `bilibili`, `youku`, `tencentvideo`, `iqiyi`.
<!--more-->

## Alert
Expand Down Expand Up @@ -93,16 +93,16 @@ In addition to Hugo's built-in shortcodes, this theme provides some extra useful

## Media Player

### Cloud Music Player
### Netease Music Player

```markdown
{{</* cloudmusic "id" [auto [type]] */>}}
{{</* neteasemusic "id" [auto [type]] */>}}
```

- The `auto` controls whether to autoplay. Boolean and optional, default to `true`.
- The `type` parameter is optional. Default to `2`.

{{< cloudmusic "24953439" false >}}
{{< neteasemusic "24953439" false >}}

### Bilibili Video Player

Expand Down
8 changes: 4 additions & 4 deletions exampleSite/content/posts/shortcodes.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags = [
"JSFiddle",
"CodePen",
"JSRun",
"Cloud Music",
"Netease Music",
"Bilibili",
"Youku",
"Tencent Video",
Expand All @@ -22,7 +22,7 @@ images = [
]
+++

除了 Hugo 内置的 Shortcodes 外,该主题提供了一些额外的有用的 Shortcodes,比如 `alert``jsfiddle``codepen``jsrun``cloudmusic``bilibili``youku``tencentvideo``iqiyi`
除了 Hugo 内置的 Shortcodes 外,该主题提供了一些额外的有用的 Shortcodes,比如 `alert``jsfiddle``codepen``jsrun``neteasemusic``bilibili``youku``tencentvideo``iqiyi`
<!--more-->

## 警告
Expand Down Expand Up @@ -96,13 +96,13 @@ images = [
### 网易云音乐播放器

```markdown
{{</* cloudmusic "id" [auto [type]] */>}}
{{</* neteasemusic "id" [auto [type]] */>}}
```

- 参数 `auto`控制是否自动播放,布尔值,可选, 默认为 `true`
- 参数 `type` 可选,默认为 `2`.

{{< cloudmusic "24953439" false >}}
{{< neteasemusic "24953439" false >}}

### 哔哩哔哩视频播放器

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{{- if isset .Params 2 -}}
{{ $type = .Get 2 }}
{{- end -}}
<div class="ratio ratio-21x9 cloudmusic">
<iframe class="cloudmusic-iframe"
<div class="ratio ratio-21x9 neteasemusic">
<iframe class="neteasemusic-iframe"
src="https://music.163.com/outchain/player?type={{ $type }}&id={{ $id }}&auto={{ $auto }}"
loading="lazy">
</iframe>
Expand Down

0 comments on commit c88b25c

Please sign in to comment.