Skip to content

Commit

Permalink
#55 Move pageclass to the <body> tag
Browse files Browse the repository at this point in the history
It’s always the same no no need to set it on every page
  • Loading branch information
waseemsadiq committed May 24, 2022
1 parent 95bee52 commit bddc0e7
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sites/dashboard/pages/index.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: Dashboard
title: Joomlatools Server Dashboard
summary: Dashboard for managing Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-apc.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: APC
title: Joomlatools Server APC
summary: PHP-APC for Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-fpm.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: FPM
title: Joomlatools Server FPM
summary: PHP-FPM for Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-info.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: PHP Info
title: Joomlatools Server PHP Info
summary: PHP-PHP Info for Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-opcache.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: Opcache
title: Joomlatools Server Opcache
summary: PHP-Opcache for Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-xdebug.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: Xdebug
title: Joomlatools Server Xdebug
summary: PHP-Xdebug for Joomlatools Server
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/phpmyadmin.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout:
path: /default

pageclass: antialiased bg-gray-100

name: PhpMyAdmin
title: Joomlatools Server PhpMyAdmin
summary: PhpMyAdmin for managing Joomlatools Server
Expand Down
1 change: 0 additions & 1 deletion sites/dashboard/templates/layouts/default.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@layout: /index
@process:
prefetch: .navigation
pageclass:
---

<div class="flex relative" x-data="{navOpen: false}">
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/templates/layouts/index.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<ktml:script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine-ie11.min.js" defer="defer" module="nomodule" />
<![endif]-->

<body class="<?= isset(page()->pageclass) ? page()->pageclass : '' ?>">
<body class="antialiased bg-gray-100">
<ktml:content>
</body>

0 comments on commit bddc0e7

Please sign in to comment.