Recycling information about the author

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-05-15 15:33:05 +04:00
parent 70ce3d517d
commit e8189ad97e
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
4 changed files with 15 additions and 10 deletions

View File

@ -42,6 +42,12 @@ title: "Personal blog"
rss: "/atom.xml"
lang: "ru"
# About the author
author:
email: "info@valentineus.link"
name: "Valentin Popov"
url: "http://valentineus.link"
# Plugins
plugins:
- "jekyll-paginate"

View File

@ -1,3 +0,0 @@
email: "info@valentineus.link"
name: "Valentin Popov"
url: "http://valentineus.link"

View File

@ -9,6 +9,6 @@ layout: default
<p>Sorry, this page does not exist.</p>
<p>
<a class="btn btn-lg btn-primary" role="button" href="/">Home page</a>
<a class="btn btn-lg btn-default" role="button" href="mailto:{{ site.data.author_info.email | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">Contact</a>
<a class="btn btn-lg btn-default" role="button" href="mailto:{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">Contact</a>
</p>
</div>

View File

@ -1,6 +1,8 @@
---
permalink: "atom.xml"
layout: compress
title: "RSS"
show: true
---
<?xml version="1.0" encoding="utf-8"?>
@ -19,9 +21,9 @@ layout: compress
<!-- Author -->
<author>
<email>{{ site.data.author_info.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
<name>{{ site.data.author_info.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
<uri>{{ site.data.author_info.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
<email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
<name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
<uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
</author>
{% for item in site.posts %}
@ -39,9 +41,9 @@ layout: compress
<!-- Author -->
<author>
<email>{{ site.data.author_info.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
<name>{{ site.data.author_info.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
<uri>{{ site.data.author_info.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
<email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
<name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
<uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
</author>
<!-- Content -->