X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/7eeae5c4183434a1cf7c0613b3dc8dd953b55810..c31a7eee27fd40e7aa558ad15e33f65f9fb6aed2:/cx/lib/posts.php diff --git a/cx/lib/posts.php b/cx/lib/posts.php index a7ebfa4..326d81c 100644 --- a/cx/lib/posts.php +++ b/cx/lib/posts.php @@ -45,6 +45,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; + } + public function get_metadata() { $data = [];