Skip to content

Commit

Permalink
rebase the blog theme on primula
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Jan 17, 2022
1 parent 6db54d6 commit 6a742c3
Show file tree
Hide file tree
Showing 95 changed files with 12,527 additions and 7,907 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ source 'https://rubygems.org'

group :jekyll_plugins do
gem 'jekyll-archives'
gem "jekyll-feed", "~> 0.6"
gem "jekyll-paginate-v2"
gem 'jekyll-tagging'
end

gem "webrick", "~> 1.7"
32 changes: 22 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ GEM
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.9)
em-websocket (0.5.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.3)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
http_parser.rb (0.8.0)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
jekyll (4.2.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -31,40 +31,52 @@ GEM
terminal-table (~> 2.0)
jekyll-archives (2.2.1)
jekyll (>= 3.6, < 5.0)
jekyll-feed (0.16.0)
jekyll (>= 3.7, < 5.0)
jekyll-paginate-v2 (3.0.0)
jekyll (>= 3.0, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-tagging (1.1.0)
nuggets
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.0)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
nuggets (1.6.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
rouge (3.27.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)
unicode-display_width (1.8.0)
webrick (1.7.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
jekyll-archives
jekyll-feed (~> 0.6)
jekyll-paginate-v2
jekyll-tagging
webrick (~> 1.7)

BUNDLED WITH
2.2.26
2.3.5
43 changes: 37 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,47 @@ smooth-scroll: false
########### Plugins ###########
####################################
plugins:
- jekyll-archives # Sorry, not GitHub pages friendly!
- jekyll-feed
- jekyll-paginate-v2
- jekyll-archives

permalink: /:year/:month/:day/:title/

jekyll-archives:
enabled:
- categories
- tags
layout: 'archive'
enabled: all
layout: category
permalinks:
category: '/category/:name/'
tag: '/tag/:name/'

pagination:
enabled: true
debug: true
collection: 'posts'
per_page: 10
permalink: '/pages/:num/'
title: ':title - page :num'
limit: 0
sort_field: 'date'
sort_reverse: true
tag: ''
locale: ''
trail:
before: 2
after: 2
extension: 'html'
indexpage: 'blog'

autopages:
enabled: true
tags:
layouts:
- 'tag.html'
title: '#:tag'
permalink: '/tag/:tag'

tag_page_layout: tag
tag_page_dir: tag
tag_permalink_style: pretty

#######################################################
#######################################################
Expand All @@ -57,6 +86,7 @@ lang: en-US
header-title: Plug and play. <strong>REALLY</strong>.
# Header Tagline
header-tagline: OpenDeck DIY MIDI platform
blog-desc: Shantea Controls Blog

####################################
###### CTA Header Buttons ######
Expand All @@ -77,6 +107,7 @@ header-secondary-button:
####################################
youtube: 'https://youtube.com/shanteacontrols'
facebook: 'https://www.facebook.com/shanteacontrolsmidi'
github: 'https://github.com/shanteacontrols/OpenDeck'

#####################################
############# About #############
Expand Down
48 changes: 48 additions & 0 deletions _includes/blog_content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% include hero_area.html %}
<div class="main-content-area pb-100 clearfix">
<div class="container">
<div class="row">
<div class="col-lg-10 col-md-10 offset-md-2 offset-lg-2">
{% for post in paginator.posts %} {% if forloop.index !=1 %}
<div
class="blog-list wow fadeIn"
data-wow-delay="100ms"
data-wow-duration=".5s"
>
<div class="list-block block-{{forloop.index}}">
<span>{{post.date | date_to_long_string}}</span>
<h2><a href="{{post.url}}">{{post.title}}</a></h2>
<p>{{post.excerpt | truncatewords:30 }}</p>
<div class="btn-read"><a href="{{post.url}}">Read More</a></div>
</div>
</div>
{% endif %} {% endfor %}
</div>
</div>
{% if paginator.total_pages > 1 %}
<div class="row">
<div class="col-lg-12">
<div class="post-pagination pt-100 text-center clearfix">
{% if paginator.previous_page %}
<p class="float-left">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}"
>Prev {{pre}}
</a>
</p>
{% endif %}
<p class="page-count">
Page {{paginator.page}} of {{paginator.total_pages}}
</p>
{% if paginator.next_page %}
<p class="float-right">
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}"
>Next</a
>
</p>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
86 changes: 86 additions & 0 deletions _includes/footer-blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<footer>
<div class="footer-area clearfix">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="footer-logo pb-100 pt-100 text-center">
<a href="{{site.url}}">
{% if site.logo_url %}
<img src="{{site.logo_url}}" alt="{{site.title}}"/>
{% else %}
<img src="{{site.baseurl}}/images/logo_notext_inv.svg" alt="{{site.title}}"/>
{% endif %}
</a>
</div>
</div>
</div>
<div class="row pb-60">
<div class="col-lg-3 col-md-6">
<div class="footer-widget">
<div class="widget-title">
<h4> About </h4>
</div>
<div class="widget-text">
<p>{{site.blog-desc}}</p>
<div class="social-link">
<ul>
{% if site.facebook_username %}
<li><a href="https://facebook.com/{{site.facebook_username}}"><i class="fa fa-facebook-f"></i></a></li>
{% endif %}
{% if site.facebook_username %}
<li><a href="https://twitter.com/{{site.twitter_username}}"><i class="fa fa-twitter"></i></a></li>
{% endif %}
{% if site.facebook_username %}
<li><a href="https://plus.google.com/{{site.google_plus_username}}"><i class="fa fa-google-plus"></i></a></li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>

<div class="col-lg-3 col-md-6">
<div class="footer-widget">
<div class="widget-title">
<h4>Recent posts</h4>
</div>
<div class="widget-text">
<div class="r-post">
<ul>
{% for post in site.posts limit:4 %}
<li><a href="{{post.url}}">{{post.title}} </a> </li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="footer-widget">
<div class="widget-title">
<h4> Links</h4>
</div>
<div class="widget-text">
<div class="widget-link">
<ul>
<ul>
<li><a href="/" target="_blank">Main page</a></li>
<li><a href="{{site.youtube}}" target="_blank">YouTube</a></li>
<li><a href="{{site.facebook}}" target="_blank">Facebook</a></li>
<li><a href="{{site.github}}" target="_blank">GitHub</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="footer-text text-center">
<p class="footer-address"> &copy; {{ site.time | date: '%Y' }} {{ site.title }} | Developed by <a href="https://themeix.com">themeix</a></p>
</div>
</div>
</div>
</div>
</div>
</footer>
File renamed without changes.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">

<!-- Importing Styles -->
<link rel="stylesheet" href="{{ site.baseurl }}/css/style.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/landing/style.css">
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.1.7/css/lightgallery-bundle.min.css" />

<style>
Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html → _includes/header-landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<li><a href="#parallax-features">SPECS</a></li>
<li><a href="#portfolio">GALLERY</a></li>
<li><a href="#testimonials">TESTIMONIALS</a></li>
<li><a href="#blog">BLOG</a></li>
<li><a href="/blog/blog.html" target="_blank">BLOG</a></li>
<li><a href="#boards">BOARDS</a></li>
<li><a href="#contact">CONTACT</a></li>
</ul>
Expand Down
69 changes: 0 additions & 69 deletions _includes/header-page.html

This file was deleted.

Loading

0 comments on commit 6a742c3

Please sign in to comment.