News and RSS

- reworked News section
- added RSS feed
This commit is contained in:
Hendrik Blöß committed 2017-07-13 22:42:32 +02:00
1 parent 9d39082191
commit ebceabb723
8 files changed
+144 -85

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
</a>
</li>
<li>
<a href="#">
<a href="{{site.baseurl}}/feed.xml">
<i class="fa fa-rss" aria-hidden="true"></i>
</a>
</li>
+12 -14
View File
@@ -1,22 +1,20 @@
<!-- Hero Area Section -->
<section id="hero-area">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="col-md-6 col-sm-6 col-xs-12 animated fadeInLeft delay-0-5 hero-text">
<h1 class="title">{{site.title}}</h1>
<h2 class="subtitle">{{site.subtitle}}</h2>
<p>{{ site.description }}</p>
<a href="#download" class="btn btn-primary btn-lg blue-bg">Download Now!</a>
<a href="#about" class="btn btn-common btn-lg">Learn More</a>
</div>
<img class="col-md-6 col-sm-6 col-xs-12 animated fadeInRight" src="{{site.baseurl}}/img/screenshot_sing.png" alt="">
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="col-md-6 col-sm-6 col-xs-12 animated fadeInLeft delay-0-5 hero-text">
<h1 class="title">{{site.title}}</h1>
<h2 class="subtitle">{{site.subtitle}}</h2>
<p>{{ site.description }}</p>
<a href="#download" class="btn btn-primary btn-lg blue-bg">Download Now!</a>
<a href="#about" class="btn btn-common btn-lg">Learn More</a>
</div>
<img class="col-md-6 col-sm-6 col-xs-12 animated fadeInRight" src="{{site.baseurl}}/img/screenshot_sing.png" alt="">
</div>
</div>
</div>
</section>
<!-- Hero Area Section End-->
+48 -54
View File
@@ -2,59 +2,53 @@
{% assign post_1 = site.posts[0] %}
{% assign post_2 = site.posts[1] %}
{% assign post_3 = site.posts[2] %}
<section id="{{ page.section-type }}">
<div class="container">
<div class="row">
<h1 class="title">{{ page.title }}</h1>
{% if post_1 != nil %}
<div class="col-md-8">
<h2><a href="{{site.baseurl}}{{ post_1.url }}">{{post_1.title}} </a></h2>
<p>Published on {{ post_1.date | date: "%Y-%m-%d"}} by {{ post_1.author }}</p>
<img src="{{site.baseurl}}/img/posts/{{ post_1.image }}" class="img-responsive" />
{% if post_1.content contains '<!--more-big-->' %}
{{ post_1.content | split:'<!--more-big-->' | first | markdownify}}
<a href="{{site.baseurl}}{{ post_1.url }}">read more</a>
{% else %}
{{ post_1.content | truncatewords: site.big-post-preview-words, "" | markdownify }}
{% if (post_1.content | number_of_words) > site.big-post-preview-words %}
<a href="{{site.baseurl}}{{ post_1.url }}">read more</a>
{% endif %}
{% endif %}
</div>
{% endif %}
<div class="col-md-4">
{% if post_2 != nil %}
<div class="col-lg-12">
<h3><a href="{{site.baseurl}}{{ post_2.url }}">{{ post_2.title }}</a></h3>
<p>Published on {{ post_2.date | date: "%Y-%m-%d"}} by {{ post_2.author }}</p>
{% if post_2.content contains '<!--more-->' %}
{{ post_2.content | split:'<!--more-->' | first | markdownify}}
<a href="{{site.baseurl}}{{ post_2.url }}">read more</a>
{% else %}
{{ post_2.content | truncatewords: site.post-preview-words, "" | markdownify }}
{% if (post_2.content | number_of_words) > site.post-preview-words %}
<a href="{{site.baseurl}}{{ post_2.url }}">read more</a>
{% endif %}
{% endif %}
</div>
{% endif %}
{% if post_3 != nil %}
<div class="col-lg-12">
<h3><a href="{{site.baseurl}}{{ post_3.url }}">{{ post_3.title }}</a></h3>
<p>Published on {{ post_3.date | date: "%Y-%m-%d"}} by {{ post_3.author }}</p>
{% if post_3.content contains '<!--more-->' %}
{{ post_3.content | split:'<!--more-->' | first | markdownify}}
<a href="{{site.baseurl}}{{ post_3.url }}">read more</a>
{% else %}
{{ post_3.content | truncatewords: site.post-preview-words, "" | markdownify }}
{% if (post_3.content | number_of_words) > site.post-preview-words %}
<a href="{{site.baseurl}}{{ post_3.url }}">read more</a>
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
</div>
<section id="{{ page.section-type }}">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="title">{{ page.title }}</h1>
{% if post_1 != nil %}
<div class="col-md-8 news-card">
<img src="{{site.baseurl}}/img/posts/{{ post_1.image }}" class="img-responsive" />
<div class="news-card-text dark-bg">
<div class="post-info red-text">
<i class="fa fa-calendar" aria-hidden="true"></i>
{{ post_1.date | date_to_long_string }}
</div>
<h2><a href="{{site.baseurl}}{{ post_1.url }}">{{post_1.title}} </a></h2>
</div>
</section>
</div>
{% endif %}
<div class="col-md-4">
{% if post_2 != nil %}
<div class="col-lg-12 news-card">
<img src="{{site.baseurl}}/img/posts/{{ post_2.image }}" class="img-responsive" />
<div class="news-card-text dark-bg">
<div class="post-info red-text">
<i class="fa fa-calendar" aria-hidden="true"></i>
{{ post_2.date | date_to_long_string }}
</div>
<h3><a href="{{site.baseurl}}{{ post_2.url }}">{{post_2.title}} </a></h3>
</div>
</div>
{% endif %}
{% if post_3 != nil %}
<div class="col-lg-12 news-card">
<img src="{{site.baseurl}}/img/posts/{{ post_2.image }}" class="img-responsive" />
<div class="news-card-text dark-bg">
<div class="post-info red-text">
<i class="fa fa-calendar" aria-hidden="true"></i>
{{ post_3.date | date_to_long_string }}
</div>
<h3><a href="{{site.baseurl}}{{ post_3.url }}">{{post_3.title}} </a></h3>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
<!-- Help Section End -->