Browse Source

Merge branch 'master' into 'master'

A gitlab sample page should have a sample "gitlab" user link

See merge request pages/jekyll!20
Achilleas Pipinellis 5 years ago
parent
commit
b1742c2ad5
4 changed files with 9 additions and 0 deletions
  1. 1 0
      _config.yml
  2. 6 0
      _includes/footer.html
  3. 1 0
      _includes/icon-gitlab.html
  4. 1 0
      _includes/icon-gitlab.svg

+ 1 - 0
_config.yml

@@ -16,6 +16,7 @@ baseurl: "/jekyll" # the subpath of your site, e.g. /blog
 url: "/" # the base hostname & protocol for your site
 twitter_username: jekyllrb
 github_username:  jekyll
+gitlab_username:  pages
 
 # Outputting
 permalink: /:categories/:year/:month/:day/:title

+ 6 - 0
_includes/footer.html

@@ -14,6 +14,12 @@
 
       <div class="footer-col footer-col-2">
         <ul class="social-media-list">
+          {% if site.gitlab_username %}
+          <li>
+            {% include icon-gitlab.html username=site.gitlab_username %}
+          </li>
+          {% endif %}
+
           {% if site.github_username %}
           <li>
             {% include icon-github.html username=site.github_username %}

+ 1 - 0
_includes/icon-gitlab.html

@@ -0,0 +1 @@
+<a href="https://gitlab.com/{{ include.username }}"><span class="icon icon--gitlab">{% include icon-gitlab.svg %}</span><span class="username">{{ include.username }}</span></a>

+ 1 - 0
_includes/icon-gitlab.svg

@@ -0,0 +1 @@
+<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M15.97 9.058l-.895-2.756L13.3.842c-.09-.282-.488-.282-.58 0L10.946 6.3H5.054L3.28.842C3.188.56 2.79.56 2.7.84L.924 6.3.03 9.058c-.082.25.008.526.22.682L8 15.37l7.75-5.63c.212-.156.302-.43.22-.682"/></svg>