dearconsole icon indicating copy to clipboard operation
dearconsole copied to clipboard

Second button rendered is empty

Open salcode opened this issue 2 years ago • 2 comments

I'm seeing an empty button element between "All topics" and "accessibility"

image

This is a great repo, thanks for creating this and sharing it with the world!

salcode avatar Feb 22 '23 21:02 salcode

The Jekyll Post Tags Documentation says

Since Jekyll expects multiple items mapped to the key tags, it will automatically split a string entry if it contains whitespace.

however the tags in this repo include commas (,)

e.g.

https://github.com/codepo8/dearconsole/blob/09dcc2466ecd291167c8137e35d5981f8f12771e/_scripts/copy-alt-on-click.md?plain=1#L5

I suspect the best way to solve this issue is to remove the commas from the tags lines.

salcode avatar Feb 23 '23 03:02 salcode

This line should find all of the files that have a comma in the tags: and remove it.

grep -rl '^tags:.*,' ./_scripts | xargs sed -i '' '/^tags:/s/,//g'

Though it turns it the commas only appear in one line, so this command was definitely over engineered - ha ha.

salcode avatar Feb 23 '23 03:02 salcode