简体   繁体   中英

How to Remove "Powered by Jekyll with Chirpy theme."

I want to remove the "Powered by Jekyll with Chirpy theme." appearing at the footer of every page with other customized messages.

It works when I run bundle exec jekyll s locally and I remove the following from the file under C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-theme-chirpy-5.1.0/\_includes/footer.html .

    <div class="footer-right">
      <p class="mb-0">
        {% capture _platform %}
          <a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
        {% endcapture %}

        {% capture _theme %}
          <a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a>
        {% endcapture %}

        {{ site.data.locales[lang].meta
          | default: 'Powered by :PLATFORM with :THEME theme.'
          | replace: ':PLATFORM', _platform | replace: ':THEME', _theme
        }}

      </p>
    </div>

However, it still shows on my Github page. PS: AFAIK we can remove the "Powered by.." under the license.

Add a changed footer file _includes/footer.html to your repository to overwrite the original theme's footer file. This will be used by the GitHub pages deployment.

The instructions on docs.github.com on how to change the layout explain it. The footer adjustment works the same.

Regarding the license, the theme's MIT license contains:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

I guess it's not ok to remove the copyright completely . You can remove it from the footer but you should keep it somewhere.

The meta information is coming from the files under the (language) locales. For my site I have edited only the en.yml file see the attached image. You can modify the whole of the files under locale. The param value is coming from the _config.yml file.

#meta: Powered by:PLATFORM and with:THEME theme.

meta: Powered by Open Source CMS.

en.yml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM