🎨 Finish folder structure redesign and add some scripts.
This commit is contained in:
@@ -16,4 +16,82 @@
|
||||
{{- $pluginJS = replace $pluginJS "${version}" $js.version }}
|
||||
{{- $pluginJS = replace $pluginJS "${file}" $file }}
|
||||
<script type="text/javascript" src="{{ $pluginJS }}"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
<script class="next-config" data-name="main" type="application/json">
|
||||
{
|
||||
"hostname": "theme-next.js.org",
|
||||
"root": "/",
|
||||
"images": "/images",
|
||||
"scheme": "Gemini",
|
||||
"darkmode": true,
|
||||
"version": "8.12.1",
|
||||
"exturl": true,
|
||||
"sidebar":
|
||||
{
|
||||
"position": "left",
|
||||
"display": "post",
|
||||
"padding": 18,
|
||||
"offset": 12
|
||||
},
|
||||
"copycode":
|
||||
{
|
||||
"enable": true,
|
||||
"style": "default"
|
||||
},
|
||||
"bookmark":
|
||||
{
|
||||
"enable": false,
|
||||
"color": "#222",
|
||||
"save": "auto"
|
||||
},
|
||||
"mediumzoom": true,
|
||||
"lazyload": false,
|
||||
"pangu": false,
|
||||
"comments":
|
||||
{
|
||||
"style": "tabs",
|
||||
"active": null,
|
||||
"storage": true,
|
||||
"lazyload": true,
|
||||
"nav": null
|
||||
},
|
||||
"stickytabs": false,
|
||||
"motion":
|
||||
{
|
||||
"enable": false,
|
||||
"async": false,
|
||||
"transition":
|
||||
{
|
||||
"post_block": "fadeIn",
|
||||
"post_header": "fadeInDown",
|
||||
"post_body": "fadeInDown",
|
||||
"coll_header": "fadeInLeft",
|
||||
"sidebar": "fadeInUp"
|
||||
}
|
||||
},
|
||||
"prism": false,
|
||||
"i18n":
|
||||
{
|
||||
"placeholder": "Searching...",
|
||||
"empty": "We didn't find any results for the search: ${query}",
|
||||
"hits_time": "${hits} results found in ${time} ms",
|
||||
"hits": "${hits} results found"
|
||||
},
|
||||
"path": "/search.json",
|
||||
"localsearch":
|
||||
{
|
||||
"enable": true,
|
||||
"trigger": "auto",
|
||||
"top_n_per_article": 1,
|
||||
"unescape": false,
|
||||
"preload": false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{{ $config := resources.Get "js/config.js" }}
|
||||
{{ $boot := resources.Get "js/next-boot.js" }}
|
||||
{{ $utils := resources.Get "js/utils.js" }}
|
||||
{{ $alljs := (slice $config $boot $utils) | resources.Concat "js/all.js"}}
|
||||
<script defer src="{{ $alljs.RelPermalink }}"></script>
|
||||
Reference in New Issue
Block a user