@use plume_models::blogs::Blog; @use plume_models::comments::{Comment, CommentTree}; @use plume_models::posts::Post; @use plume_models::tags::Tag; @use plume_models::users::User; @use std::path::Path; @use validator::ValidationErrors; @use crate::templates::{base, partials::comment}; @use crate::template_utils::*; @use crate::routes::comments::NewCommentForm; @use crate::routes::*; @(ctx: BaseContext, article: Post, blog: Blog, comment_form: &NewCommentForm, comment_errors: ValidationErrors, tags: Vec, comments: Vec, previous_comment: Option, n_likes: i64, n_reshares: i64, has_liked: bool, has_reshared: bool, is_following: bool, author: User) @:base(ctx, article.title.clone(), { @if article.cover_id.is_some() { } @if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) { @if let Some(ref theme) = blog.theme { } } }, { @blog.title }, {

@article.title

@article.subtitle

@if article.cover_id.is_some() {
}
@Html(&article.content)
@if ctx.2.clone().and_then(|u| article.is_author(ctx.0, u.id).ok()).unwrap_or(false) { } })