thanks I managed with {% if category.title == 'blog' %}..

On Tuesday, January 3, 2017 at 9:47:41 PM UTC+1, Kenneth Bolton wrote:
>
>
> On Tue, Jan 3, 2017 at 2:30 PM, userblaz <[email protected] <javascript:>> 
> wrote:
> >
> > I went through Josh's blog and it was very helpful with the restyle of 
> my site but i didn't see
> > any section explaining how to have different stylings for 2 or more 
> different blogs. the base 
> > template is the same, I want to have a different base.html template on
> > http://example.com/posts/category/blog/ than 
> http://example.com/posts/category/news/...
>
> The crux of one solution is to add something appropriate to your 
> blog_post_list.html and blog_post_detail.html, perhaps in `extra_head` 
> block, that has your custom CSS in it with template `if` blocks to check 
> the category.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to