Skip to content

Commit bbca5ba

Browse files
committed
social links in footer and about page
1 parent a6c86a7 commit bbca5ba

11 files changed

+79
-29
lines changed

_config.yml

+20-17
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,23 @@ minima:
5151

5252
# Generate social links in footer.
5353
social_links:
54-
# - { platform: devto, user_url: "https://dev.to/jekyll" }
55-
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
56-
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
57-
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
58-
- { platform: github, user_url: "https://github.com/nmicht" }
59-
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
60-
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
61-
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
62-
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
63-
- { platform: linkedin, user_url: "https://www.linkedin.com/in/michelletorresv" }
64-
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
65-
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
66-
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
67-
# - { platform: telegram, user_url: "https://t.me/jekyll" }
68-
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
69-
- { platform: x, user_url: "https://x.com/nmicht" }
70-
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
54+
- { platform: linkedin, user_url: "https://www.linkedin.com/in/michelletorresv", footer: true }
55+
- { platform: github, user_url: "https://github.com/nmicht", footer: true }
56+
- { platform: gitlab, user_url: "https://gitlab.com/nmicht", footer: false }
57+
- { platform: devto, user_url: "https://dev.to/nmicht", footer: false }
58+
- { platform: stackoverflow, user_url: "https://stackoverflow.com/users/2945909/nmicht", footer: false }
59+
- { platform: instagram, user_url: "https://www.instagram.com/nmicht", footer: false }
60+
- { platform: x, user_url: "https://x.com/nmicht", footer: true }
61+
- { platform: spotify, user_url: "https://open.spotify.com/user/1276838092", footer: false }
62+
- { platform: goodreads, user_url: "http://www.goodreads.com/nmicht", footer: false }
63+
- { platform: amazon, user_url: "https://www.amazon.de/hz/wishlist/ls/1SZ4R6ZYSMNBC", footer: false }
64+
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll", footer: false }
65+
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll", footer: false }
66+
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll", footer: false }
67+
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ", footer: false }
68+
# - { platform: keybase, user_url: "https://keybase.io/jekyll", footer: false }
69+
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll", footer: false }
70+
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll", footer: false }
71+
# - { platform: telegram, user_url: "https://t.me/jekyll", footer: false }
72+
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb", footer: false }
73+
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll", footer: false }

_includes/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020

2121
<div class="social-links">
22-
{%- include social.html -%}
22+
{%- include social-footer.html -%}
2323
</div>
2424

2525
</div>

_includes/social-footer.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<ul class="social-media-list footer">
2+
{%- for entry in site.minima.social_links -%}
3+
{%- if entry.footer == true -%}
4+
{%- include social-item.html item = entry -%}
5+
{%- endif -%}
6+
{%- endfor -%}
7+
</ul>

_includes/social-icons/amazon.svg

+1
Loading

_includes/social-icons/goodreads.svg

+1
Loading

_includes/social-icons/spotify.svg

+1
Loading

_includes/social-item.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<li>{% assign entry = include.item %}
2+
<a {% unless entry.platform == 'rss' %}rel="me" {% endunless %}href="{{ entry.user_url }}" target="_blank" title="{{ entry.title | default: entry.platform }}">
3+
<svg class="svg-icon grey">
4+
<use xlink:href="{{ '/assets/minima-social-icons.svg#' | append: entry.platform | relative_url }}"></use>
5+
</svg>
6+
<span>{{ entry.platform }}</span>
7+
</a>
8+
</li>

_includes/social.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul class="social-media-list">
2+
{%- for entry in site.minima.social_links -%}
3+
{%- include social-item.html item = entry -%}
4+
{%- endfor -%}
5+
</ul>

_sass/minima/custom-styles.scss

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
$theme-color: #8c408b;
2+
$theme-color-dark: #3B1C3B;
3+
4+
a {
5+
color: $theme-color !important;
6+
7+
&:visited {
8+
color: $theme-color-dark !important;
9+
}
10+
}
11+
12+
.social-media-list {
13+
display: grid !important;
14+
15+
li a:hover {
16+
background-color: lighten($theme-color, 50%);
17+
color: $theme-color;
18+
}
19+
20+
&.footer {
21+
display: table !important;
22+
23+
span {
24+
display: none;
25+
}
26+
}
27+
}

_sass/minima/custom-variables.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Placeholder to allow overriding predefined variables smoothly.
22

3-
$lm-link-base-color: #8c408b;
3+
$lm-link-base-color: #8c408b -50%;

about.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
---
22
layout: page
3-
title: About
3+
title: about
44
permalink: /about/
55
---
66

7-
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
7+
<h2>Random thoughts on tech and life</h2>
88

9-
You can find the source code for Minima at GitHub:
10-
[jekyll][jekyll-organization] /
11-
[minima](https://github.com/jekyll/minima)
9+
<p>
10+
This is <strong>@nmicht</strong>'s blog, where she writes about tech and sometimes journals about life.
11+
Unless you choose to do great things with the content here, don't take it too seriously!!
12+
</p>
1213

13-
You can find the source code for Jekyll at GitHub:
14-
[jekyll][jekyll-organization] /
15-
[jekyll](https://github.com/jekyll/jekyll)
1614

17-
18-
[jekyll-organization]: https://github.com/jekyll
15+
{%- include social.html -%}

0 commit comments

Comments
 (0)