mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Useabilty improvement
archive var includes the month only
This commit is contained in:
parent
ab60a8e6d9
commit
3d3c76ac95
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ function get_posts($posts, $page = 1, $perpage = 0){
|
|||
$post->date = strtotime($timestamp);
|
||||
|
||||
// The archive per day
|
||||
$post->archive = site_url(). 'archive/' . date('Y-m-d', $post->date) ;
|
||||
$post->archive = site_url(). 'archive/' . date('Y-m', $post->date) ;
|
||||
|
||||
// The post URL
|
||||
$post->url = site_url().date('Y/m', $post->date).'/'.str_replace('.md','',$arr[2]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue