generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all changed {{color-hover }{sidebar type }{contact}{share-button}}
- Loading branch information
1 parent
6fcfa26
commit b72cd97
Showing
8 changed files
with
174 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- The Footer --> | ||
|
||
<footer | ||
aria-label="Site Info" | ||
class=" | ||
d-flex flex-column justify-content-center text-muted | ||
flex-lg-row justify-content-lg-between align-items-lg-center pb-lg-3 | ||
" | ||
> | ||
<p> | ||
{{- '©' }} | ||
<time>{{ 'now' | date: '%Y' }}</time> | ||
|
||
{% if site.social.links %} | ||
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>. | ||
{% else %} | ||
<em class="fst-normal">{{ site.social.name }}</em>. | ||
{% endif %} | ||
|
||
{% if site.data.locales[include.lang].copyright.brief %} | ||
<span | ||
data-bs-toggle="tooltip" | ||
data-bs-placement="top" | ||
title="{{ site.data.locales[include.lang].copyright.verbose }}" | ||
> | ||
{{- site.data.locales[include.lang].copyright.brief -}} | ||
</span> | ||
{% endif %} | ||
</p> | ||
|
||
<p> | ||
{%- capture _platform -%} | ||
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a> | ||
{%- endcapture -%} | ||
|
||
{%- capture _theme -%} | ||
<a href="https://github.com/cotes2020/jekyll-theme-chirpy" target="_blank" rel="noopener">Chirpy</a> | ||
{%- endcapture -%} | ||
|
||
{{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }} | ||
</p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!-- The Side Bar --> | ||
|
||
<aside aria-label="Sidebar" id="sidebar" class="d-flex flex-column align-items-end"> | ||
<header class="profile-wrapper"> | ||
<a href="{{ '/' | relative_url }}" id="avatar" class="rounded-circle"> | ||
{%- if site.avatar != empty and site.avatar -%} | ||
{%- capture avatar_url -%} | ||
{% include img-url.html src=site.avatar %} | ||
{%- endcapture -%} | ||
<img src="{{- avatar_url -}}" width="112" height="112" alt="avatar" onerror="this.style.display='none'"> | ||
{%- endif -%} | ||
</a> | ||
|
||
<h1 class="site-title"> | ||
<a href="{{ '/' | relative_url }}">{{ site.title }}</a> | ||
</h1> | ||
<p class="site-subtitle fst-italic mb-0">{{ site.tagline }}</p> | ||
</header> | ||
<!-- .profile-wrapper --> | ||
|
||
<nav class="flex-column flex-grow-1 w-100 ps-0"> | ||
<ul class="nav"> | ||
<!-- home --> | ||
<li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}"> | ||
<a href="{{ '/' | relative_url }}" class="nav-link"> | ||
<i class="fa-fw fas fa-home"></i> | ||
<span>{{ site.data.locales[include.lang].tabs.home | upcase }}</span> | ||
</a> | ||
</li> | ||
<!-- the real tabs --> | ||
{% for tab in site.tabs %} | ||
<li class="nav-item{% if tab.url == page.url %}{{ " active" }}{% endif %}"> | ||
<a href="{{ tab.url | relative_url }}" class="nav-link"> | ||
<i class="fa-fw {{ tab.icon }}"></i> | ||
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %} | ||
|
||
<span>{{ site.data.locales[include.lang].tabs.[tab_name] | default: tab.title | upcase }}</span> | ||
</a> | ||
</li> | ||
<!-- .nav-item --> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
|
||
<div class="sidebar-bottom d-flex flex-wrap align-items-center w-100"> | ||
{% unless site.theme_mode %} | ||
<button type="button" class="mode-toggle btn" aria-label="Switch Mode"> | ||
<i class="fas fa-adjust"></i> | ||
</button> | ||
|
||
{% if site.data.contact.size > 1 %} | ||
<span class="icon-border"></span> | ||
{% endif %} | ||
{% endunless %} | ||
|
||
{% for entry in site.data.contact %} | ||
{% case entry.type %} | ||
{% when 'github', 'twitter' %} | ||
{%- capture url -%} | ||
https://{{ entry.type }}.com/{{ site[entry.type].username }} | ||
{%- endcapture -%} | ||
{% when 'linkedin' %} | ||
{%- capture url -%} | ||
https://{{ entry.type }}.com/in/{{ site[entry.type].username }} | ||
{%- endcapture -%} | ||
{% when 'telegram' %} | ||
{%- capture url -%} | ||
https://t.me/{{ site[entry.type].channel-id }} | ||
{%- endcapture -%} | ||
|
||
{% when 'email' %} | ||
{% assign email = site.social.email | split: '@' %} | ||
{%- capture url -%} | ||
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@') | ||
{%- endcapture -%} | ||
{% when 'rss' %} | ||
{% assign url = '/feed.xml' | relative_url %} | ||
{% else %} | ||
{% assign url = entry.url %} | ||
{% endcase %} | ||
|
||
{% if url %} | ||
<a href="{{ url }}" aria-label="{{ entry.type }}" {% assign link_types = '' %} {% unless entry.noblank %} | ||
target="_blank" {% assign link_types = 'noopener noreferrer' %} {% endunless %} {% if entry.type == 'mastodon' %} | ||
{% assign link_types = link_types | append: ' me' | strip %} {% endif %} {% unless link_types == empty %} | ||
rel="{{ link_types }}" {% endunless %}> | ||
<i class="{{ entry.icon }}"></i> | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
<!-- .sidebar-bottom --> | ||
</aside> | ||
<!-- #sidebar --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters