ToddZ
Novembro 14, 2024, 6:31pm
6
Jay Pfaffman:
Na época em que escrevi isso, as estatísticas na barra lateral direita não estavam encapsuladas em uma única classe, então tive que ocultar o cabeçalho <h3> com last-child. Não tenho certeza de quão frágil isso pode ser.
Legal – Abordei isso com nth-of-type em vez de last-child. Para quem quiser suprimir as novas estatísticas sem restaurar as antigas, um pequeno corte CSS aqui (atualmente) funciona:
Hiding “Site activity” section
The old About page had a “stats” class on a div that allowed “Site activity” to be easily suppressed via custom CSS:
//suppress site statistics on old About page
.stats {
display: none;
}
The new About page lacks this div class. It would be nice to have, but for anyone else not wanting site stats shown, here’s a way to suppress the separate elements as they’re currently rendered:
// suppress site statistics on NEW About page
.about__right-side H3:nth-of-ty…