mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 22:16:23 +05:30
Allow to change the post permalink prefix
Example: /blog/post-slug
This commit is contained in:
parent
435f871162
commit
a473482da8
5 changed files with 60 additions and 57 deletions
|
|
@ -48,11 +48,11 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
if (permalink_type() == 'default') {
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
$delete = site_url() . permalink_type() . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
|
||||
$tags = tag_cloud(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue