updated gallery

This commit is contained in:
2026-03-17 18:34:26 +01:00
parent 7b37259a2c
commit 7da0fd39f7
52 changed files with 1216 additions and 870 deletions

View File

@@ -63,6 +63,6 @@ class TodayDownloadsController extends Controller
$page_title = 'Today Downloaded Artworks';
return view('legacy::browse', ['page_title' => $page_title, 'artworks' => $paginator]);
return view('web.downloads.today', ['page_title' => $page_title, 'artworks' => $paginator]);
}
}

View File

@@ -35,21 +35,10 @@ class NewsController extends Controller
}
$articles = $query->paginate($perPage);
$categories = NewsCategory::active()->withCount('publishedArticles')->ordered()->get();
$trending = NewsArticle::published()
->orderByDesc('views')
->limit(config('news.trending_limit', 5))
->get(['id', 'title', 'slug', 'views', 'published_at']);
$tags = NewsTag::has('articles')->orderBy('name')->get();
return view('news.index', [
'featured' => $featured,
'articles' => $articles,
'categories' => $categories,
'trending' => $trending,
'tags' => $tags,
]);
] + $this->sidebarData());
}
// -----------------------------------------------------------------------
@@ -67,13 +56,10 @@ class NewsController extends Controller
->orderByDesc('published_at')
->paginate($perPage);
$categories = NewsCategory::active()->withCount('publishedArticles')->ordered()->get();
return view('news.category', [
'category' => $category,
'articles' => $articles,
'categories' => $categories,
]);
] + $this->sidebarData());
}
// -----------------------------------------------------------------------
@@ -91,13 +77,10 @@ class NewsController extends Controller
->orderByDesc('published_at')
->paginate($perPage);
$categories = NewsCategory::active()->withCount('publishedArticles')->ordered()->get();
return view('news.tag', [
'tag' => $tag,
'articles' => $articles,
'categories' => $categories,
]);
] + $this->sidebarData());
}
// -----------------------------------------------------------------------
@@ -126,7 +109,7 @@ class NewsController extends Controller
return view('news.show', [
'article' => $article,
'related' => $related,
]);
] + $this->sidebarData());
}
// -----------------------------------------------------------------------
@@ -154,4 +137,16 @@ class NewsController extends Controller
$request->session()->put($session, true);
}
private function sidebarData(): array
{
return [
'categories' => NewsCategory::active()->withCount('publishedArticles')->ordered()->get(),
'trending' => NewsArticle::published()
->orderByDesc('views')
->limit(config('news.trending_limit', 5))
->get(['id', 'title', 'slug', 'views', 'published_at']),
'tags' => NewsTag::has('articles')->orderBy('name')->get(),
];
}
}

View File

@@ -79,6 +79,9 @@ class StoryController extends Controller
'page_meta_description' => 'Long-form creator stories, tutorials, interviews and project breakdowns on Skinbase.',
'page_canonical' => route('stories.index'),
'page_robots' => 'index,follow',
'breadcrumbs' => collect([
(object) ['name' => 'Stories', 'url' => route('stories.index')],
]),
]);
}

View File

@@ -6,8 +6,6 @@ use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\Artwork;
use App\Models\ArtworkStats;
use App\Models\User;
class TopAuthorsController extends Controller
{
@@ -51,7 +49,7 @@ class TopAuthorsController extends Controller
];
});
$page_title = 'Top Authors';
$page_title = 'Top Creators';
return view('web.authors.top', compact('page_title', 'authors', 'metric'));
}