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

Cleanup and always center platform cards #70

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

X9VoiD
Copy link
Member

@X9VoiD X9VoiD commented Nov 28, 2023

Before:

image

After:

image

Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

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

Very smart, I tried (and failed) solving the duplicated code issue as well and I completely forgot include files has arguments.

Comment on lines +16 to +21
{% capture platformImage %}
{% link assets/images/platform/Apple_Computer_Logo_rainbow.svg %}
{% endcapture %}
{% include platformcard.html
platform="MacOS"
platformImage=platformImage %}
Copy link
Member

Choose a reason for hiding this comment

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

If we don't care about keeping {% link %} usage intact (as solving #67 will make sure we can't use bad paths) the 3 repetitions can be done over a data object (e.g. /_data/os.json) instead.

@gonX gonX merged commit fab97f5 into OpenTabletDriver:main Nov 29, 2023
3 checks passed
@gonX gonX added enhancement New feature or request styling Affects CSS or layouts labels Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request styling Affects CSS or layouts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants