Skip to content

Commit

Permalink
Merge pull request #160 from mhagnumdw/feed_description
Browse files Browse the repository at this point in the history
Feed title and description
  • Loading branch information
sylhare authored May 29, 2019
2 parents 417f277 + 75ff540 commit e7fcc28
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ description: "A website with blog posts and pages" # used by search engines
# THEME-SPECIFIC CONFIGURATION
theme_settings:
# Meta
title: Type on Strap # blog's title
avatar: assets/img/triangle.svg
color_image: /assets/img/lineart.png # In post when you set color
favicon: assets/favicon.ico
Expand Down
4 changes: 2 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">

<!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="{{ site.theme_settings.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ 'feed.xml' | absolute_url }}"/>

{% if page.bootstrap %}
<!-- Bootstrap-4.1.3 isolation CSS -->
Expand Down Expand Up @@ -60,7 +60,7 @@
{% seo %}
<!-- Manual seo tags -->
<!--
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme_settings.title }}</title>
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme_settings.description }}{% endif %}">
-->
</head>
4 changes: 2 additions & 2 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</a>

<h1 class="site-title">
<a aria-label="{{ site.theme_settings.title }}" href="{{ '/' | relative_url }}">
{{ site.theme_settings.title }}
<a aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
{{ site.title }}
</a>
</h1>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/feed.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.theme_settings.title | xml_escape }}</title>
<title>{{ site.title | xml_escape }}</title>
<atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml"/>
<link>{{ "/" | absolute_url }}</link>
<description>{{ site.theme_settings.description | xml_escape }}</description>
<description>{{ site.description | xml_escape }}</description>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
{% for post in site.posts limit:15 %}
<item>
Expand Down

0 comments on commit e7fcc28

Please sign in to comment.