简体   繁体   English

如何删除“Powered by Jekyll with Chirpy theme”。

[英]How to Remove "Powered by Jekyll with Chirpy theme."

I want to remove the "Powered by Jekyll with Chirpy theme."我想删除“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 .当我在本地运行bundle exec jekyll s并从C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/jekyll-theme-chirpy-5.1.0/\_includes/footer.html下的文件中删除以下内容时,它可以工作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.但是,它仍然显示在我的 Github 页面上。 PS: AFAIK we can remove the "Powered by.." under the license. PS:AFAIK 我们可以删除许可证下的“Powered by..”。

Add a changed footer file _includes/footer.html to your repository to overwrite the original theme's footer file.将更改后的页脚文件_includes/footer.html添加到您的存储库以覆盖原始主题的页脚文件。 This will be used by the GitHub pages deployment.这将由 GitHub 页面部署使用。

The instructions on docs.github.com on how to change the layout explain it. docs.github.com 上有关如何更改布局的说明进行了说明。 The footer adjustment works the same.页脚调整的工作原理相同。

Regarding the license, the theme's MIT license contains:关于许可证,主题的 MIT 许可证包含:

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.对于我的网站,我只编辑了 en.yml 文件,请参见附图。 You can modify the whole of the files under locale.您可以在语言环境下修改整个文件。 The param value is coming from the _config.yml file.参数值来自 _config.yml 文件。

#meta: Powered by:PLATFORM and with:THEME theme. #meta:由:PLATFORM 提供支持,并带有:THEME 主题。

meta: Powered by Open Source CMS. meta:由开源 CMS 提供支持。

en.yml en.yml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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