Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing the footer in GitHub pages jekyll's default minima theme

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?

like image 463
memememe Avatar asked Feb 14 '20 17:02

memememe


3 Answers

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 `echo "$(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.

like image 118
David Jacquel Avatar answered Oct 21 '22 16:10

David Jacquel


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

like image 3
Suvrat Apte Avatar answered Oct 21 '22 17:10

Suvrat Apte


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>
like image 1
Idiot Tom Avatar answered Oct 21 '22 17:10

Idiot Tom