Browse Source

Update readme

pull/674/head
danpros 1 year ago
parent
commit
a5524d048d
2 changed files with 1 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +0
    -2
      system/admin/views/popular-posts.html.php

+ 1
- 1
README.md View File

@ -102,7 +102,7 @@ This is my category info etc.
**Important:** Every time new content added (post, pages, category), or you make changes that change the folder structure or filenames, simply delete the `index` and `widget` folder inside `cache` folder so that the changes detected by HTMLy.
**Post Views limitations:** HTMLy using the filename path as the ID for the post/page views counter. So if you edit a post/page without using the dashboard which results in changes to the folder structure or filename, then you must edit `views.json` in the `content/data/` folder manually to update to the correct path.
**Post Views limitations:** HTMLy using the post/page slug for the post/page views counter ID. So if you edit a post/page slug without using the dashboard, then you must edit `views.json` in the `content/data/` folder manually to update to the correct slug.
Static pages
------------


+ 0
- 2
system/admin/views/popular-posts.html.php View File

@ -18,7 +18,6 @@
</thead>
<tbody>
<?php foreach ($posts as $p): ?>
<?php if (strpos($p->file, '/scheduled/') == false && strpos($p->file, '/draft/') == false) { ?>
<tr>
<td><a target="_blank" href="<?php echo $p->url ?>"><?php echo $p->title ?></a></td>
<td><?php echo format_date($p->date) ?></td>
@ -30,7 +29,6 @@
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a
class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>
</tr>
<?php } ?>
<?php endforeach; ?>
</tbody>
</table>


Loading…
Cancel
Save