8

I've followed this tutorial and the following ones to create a Github Pages website with Jekyll. Now I have the minima theme, but it seems to be a different version from the official repo, as the parameters in the repo's _config.yml don't work on mine (e.g. for the Twitter link I have a twitter_username parameter while the repo's twitter under social_links doesn't work).

What is weird is that in the footer I have the title parameter repeated twice, as it renders in both the footer-heading and p-name elements in the index.html. Is there any way to change what is rendered to those elements in the html?

peterh
  • 11,875
  • 18
  • 85
  • 108
memememe
  • 663
  • 6
  • 21

4 Answers4

8

When github advise you to copy master files to override minima gem's files "hidden files deep inside somewhere on you file system" by copying master files, they commit a mistake because breaking changes can append.

The best way to override files on a jekyll theme (for now) is to copy gem's file to your working folder.

cd /you/working/jekyll
cp -R `echo "$(bundle info minima --path)/_*/"` .
cp -R "$(bundle info minima --path)/assets/" .

You then have everything needed to override minima in your working folder (_includes, _layouts, _sass and assets folders).

If you have a github page, you just have to commit and push to you publication branch.

bfontaine
  • 18,169
  • 13
  • 73
  • 107
David Jacquel
  • 51,670
  • 6
  • 121
  • 147
  • Do I have to create a Jekyll folder or can I execute those commands in the working directory? – memememe Feb 14 '20 at 18:54
  • 1
    Executing those commands in your existing directory will allow you to override all current 2.5.1 minima files. Everything will be in the same place easy to work with. – David Jacquel Feb 14 '20 at 18:58
  • Is this all that's needed for a Github Pages site? Do you have to rebuild anything, or can you just push your changes to `main`? – ddejohn Sep 27 '21 at 23:30
  • @ddejohn, just commit and push, everything will be build on github. – David Jacquel Sep 29 '21 at 07:32
3

The footer uses site.author. So if you add author: <your name> to your _config.yml, you will see <your name> in the footer.

Suvrat Apte
  • 161
  • 10
0

If you are really minimal and just editing .md files without adding theme files (i.e. relying on the default Jekyll theme GitHub Pages adds), add this to your .md file and it will remove the footer.

<style>
  .footer {
    display: none;
  }
</style>
karel
  • 5,489
  • 46
  • 45
  • 50
Idiot Tom
  • 449
  • 4
  • 5
0

To customize the footer block of your page, you can override the default one from the theme. Copy the original file footer.html to the _includes folder of your repository and customize it as you wish.


See also: How do you remove header on Github Pages?