diff --git a/modules/Blog/ArticleList/Handlers/ArticleList.php b/modules/Blog/ArticleList/Handlers/ArticleList.php index 11ea43c9..b1bfd0d8 100644 --- a/modules/Blog/ArticleList/Handlers/ArticleList.php +++ b/modules/Blog/ArticleList/Handlers/ArticleList.php @@ -101,6 +101,11 @@ class ArticleList extends Handler $articles = $articles->orderBy('created_at', 'DESC') ->paginate(20); + // decode module settings + foreach ($articles as $article) { + $article->module_settings = json_decode($article->module_settings); + } + return Controller::VisitorsView($content->template, [ 'page' => $content, 'articles' => $articles, diff --git a/templates/Binarity/Resources/assets/css/app.css b/templates/Binarity/Resources/assets/css/app.css index da947565..f3270e16 100644 --- a/templates/Binarity/Resources/assets/css/app.css +++ b/templates/Binarity/Resources/assets/css/app.css @@ -1844,28 +1844,6 @@ h6 { font-size: 1rem; } -@media screen and (min-width: 40em) { - - h1 { - font-size: 1.25rem; - } - h2 { - font-size: 1.25rem; - } - h3 { - font-size: 1.9375rem; - } - h4 { - font-size: 1.5625rem; - } - h5 { - font-size: 1.25rem; - } - h6 { - font-size: 1rem; - } -} - a:hover,a:focus { color: #779000; text-decoration: underline; @@ -7689,29 +7667,6 @@ article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,secti } -@media screen and (min-width: 40em) { - - h1 { - font-size: 1.25rem; - } - h2 { - font-size: 1.25rem; - } - h3 { - font-size: 1.9375rem; - } - h4 { - font-size: 1.5625rem; - } - h5 { - font-size: 1.25rem; - } - h6 { - font-size: 1rem; - } -} - - @media screen and (min-width: 40em) { .medium-text-left { @@ -9304,4 +9259,21 @@ article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,secti font-weight: bold; font-size: 120%; padding: 0; padding-right: 15px; +} + +article h1 { + font-size: 2em; +} +article h2 { + margin-top: 20px; + font-size: 1.5em; +} + +article h3 { + margin-top: 20px; + font-size: 1.2em; +} + +.comment aside { + line-height: 1; } \ No newline at end of file diff --git a/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php index fddf8858..df4ec9b3 100644 --- a/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php +++ b/templates/Binarity/Resources/views/modules/article/visitor/default.blade.php @@ -17,86 +17,90 @@ {{$page->author->name}} -
+ @if(isset($page->module_settings->allowComments) && $page->module_settings->allowComments != 0) + + @endif
{{$comment->author->name}}
-