Ciao,
Ora che ho visto questo argomento, mi sono ricordato di averne visto un commit a riguardo prima. ![]()
Penso che ora dovrebbe funzionare ![]()
Header
<script type="text/discourse-plugin" version="0.8">
api.includePostAttributes('topicMap');
</script>
Ho anche aggiunto un po’ di CSS per nascondere le statistiche non necessarie quando non ci sono altri post.
Common / CSS
body:not(.archetype-private_message) {
.topic-post.regular {
// if last-of-type is the #post_1
&:last-of-type {
article#post_1 {
.topic-map {
width: max-content;
nav.buttons {
display: none;
}
ul li {
// hide all statistics but views
&:not(.secondary.views) {
display: none;
}
}
// show views on mobile view
.secondary.views {
.mobile-view & {
display: list-item;
text-align: center;
}
}
}
}
}
}
}
Desktop (senza risposta)
Mobile (senza risposta)
Quando qualcuno risponde, torna all’impostazione predefinita.



