Page 1 of 2

[THEME] Clean Blog

Posted: Sat Sep 12, 2015 1:24 am
by diego
Clean Blog
Design by Start Bootstrap
Website: http://startbootstrap.com/template-over ... lean-blog/
Download on Github Bludit Themes: https://github.com/dignajar/bludit-themes

Notes
To make posts with background covers you can uses the class name bludit-img-justify, for example:

Code: Select all

<img class="bludit-img-justify" src="background.jpg">

Re: [THEME] Clean Blog

Posted: Sat Sep 12, 2015 10:40 am
by Fred
Hello Diego,

You have a error on path post image.

Replace

Code: Select all

$coverImage = HTML_PATH_THEME_IMG.'/home-bg.jpg';
by

Code: Select all

$coverImage = HTML_PATH_THEME.'img/home-bg.jpg';
I think is better in index.php, like that, it makes some lines and less in the other theme files.

Code: Select all

    <!-- Content -->
    <?php
		// --- COVER IMAGE ------------------------------------------------------------
		// --- by Diego Najar for Bludit ---------------------------------------------	    
		$coverImage = HTML_PATH_THEME.'img/home-bg.jpg';
		
        if( ($Url->whereAmI()=='home') || ($Url->whereAmI()=='tag') )
        {
            include('php/home.php');
        }
        elseif($Url->whereAmI()=='post')
        {
            include('php/post.php');
        }
        elseif($Url->whereAmI()=='page')
        {
            include('php/page.php');
        }
    ?>
Apart if the goal is to have a different background image on the three side of the page.

Other hooks not integrate

Code: Select all

    <!-- Plugins Page Begin -->
    <?php Theme::plugins('pageEnd') ?>
I love this theme with background feature!

Re: [THEME] Clean Blog

Posted: Sun Sep 13, 2015 3:12 am
by diego
- I forgot push some updates on github, I added the constant HTML_PATH_THEME_IMG.

- Now you have a default background for pages, post and home.

- I added the hooks missings, thanks.

Re: [THEME] Clean Blog

Posted: Tue Jun 14, 2016 7:36 pm
by carlosduran
Hola, Diego. Me gusta mucho este tema para Bludit pero me encontré con un pequeño detalle con el sistema de comentarios de Disqus. Al parecer el ancho siempre ocupa el 100% de toda la pantalla, creo que falta agregar alguna clase CSS para que el ancho cambie dependiendo la pantalla. De todas manera gracias por portar este tema a Bludit ;)

Re: [THEME] Clean Blog

Posted: Mon Apr 03, 2017 7:15 pm
by sylvian
Hello
I want to have the tags appearing in a website with this Theme. How should I proceed?
Thanks for answering

Re: [THEME] Clean Blog

Posted: Tue Apr 04, 2017 12:59 am
by Edi
You can add the following code to the template post.php:

Code: Select all

<?php
    $tags = $Post->tags(true);

    foreach($tags as $tagKey=>$tagName) {
        echo '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a></li>';
    }
?>

Re: [THEME] Clean Blog

Posted: Tue Apr 04, 2017 6:17 pm
by sylvian
Yeah! It works!

Now what i want to do is to incorporate the full system of tags of log theme in the clean blog theme.

I've begun understanding the code but it's too complicated for me. Moreover the css files in clean blog are not well presented in textmate editor or dashcode editor...

Re: [THEME] Clean Blog

Posted: Sun May 28, 2017 9:43 am
by RolfL
Hi,

how can it be achieved, that the top-navigation bar appears on smartphone-devices
after scrolling up in a post, like it does on tablet- and desktop-pc? If one has a quite
long post/page, it is a bit uncomfortable to first scroll to the top-most position until the
bar comes into sight.

Cool theme btw., thanks to the author!

-RolfL

Update:
Topic is discussed on github too - but with no solution so far. I decided to use this solution:
https://forum.bludit.com/viewtopic.php?f=21&t=937
Thanks and kudos to the author!

Re: [THEME] Clean Blog

Posted: Sun Oct 08, 2017 4:07 pm
by Mark
I am a new user, well will be in about 3 days or so. Amazing piece of work so far. Kudos to all involved. I am looking to use the Clean Blog theme for my personal website. Any chance it is going to be updated to Bootstrap 4? I can try it myself but there may be errors as I would just be updating all the existing Clean Blog files from 3.3.2 to 4.0.

Re: [THEME] Clean Blog

Posted: Mon Oct 09, 2017 10:54 am
by Edi
I would wait... At the moment the themes are adapted to Bludit 2.