how to automatically remove "Powered by ..." in Pelican CMS?

1.7k views Asked by At

When generating content using Pelican, everything is Ok except that I see in the footer "Proudly powered by Pelican ..."

I want to get rid of it. I know I can remove it from the generated files manually, but that is tedious.

Is there a way to prevent the generation of the above phrase by asking Pelican to do that for me? Some magic Pelican command or settings, maybe?

4

There are 4 answers

0
keul On

Probably is not the answer you are looking for, but if you are already customizing the CSS, think about usgin CSS to hide the section.

0
syntonym On

It's part of the theme. Either modify it or choose another.

0
AudioBubble On

It all depends on which theme you are using.

You must be granted a permission to do that if you decide to publish your content. Check the license under which a given theme is distributed by its author. You can design your own theme though.

SoMA theme, for instance, as the default theme, uses base.html file which is inherited by other layout components using {% extends "base.html" %}.

<footer id="contentinfo" class="body">
    <address id="about" class="vcard body">
        Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
        which takes great advantage of <a href="http://python.org">Python</a>.
    </address><!-- /#about -->
</footer><!-- /#contentinfo -->

You may find some other themes (actually I did not find on the ones hosted on GitHub), use an explicit footer.html file, search for it and modify at your will.

In all cases, there is no predefined magic pelican command that does what you want. That is done through the theme you choose to use.

0
usererror On

In your theme template, there will be a line like,

{% extends "!simple/base.html" %}

This base.html is used as the foundation for creating the theme. This file is available in : %PYTHON%\Lib\site-packages\pelican\themes\simple\templates

You can edit this file to remove the "Powered By.."