aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-05-03 04:16:28 +0300
committerValentin Popov <info@valentineus.link>2019-05-03 04:16:28 +0300
commitfdf1029737542d8eb014f37fd1d07bad13974964 (patch)
treecf5fc971309e63c42d8493430de4c622d7eafd98 /_includes
parent5668edea38da9fd1cad629db9c768ff19e62e094 (diff)
downloadpopov.link-fdf1029737542d8eb014f37fd1d07bad13974964.tar.xz
popov.link-fdf1029737542d8eb014f37fd1d07bad13974964.zip
Have added sidebar panel
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes')
-rw-r--r--_includes/aside.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/_includes/aside.html b/_includes/aside.html
new file mode 100644
index 0000000..91160b2
--- /dev/null
+++ b/_includes/aside.html
@@ -0,0 +1,41 @@
+<aside class="sidebar" role="navigation">
+ <div class="avatar">
+ <img alt="Avatar" src="{{ site.avatar | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}" />
+ </div>
+
+ <p>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</p>
+
+ {% for link in site.data.aside_links %}
+ <p>
+ <span>{{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
+
+ <a href="{{ link.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}" target="_blank">
+ {{ link.tag | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
+ </a>
+ </p>
+ {% endfor %}
+
+ <h4>Recent Posts</h4>
+
+ {% for post in site.posts limit: 5 %}
+ <div>
+ <small>
+ <time datetime="{{ post.date | date_to_xmlschema }}">
+ {{ post.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
+ </time>
+ </small>
+
+ <a href="{{ post.url | relative_url | uri_escape }}">
+ {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
+ </a>
+ </div>
+ {% endfor %}
+
+ <h4>License</h4>
+
+ <p>
+ The content for this site is <a href="https://creativecommons.org/licenses/by-nc/3.0/" target="_blank">CC BY-NC 3.0</a>.
+ The <a href="{{ site.repos | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}" target="_blank">code</a>
+ for this site is <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a>.
+ </p>
+</aside>