|
2 | 2 | <div class="container"> |
3 | 3 | {% assign current_lang = page.lang | default: site.default_lang %} |
4 | 4 | {% assign lang_data = site.data[current_lang] %} |
5 | | - |
| 5 | + |
6 | 6 | <div class="footer-content"> |
7 | | - <div class="footer-section"> |
8 | | - <h3>{{ lang_data.site.title }}</h3> |
9 | | - <p>{{ lang_data.site.description }}</p> |
10 | | - <div class="social-links"> |
11 | | - {% if site.github_username %} |
12 | | - <a href="https://github.com/{{ site.github_username }}" class="social-link" target="_blank" rel="noopener"> |
13 | | - <i class="fab fa-github"></i> |
14 | | - </a> |
15 | | - {% endif %} |
16 | | - {% if site.linkedin_username %} |
17 | | - <a href="https://linkedin.com/in/{{ site.linkedin_username }}" class="social-link" target="_blank" rel="noopener"> |
18 | | - <i class="fab fa-linkedin"></i> |
19 | | - </a> |
20 | | - {% endif %} |
21 | | - {% if site.author.email %} |
22 | | - <a href="mailto:{{ site.author.email }}" class="social-link"> |
23 | | - <i class="fas fa-envelope"></i> |
24 | | - </a> |
25 | | - {% endif %} |
26 | | - <a href="{{ '/feed.xml' | relative_url }}" class="social-link" title="RSS Feed"> |
27 | | - <i class="fas fa-rss"></i> |
| 7 | + <div class="social-links"> |
| 8 | + {% if site.github_username %} |
| 9 | + <a href="https://github.com/{{ site.github_username }}" class="social-link" target="_blank" rel="noopener" title="GitHub"> |
| 10 | + <svg viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg> |
28 | 11 | </a> |
29 | | - </div> |
30 | | - </div> |
31 | | - |
32 | | - <div class="footer-section"> |
33 | | - <h4>{{ lang_data.footer.categories_title }}</h4> |
34 | | - <ul class="footer-links"> |
35 | | - {% assign lang_categories = '' | split: '' %} |
36 | | - {% for post in site.posts %} |
37 | | - {% assign post_lang = post.lang | default: site.default_lang %} |
38 | | - {% if post_lang == current_lang %} |
39 | | - {% for category in post.categories %} |
40 | | - {% unless lang_categories contains category %} |
41 | | - {% assign lang_categories = lang_categories | push: category %} |
42 | | - {% endunless %} |
43 | | - {% endfor %} |
44 | | - {% endif %} |
45 | | - {% endfor %} |
46 | | - {% assign sorted_categories = lang_categories | sort %} |
47 | | - {% for category in sorted_categories limit:5 %} |
48 | | - <li> |
49 | | - {% assign cat_count = 0 %} |
50 | | - {% for post in site.posts %} |
51 | | - {% assign post_lang = post.lang | default: site.default_lang %} |
52 | | - {% if post_lang == current_lang and post.categories contains category %} |
53 | | - {% assign cat_count = cat_count | plus: 1 %} |
54 | | - {% endif %} |
55 | | - {% endfor %} |
56 | | - <a href="{% if current_lang != site.default_lang %}/{{ current_lang }}{% endif %}/categories#{{ category | slugify }}"> |
57 | | - {{ category }} ({{ cat_count }}) |
58 | | - </a> |
59 | | - </li> |
60 | | - {% endfor %} |
61 | | - </ul> |
62 | | - </div> |
63 | | - |
64 | | - <div class="footer-section"> |
65 | | - <h4>{{ lang_data.footer.recent_posts_title }}</h4> |
66 | | - <ul class="footer-links"> |
67 | | - {% assign lang_posts = '' | split: '' %} |
68 | | - {% for post in site.posts %} |
69 | | - {% assign post_lang = post.lang | default: site.default_lang %} |
70 | | - {% if post_lang == current_lang %} |
71 | | - {% assign lang_posts = lang_posts | push: post %} |
72 | | - {% endif %} |
73 | | - {% endfor %} |
74 | | - {% for post in lang_posts limit:5 %} |
75 | | - <li> |
76 | | - <a href="{{ post.url | relative_url }}"> |
77 | | - {{ post.title | truncate: 30 }} |
78 | | - </a> |
79 | | - </li> |
80 | | - {% endfor %} |
81 | | - </ul> |
82 | | - </div> |
83 | | - |
84 | | - <div class="footer-section"> |
85 | | - <h4>{{ lang_data.footer.information_title }}</h4> |
86 | | - <ul class="footer-links"> |
87 | | - <li><a href="{% if current_lang != site.default_lang %}/{{ current_lang }}{% endif %}/about">{{ lang_data.footer.about_link }}</a></li> |
88 | | - <li><a href="{% if current_lang != site.default_lang %}/{{ current_lang }}{% endif %}/archive">{{ lang_data.footer.archive_link }}</a></li> |
89 | | - <li><a href="{{ '/privacy' | relative_url }}">{{ lang_data.footer.privacy_link }}</a></li> |
90 | | - <li><a href="{{ '/sitemap.xml' | relative_url }}">{{ lang_data.footer.sitemap_link }}</a></li> |
91 | | - <li><a href="{{ '/feed.xml' | relative_url }}">{{ lang_data.footer.rss_link }}</a></li> |
92 | | - </ul> |
93 | | - </div> |
94 | | - </div> |
95 | | - |
96 | | - <div class="footer-bottom"> |
97 | | - <div class="footer-bottom-content"> |
98 | | - <p>© {{ 'now' | date: "%Y" }} {{ lang_data.site.title }}. {{ lang_data.footer.copyright }}</p> |
99 | | - <p> |
100 | | - <a href="https://jekyllrb.com/" target="_blank" rel="noopener">Jekyll</a>과 |
101 | | - <a href="https://pages.github.com/" target="_blank" rel="noopener">GitHub Pages</a>로 {{ lang_data.footer.powered_by }} |
102 | | - </p> |
| 12 | + {% endif %} |
| 13 | + {% if site.linkedin_username %} |
| 14 | + <a href="https://linkedin.com/in/{{ site.linkedin_username }}" class="social-link" target="_blank" rel="noopener" title="LinkedIn"> |
| 15 | + <svg viewBox="0 0 16 16"><path d="M13.632 13.635h-2.37V9.922c0-.886-.018-2.025-1.234-2.025-1.235 0-1.424.964-1.424 1.96v3.778h-2.37V6H8.51v1.04h.03c.318-.6 1.092-1.233 2.247-1.233 2.4 0 2.845 1.58 2.845 3.637v4.188zM3.558 4.955c-.762 0-1.376-.617-1.376-1.377 0-.758.614-1.375 1.376-1.375.76 0 1.376.617 1.376 1.375 0 .76-.617 1.377-1.376 1.377zm1.188 8.68H2.37V6h2.376v7.635zM14.816 0H1.18C.528 0 0 .516 0 1.153v13.694C0 15.484.528 16 1.18 16h13.635c.652 0 1.185-.516 1.185-1.153V1.153C16 .516 15.467 0 14.815 0z"/></svg> |
| 16 | + </a> |
| 17 | + {% endif %} |
| 18 | + {% if site.author.email %} |
| 19 | + <a href="mailto:{{ site.author.email }}" class="social-link" title="Email"> |
| 20 | + <svg viewBox="0 0 16 16"><path d="M1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0114.25 14H1.75A1.75 1.75 0 010 12.25v-8.5C0 2.784.784 2 1.75 2zM1.5 3.75v.736l6.5 3.248 6.5-3.248V3.75a.25.25 0 00-.25-.25H1.75a.25.25 0 00-.25.25zm13 2.014l-6.5 3.248L1.5 5.764v6.486c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25V5.764z"/></svg> |
| 21 | + </a> |
| 22 | + {% endif %} |
| 23 | + <!-- RSS feed available at /feed.xml --> |
103 | 24 | </div> |
| 25 | + <p class="footer-copyright">© {{ 'now' | date: "%Y" }} {{ lang_data.site.title }}</p> |
104 | 26 | </div> |
105 | 27 | </div> |
106 | 28 | </footer> |
0 commit comments