aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/jekyll-theme/sidebar/about.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/jekyll-theme/sidebar/about.html')
-rw-r--r--_includes/jekyll-theme/sidebar/about.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/_includes/jekyll-theme/sidebar/about.html b/_includes/jekyll-theme/sidebar/about.html
new file mode 100644
index 0000000..9806b87
--- /dev/null
+++ b/_includes/jekyll-theme/sidebar/about.html
@@ -0,0 +1,25 @@
+{% capture about_content %}
+{% assign project_desc = site.settings.project.description %}
+{% unless project_desc %}
+ {% if site.github %}
+ {% assign project_desc = site.github.project_tagline %}
+ {% endif %}
+{% endunless %}
+{% if project_desc %}
+ {% capture project_desc %}{{ project_desc }}. {% endcapture %}
+{% endif %}
+{% capture project_desc %}{{ project_desc }}Feel free to contribute or contact me.{% endcapture %}
+<p>{{ project_desc }}</p>
+<div class="list-group wide-enough">
+ {% if site.github %}
+ {% assign github_link = site.settings.navbar.github.link | default: 'GitHub' %}
+ {% assign github_icon = site.settings.navbar.github.icon | default: 'globe' %}
+ {% capture github_icon %}<span class="glyphicon glyphicon-{{ github_icon }}"></span>&nbsp;{% endcapture %}
+ <a class="list-group-item" href="{{ site.github.repository_url }}" target="_blank">{{ github_icon }}{{ github_link }}</a>
+ {% endif %}
+ {% assign author_email = site.settings.author.email | default: 'John.Doe@example.com' %}
+ <a class="list-group-item" href="mailto:{{ author_email }}"><span class="glyphicon glyphicon-envelope"></span>&nbsp;{{ author_email }}</a>
+</div>
+{% endcapture %}
+
+{% include jekyll-theme/sidebar/entry.html header='About' content=about_content %}