Code injection to remove author name and photo
Thank you to Cathy Sarisky for this example of using code injection to modify the Ruby theme.
I hated that my theme put my name and photo on each post. It's my site, I don't need to see my name all the time! It made me feel like the theme wasn't right for me.
But a few quick tweaks and all was well! (I made a few other changes too.)
Here's what my code injection looks like now:
<style>
.gh-card-image img {
object-fit: contain;
}
.gh-card-author {
display: none;
}
.gh-card-author + .gh-card-date::before {
content: none;
}
.gh-article-author-image {
display: none;
}
.gh-article-author-name {
display: none;
}
.gh-article-image img {
max-height: 50vh;
object-fit: contain;
}
.gh-footer-copyright {
display: none;
}
</style>