For demonstration purposes I’ve created a brand new project with jekyll new .
It creates a new project with the minima theme.
in the includes/footer.html
there is:
{%- include social.html -%}
in the social.html
there is:
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
In the _config.yml
there is:
twitter_username: jekyllrb
github_username: jekyll
However, the github and twitter links don’t show up in the footer when using bundle exec jekyll serve
-
minima (2.5.0)
Summary: A beautiful, minimal theme for Jekyll.
Homepage: https://github.com/jekyll/minima
Path: /home/user/.gem/gems/minima-2.5.0 -
jekyll (3.8.3)
Summary: A simple, blog aware, static site generator.
Homepage: https://github.com/jekyll/jekyll
Path: /home/user/.gem/ruby/2.3.0/gems/jekyll-3.8.3