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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon refactor #4049
Icon refactor #4049
Conversation
Made one for each to avoid over paramaterizing the includes. Also allows for various icon formats.
Had to remove whitespace from icon includes because Markdown...
I am absolutely 馃憤 on this because it demonstrates to a further extend how some of our software works and it also makes it cleaner to read the source. 鉂わ笍 |
You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll) | ||
You can find the source code for Jekyll at | ||
{% include icon-github.html username="jekyll" %} / | ||
[jekyll](https://github.com/jekyll/jekyll) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this addition about? Can you explain this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are the SVG's used? |
I believe the only place we had them previously was in the footer? /cc @jglovier who would know more if I recall right yeah? |
@parkr @envygeeks previously they were only used in the footer. This allows them to also be used within page content--which can be pretty handy when generating author or code project pages. See the screenshot here: #4049 (comment) |
Yup, that's correct. Also, 馃憤 馃憤 ! |
Sorry, I lied. There is also a hamburger menu bar which is used for collapsing the navigation on mobile. |
馃憤 Why did You create separate SVG files for SVG content only? I'd probably recommend putting SVG data directly to the icon includes. One include less to make could mean smaller generation time for webs with hundreds of pages. |
Thanks! |
鉂わ笍 |
While working on https://github.com/hypothesis/developers.hypothes.is I wanted to use the GitHub icons inline in some content. This is essentially the same refactoring I did there, but on the default Jekyll theme--in hopes that it helps others.
The footer has been refactored to use these new icon includes, and
about.md
shows an example of using them inline.Example:
These could also be handy on author pages and the like.
Hope it's useful!
馃帺