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

Update posts to move author to metadata #181

Merged
merged 4 commits into from Jan 15, 2021
Merged

Update posts to move author to metadata #181

merged 4 commits into from Jan 15, 2021

Conversation

mdo
Copy link
Member

@mdo mdo commented Jan 9, 2021

More traditional layout on index and individual posts by having author avatar and name at the top. Also adds an icon from Bootstrap Icons for the date, with a new date format that looks more complete.

Screen Shot 2021-01-09 at 2 00 28 PM

Moves all post authors to single authors, to be in the front matter, and removes the <3, ... sign-off from all posts.

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="{{ include.width }}" height="{{ include.height }}" class="{{ include.class }}" viewBox="0 0 16 16" role="img" fill="currentColor">
Copy link
Member

@XhmikosR XhmikosR Jan 11, 2021

Choose a reason for hiding this comment

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

If we are not using different width/height, I'd say we better hardcode this. And also do this for the other icons assuming we don't pass any different values.

@XhmikosR
Copy link
Member

I'll check it out later to make sure the SEO tags are fine too.

@XhmikosR XhmikosR self-requested a review January 11, 2021 09:20
src/_layouts/post.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
@XhmikosR
Copy link
Member

XhmikosR commented Jan 11, 2021

I pushed a few more patches. Not sure I love jekyll-avatar because of its lack of customization (even its lazy option doesn't work with our JS library nor can we pass loading=lazy). I'll probably revert that part.

And I'll try lazyloading the avatars later.

@XhmikosR
Copy link
Member

I reverted the jekyll-avatar addition and just moved common code to an include. Should be good to go. Looking good as a start!

Similarly to what we do with the videos.
We can expand this later to use `time`
@XhmikosR XhmikosR force-pushed the updated-post-meta branch 2 times, most recently from 27d8417 to 4a878c4 Compare January 13, 2021 13:08
@XhmikosR XhmikosR merged commit 8459691 into main Jan 15, 2021
@XhmikosR XhmikosR deleted the updated-post-meta branch January 15, 2021 13:46
@XhmikosR XhmikosR mentioned this pull request Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants