Replaced Moment with Carbon #84

Merged
Ghost merged 148 commits from develop into beta 2022-09-22 05:53:36 +02:00
3 changed files with 8 additions and 2 deletions
Showing only changes of commit 69eb9905a2 - Show all commits

View file

@ -133,7 +133,7 @@ class PageRepository implements PageRepositoryInterface
//upadte settings if needed
$body->path = $path;
$this->settings->updateMenu($body);
//Settings::updateTags();
$this->settings->updateTags($this->sort->tags());
// if new page added, update current index in Settings file
if ($task == 'create') {
$this->settings->updatePageIndex();

View file

@ -97,6 +97,11 @@ class SettingsService
$this->docs->writeSettings($settings);
}
public function updateTags($update)
{
$this->docs->writeSettings($update, env('TAGS_PATH'));
}
public function sync($data)
{
//dd($data->global->renderOnSave);

View file

@ -60,13 +60,14 @@ class SortingService
}
$tagData = [];
//dd($this->settings->getTags()['pages']);
$tagData = [
'debug' => $debug, // for theme kit
'tags' => $this->p_tags,
'theme' => $this->info['theme'], // for theme kit
'title' => 'Pages Tagged as Tag',
'dynamicRender' => $this->info['dynamicRender'],
'pages' => $this->settings->getTags()[3]['pages'],
'pages' => $this->settings->getTags()['pages'],
'info' => $this->info,
'menu' => $this->settings->getMenu(),
'media' => [