Add logo to your tinkerer website, modern5 theme

15 views
Skip to first unread message

Marcel Van Duijvendijk

unread,
Jan 21, 2016, 8:06:17 AM1/21/16
to tinkerer-dev
Add logo to your tinkerer website, modern5 theme
================================================

To modify the modern5 theme, to add a logo instead of a written 'project' 
title, follow these instructions.

Add the following lines to conf.py::

  # add logo  (your logo goes in _static directory)
  html_logo = '_static/yourlogo.png'

Add the following block to the theme's layout.html at the bottom to overwrite
the boilerplate theme definition::
  
  {%- block header -%}
      <header role="banner">
        <hgroup>
          <a href="#">
               <h1><img src="{{ pathto('_static/' + logo, 1) }}"  alt="alternative project title"/></h1>     
          </a>
         {# <h1><a href="{{ pathto(pages[0][0]) }}">{{ shorttitle|e }}</a></h1> #}
          {%- if tagline -%}<h2>{{ tagline|e }}</h2>{%- endif -%}
        </hgroup>
      </header>
  {% endblock -%}

Vlad Riscutia

unread,
Jan 21, 2016, 11:34:05 AM1/21/16
to tinker...@googlegroups.com
Thanks! I'll post this on tinkerer.me when I get some time. Appreciate your contribution!

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

Reply all
Reply to author
Forward
0 new messages