Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Jekyll and Hugo as SSG "frequently-used frameworks" and replace with 11ty #751

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mgwalker
Copy link
Member

Changes proposed in this pull request:

Just what it says on the tin.

security considerations

None

@mgwalker mgwalker requested a review from a team as a code owner November 14, 2024 20:20
@mgwalker mgwalker marked this pull request as draft November 14, 2024 20:28
Comment on lines -40 to +61
| Purpose | Tool |
| ---- | ---- |
| CSS framework | [_More info_]({{ "/engineering/languages-runtimes/css/#frameworks" | url }}) |
| Infrastructure/configuration as code | [Terraform](https://www.terraform.io/) |
| Static site generator | [Jekyll](https://jekyllrb.com/) (with the [uswds-jekyll](https://github.com/18F/uswds-jekyll) theme) or Hugo |
<table>
<thead>
<tr>
<th>Purpose</th>
<th>Tool</th>
</tr>
</thead>
<tbody>
<tr>
<td>CSS framework</td>
<td><a href="{{ "/engineering/languages-runtimes/css/#frameworks" | url }}"><em>More info</em></a></td>
</tr>
<tr>
<td>Infrastructure/configuration as code</td>
<td><a href="https://www.terraform.io/">Terraform</a></td>
</tr>
<tr>
<td>Static site generator</td>
<td>{% include "engineering/tag-default.html" %} <a href="https://www.11ty.dev/">11ty/Eleventy</a></td>
</tr>
</tbody>
</table>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default tag snippet has a trailing newline, which is pretty standard (our prettier config wants it, for example). However, if you include the tag within markdown, it gets inserted into the markdown before the markdown is parsed, which means it can break markdown syntax. For example, a table row like this:

| Static site generator | {% include "tag" %} 11ty |

becomes

| Static site generator | tag
11ty |

When then renders as two table rows instead of one. The fix options are either remove the trailing newline from the tag snippets, which seems very fragile because anyone in the future who tweaks one and runs prettier would suddenly break this table, or replace the markdown table with an HTML one. I chose the latter. 😛

@mgwalker mgwalker marked this pull request as ready for review November 14, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant