mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
content: Miscellaneous edits
This commit is contained in:
1 parent
b6cae5cbc6
commit
34ab45261f
2 files changed
+10
-7
No files matched your search
@@ -3,11 +3,11 @@
|
||||
Renders syntax-highlighted configuration data in JSON, TOML, and YAML formats.
|
||||
|
||||
@param {string} [config] The section of site.Data.docs.config to render.
|
||||
@param {bool} [copy=false] If true, display a copy to clipboard button.
|
||||
@param {bool} [copy=false] Whether to display a copy-to-clipboard button.
|
||||
@param {string} [dataKey] The section of site.Data.docs to render.
|
||||
@param {string} [file] The file name to display above the rendered code.
|
||||
@param {bool} [fm=false] If true, render the code as front matter.
|
||||
@param {bool} [skipHeader=false] If false, omit top level key(s) when rendering a section of site.Data.docs.config.
|
||||
@param {bool} [fm=false] Whether to render the code as front matter.
|
||||
@param {bool} [skipHeader=false] Whether to omit top level key(s) when rendering a section of site.Data.docs.config.
|
||||
|
||||
@example {{< code-toggle file=hugo config=build />}}
|
||||
|
||||
@@ -72,7 +72,7 @@ Renders syntax-highlighted configuration data in JSON, TOML, and YAML formats.
|
||||
<div x-data class="shortcode-code not-prose relative p-0 mt-6 mb-8">
|
||||
{{- if $copy }}
|
||||
<svg
|
||||
class="absolute right-4 top-12 z-30 text-blue-600 hover:text-blue-500 cursor-pointer w-6 h-6"
|
||||
class="absolute right-3 top-12 z-30 text-blue-600 hover:text-blue-500 cursor-pointer w-6 h-6"
|
||||
@click="$copy($refs[$store.nav.userSettings.settings.configFileType])">
|
||||
<use href="#icon--copy"></use>
|
||||
</svg>
|
||||
|
||||
Reference in new issue
Block a user