macos-defaults/build/vuepress/templates/page.md.handlebars
Yann Bertrand 3eb3fa5605
♻️ Normalize templates
- Allow special chars in category name and page title
- Improve HTML image attributes readibility
- Prod: allow double quotes in category and page descriptions
2020-09-26 20:24:54 +02:00

56 lines
1.4 KiB
Handlebars
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults
---
# {{{ title }}}
> {{{ description }}}
- **Tested on macOS**:
{{# versions }}
* {{ . }}
{{/ versions }}
- **Parameter type**: {{ param.type }}
{{# param.values }}
* {{ . }}
{{/ param.values }}
{{# if requirements }}
## Requirements
{{# requirements }}
- [`{{ name }}`](../../{{ folder }}/{{ key }}.html#set-to-{{ value }}) must be set to `{{ value }}`
{{/ requirements }}
{{/ if }}
{{# examples }}
## Set to `{{{ value }}}`{{# if default }} (default value){{/ if }}
```bash
defaults write {{ ../domain }} {{ ../key }} -{{ ../param.type }} {{{ value }}}{{# if ../after }} && {{ ../after }}{{/ if }}
```
{{# video }}
<video autoplay loop muted playsinline width="{{ width }}" height="{{ height }}" style="max-width: 100%; height: auto">
<source src="./{{ ../../folder }}-{{ ../../key }}-{{ filename }}" type="video/mp4">
Example output with value set to {{{ ../value }}}
</video>
{{/ video }}
{{# image }}
<img
src="./{{ ../../folder }}-{{ ../../key }}-{{ filename }}"
alt="Example output with value set to {{{ ../value }}}"
width="{{ width }}" height="{{ height }}" style="height: auto"
/>
{{/ image }}
{{# text }}
- {{{ . }}}
{{/ text }}
{{/ examples }}
## Read current value
```bash
defaults read {{ domain }} {{ key }}
```
## Delete current value
```bash
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
```