mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Super feature: Pinned posts.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--main-border-color);
|
||||
>h1 {
|
||||
h1 {
|
||||
font-size: 1.4rem;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -49,6 +49,9 @@
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
.pinned {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
}
|
||||
|
||||
.page-item {
|
||||
|
||||
@@ -69,7 +69,7 @@ function displayPageviews(data) {
|
||||
|
||||
if ($("#post-list").length > 0) { /* the Home page */
|
||||
$(".post-preview").each(function() {
|
||||
var path = $(this).children("h1").children("a").attr("href");
|
||||
var path = $(this).children("div").children("h1").children("a").attr("href");
|
||||
tacklePV(rows, path, $(this).find('.pageviews'), hasInit);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user