This is the repository for pdqdat's Github site. The site is built based on the Hacked Jekyll theme.
The appearance of the rendered JSON object can be customized using site variables. These have default values that can be overridden by specifying a new value in the _config.yml file.
| Variable | Default | Purpose |
|---|---|---|
color_bg |
gray-9 |
Set the background color |
color_punct |
green-9 |
Set the color of quotes, commas, and brackets |
color_key |
green-4 |
Set the color of keys |
color_value |
green-4 |
Set the color of values |
color_hover |
green-5 |
Set the color of values on hover (if they are links) |
quotes |
true |
Display quote marks around keys and/or values |
commas |
true |
Display commas between key-value pairs |
lowercase |
true |
Transform all keys and/or values to lowercase |
newtab |
false |
Open links in a new tab |
The color_* variables follow the Open Color library's naming convention (read here). Change them to any color in the library using the same convention. For example:
color_bg: indigo-5
color_punct: teal-6
color_key: grape-7
color_value: lime-8
color_hover: cyan-9The variables quotes and lowercase are true by default and can be set to false, but they can also be set to keys or values in order to restrict their effect to either keys or values. For example, the following code will display quote marks only around values and transform only keys to lowercase:
quotes: values
lowercase: keys