X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/c31a7eee27fd40e7aa558ad15e33f65f9fb6aed2..68d07e0d4c200b6675d8068a1b10e29bcce1e681:/cx/lib/posts.php diff --git a/cx/lib/posts.php b/cx/lib/posts.php index 326d81c..4d122df 100644 --- a/cx/lib/posts.php +++ b/cx/lib/posts.php @@ -46,8 +46,11 @@ class Post { } public function get_permalink_path() { - $post_permalink = $this->is_page ? '/' . $this->slug : '/' . date('Y', $this->date) . '/' . date('m', $this->date) . '/' . $this->slug; - return $post_permalink; + $permalink = '/' . $this->slug; + if ($this->is_page == false) { + $permalink = '/' . date('Y', $this->date) . '/' . date('m', $this->date) . '/' . $this->slug; + } + return $permalink; } public function get_metadata() {