diff --git a/robots.txt b/robots.txt index d261747..736cd0f 100644 --- a/robots.txt +++ b/robots.txt @@ -2,7 +2,6 @@ User-agent: * Disallow: /kirby/ Disallow: /panel/ Disallow: /site/ -Disallow: /thumbs/ Disallow: /error/ diff --git a/site/blueprints/project.yml b/site/blueprints/project.yml index 6e00dc6..2ae5d01 100644 --- a/site/blueprints/project.yml +++ b/site/blueprints/project.yml @@ -20,6 +20,9 @@ fields: text: label: Text type: textarea + en_masonry: + type: checkbox + text: Enable masonry text2: label: Text below masonry type: textarea diff --git a/site/templates/project.php b/site/templates/project.php index 4a86f89..ef0ce25 100644 --- a/site/templates/project.php +++ b/site/templates/project.php @@ -16,7 +16,7 @@ snippet('base/cont-header'); text()->kirbytext(); ?> - $page)) ; ?> + en_masonry() == '1') echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)); ?>
text2()->kirbytext(); ?> diff --git a/site/templates/projects.php b/site/templates/projects.php index a5abc2b..4c1d37d 100644 --- a/site/templates/projects.php +++ b/site/templates/projects.php @@ -6,7 +6,7 @@ // license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License // ------------------------------------------- -$children = $page->children(); +$children = $page->children()->visible(); snippet('base/html-head'); snippet('base/cont-header');