feat(style): remove timeago.js, and improve article-time style
This commit is contained in:
@@ -109,13 +109,12 @@
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
margin-right: 8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
time {
|
||||
font-size: 16px;
|
||||
@media (max-width: $on-desktop) {
|
||||
font-size: 14px;
|
||||
}
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,14 +9,6 @@ let Stack = {
|
||||
*/
|
||||
menu();
|
||||
|
||||
/**
|
||||
* Add timeago
|
||||
*/
|
||||
const timeagoElements = document.querySelectorAll('article time[data-timeago=true]');
|
||||
if (timeagoElements.length) {
|
||||
timeago.render(timeagoElements);
|
||||
}
|
||||
|
||||
if (document.querySelector('.article-content')) {
|
||||
createGallery('.article-content');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user