diff --git a/src/display/colorful/post.rs b/src/display/colorful/post.rs index 60bda5e..7252b5a 100644 --- a/src/display/colorful/post.rs +++ b/src/display/colorful/post.rs @@ -22,7 +22,6 @@ pub fn list_post( { let buf = &mut buf; write!(buf, "{} {}", "#".dimmed(), entry.id.to_string().dimmed())?; - write!(buf, " {}", entry.title.cyan().bold())?; if entry.is_published { write!(buf, " {}", "Pub".green())?; } else { @@ -31,6 +30,7 @@ pub fn list_post( if entry.is_pinned { write!(buf, " {}", "Pin".magenta())?; } + write!(buf, " {}", entry.title.cyan().bold())?; writeln!(buf)?; } buf diff --git a/src/display/normal/post.rs b/src/display/normal/post.rs index 8c0e751..7ef1593 100644 --- a/src/display/normal/post.rs +++ b/src/display/normal/post.rs @@ -21,7 +21,6 @@ pub fn list_post( { let buf = &mut buf; write!(buf, "# {}", entry.id)?; - write!(buf, " {}", entry.title)?; if entry.is_published { write!(buf, " Pub")?; } else { @@ -30,6 +29,7 @@ pub fn list_post( if entry.is_pinned { write!(buf, " Pin")?; } + write!(buf, " {}", entry.title)?; writeln!(buf)?; } buf