-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuilding site 2024年 7月 2日 星期二 11时39分40秒 CST
- Loading branch information
Showing
18 changed files
with
231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/attachments.html" (dict | ||
"page" .Page | ||
"color" (.Get "color") | ||
"content" .Inner | ||
"icon" (.Get "icon") | ||
"pattern" (.Get "pattern") | ||
"style" (.Get "style") | ||
"sort" (.Get "sort") | ||
"title" (.Get "title") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/badge.html" (dict | ||
"page" .Page | ||
"color" (.Get "color") | ||
"content" .Inner | ||
"icon" (.Get "icon") | ||
"style" (.Get "style") | ||
"title" (.Get "title") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- if (.Get "icon-position") }} | ||
{{- warnf "%q: DEPRECATED parameter 'icon-position' for shortcode 'button' found, use 'iconposition' instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/button#parameter" .Page.File.Filename }} | ||
{{- end }} | ||
{{- partial "shortcodes/button.html" (dict | ||
"page" .Page | ||
"color" (.Get "color") | ||
"content" .Inner | ||
"href" (.Get "href") | ||
"icon" (.Get "icon") | ||
"iconposition" ((.Get "iconposition") | default (.Get "icon-position")) | ||
"style" (.Get "style") | ||
"title" (.Get "title") | ||
"target" (.Get "target") | ||
"type" (.Get "type") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/children.html" (dict | ||
"page" .Page | ||
"containerstyle" (.Get "containerstyle") | ||
"description" (.Get "description") | ||
"depth" (.Get "depth") | ||
"showhidden" (.Get "showhidden") | ||
"sort" (.Get "sort") | ||
"style" (.Get "style") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- $id := "" }} | ||
{{- partial "shortcodes/expand.html" (dict | ||
"page" .Page | ||
"content" .Inner | ||
"open" (.Get "open" | default (.Get 1)) | ||
"title" (.Get "title" | default (.Get 0)) | ||
"id" $id | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{- $content := "" }} | ||
{{- $content = .InnerDeindent }} | ||
{{- $attributes := dict }} | ||
{{- $options := dict }} | ||
{{- $type := "" }} | ||
{{- range $k, $v := .Params }} | ||
{{- if eq $k 0 }} | ||
{{- $type = $v }} | ||
{{- else if eq $k 1 }} | ||
{{- $options = $v }} | ||
{{- else if eq $k "type" }} | ||
{{- $type = $v }} | ||
{{- else if eq $k "title" }} | ||
{{- $attributes = $attributes | merge (dict $k $v) }} | ||
{{- else if eq $k "wrap" }} | ||
{{- $attributes = $attributes | merge (dict $k $v) }} | ||
{{- else }} | ||
{{- $options = $options | merge (dict $k $v) }} | ||
{{- end }} | ||
{{- end }} | ||
{{- partial "shortcodes/highlight.html" (dict | ||
"page" .Page | ||
"attributes" $attributes | ||
"content" $content | ||
"options" $options | ||
"type" $type | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/icon.html" (dict | ||
"page" .Page | ||
"icon" (.Get "icon" | default (.Get 0)) | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if (.Get "showfirstheading") }} | ||
{{- warnf "%q: UNSUPPORTED parameter 'showfirstheading' for shortcode 'include' found, use 'hidefirstheading' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#420" .Page.File.Filename }} | ||
{{- end }} | ||
{{- partial "shortcodes/include.html" (dict | ||
"page" .Page | ||
"file" (.Get "file" | default (.Get 0)) | ||
"hidefirstheading" (.Get "hidefirstheading" | default (.Get 1)) | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/math.html" (dict | ||
"page" .Page | ||
"content" .Inner | ||
"align" (.Get "align") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/mermaid.html" (dict | ||
"page" .Page | ||
"content" .Inner | ||
"align" (.Get "align") | ||
"zoom" (.Get "zoom") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/notice.html" (dict | ||
"page" .Page | ||
"color" (.Get "color") | ||
"content" .Inner | ||
"icon" (.Get "icon" | default (.Get 2)) | ||
"style" (.Get "style" | default (.Get 0)) | ||
"title" (.Get "title" | default (.Get 1)) | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- $id := "" }} | ||
{{- partial "shortcodes/openapi.html" (dict | ||
"page" .Page | ||
"src" (.Get "src") | ||
"id" $id | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<style type="text/css"> | ||
#googleslides_shortcodes { | ||
padding-bottom: 66%; | ||
position: relative; | ||
display: block; | ||
width: 100%; | ||
border-bottom: 5px solid; | ||
} | ||
#googleslides_shortcodes iframe { | ||
position: absolute; | ||
top: 0; | ||
left: 0 | ||
} | ||
</style> | ||
<title></title> | ||
</head> | ||
<body> | ||
<div id="googleslides_shortcodes"> | ||
<iframe id="googleSlideIframe" | ||
width="100%" | ||
height="100%" | ||
src="{{ .Get "src" }}" | ||
frameborder="0" | ||
allowfullscreen="" > | ||
</iframe> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<!-- ———————————————— | ||
版权声明:这部分copy自 Sulv's Blog」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 | ||
原文链接:https://www.sulvblog.cn/posts/blog/shortcodes/#61-ppt-%e5%b1%95%e7%a4%ba --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- partial "shortcodes/resources.html" (dict | ||
"page" .Page | ||
"color" (.Get "color") | ||
"content" .Inner | ||
"icon" (.Get "icon") | ||
"pattern" (.Get "pattern") | ||
"style" (.Get "style") | ||
"sort" (.Get "sort") | ||
"title" (.Get "title") | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{- partial "shortcodes/siteparam.html" (dict | ||
"page" .Page | ||
"name" (.Get "name" | default (.Get 0)) | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- $id := "" }} | ||
{{- partial "shortcodes/swagger.html" (dict | ||
"page" .Page | ||
"src" (.Get "src") | ||
"id" $id | ||
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{- $_hugo_config := `{ "version": 1 }` }} | ||
{{- $color := (.Get "color") }} | ||
{{- $content := .Inner }} | ||
{{- $icon := (.Get "icon") }} | ||
{{- $name := (.Get "name") }} | ||
{{- $style := (.Get "style") }} | ||
{{- $title := (.Get "title") }} | ||
{{- $tabs := slice }} | ||
{{- if and .Parent (.Parent.Scratch.Get "tabs") }} | ||
{{- $tabs = .Parent.Scratch.Get "tabs" }} | ||
{{- end }} | ||
{{- $tabs = $tabs | append (dict | ||
"color" $color | ||
"content" $content | ||
"icon" $icon | ||
"name" $name | ||
"style" $style | ||
"title" $title | ||
) }} | ||
{{- if .Parent }} | ||
{{- $.Parent.Scratch.Set "tabs" $tabs }} | ||
{{- else }} | ||
{{- /* if no containing tabs shortcode is present, we display this tab as single */}} | ||
{{- partial "shortcodes/tabs.html" (dict | ||
"page" .Page | ||
"color" "" | ||
"content" $tabs | ||
"groupid" "" | ||
"icon" "" | ||
"style" "" | ||
"title" "" | ||
) }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- $unused := .Inner }} | ||
{{- $color := (.Get "color") }} | ||
{{- $groupid := ((.Get "groupid") | default (.Get "groupId")) }} | ||
{{- if (.Get "groupId") }} | ||
{{- warnf "%q: DEPRECATED parameter 'groupId' for shortcode 'tabs' found, use 'groupid' instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/tabs#parameter" .Page.File.Filename }} | ||
{{- end }} | ||
{{- $icon := (.Get "icon") }} | ||
{{- $style := (.Get "style") }} | ||
{{- $title := (.Get "title") }} | ||
{{- $tabs := (.Scratch.Get "tabs") }} | ||
{{- partial "shortcodes/tabs.html" (dict | ||
"page" .Page | ||
"color" $color | ||
"content" $tabs | ||
"groupid" $groupid | ||
"icon" $icon | ||
"style" $style | ||
"title" $title | ||
) }} |