Skip to content

Commit

Permalink
gallery changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Feb 16, 2020
1 parent dadc596 commit a95093f
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 75 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### devlopr-jekyll - A Jekyll Theme Built for Developers

Just a little something I'm using to jump start a site refresh. I like to think of it as a starter for building your own Jekyll site. I purposely keep the styling minimal and bare to make it easier to add your own flare and markup.

[![Gem Version](https://badge.fury.io/rb/devlopr.svg)](https://badge.fury.io/rb/devlopr)![workflow-badge](https://github.com/sujaykundu777/devlopr-jekyll/workflows/deploy/badge.svg)
[![Netlify Status](https://api.netlify.com/api/v1/badges/4232ac2b-63e0-4c78-92e0-e95aad5ab8c3/deploy-status)](https://app.netlify.com/sites/devlopr/deploys)
![](https://ruby-gem-downloads-badge.herokuapp.com/devlopr?type=total&color=brightgreen&style=plastic)
Expand All @@ -22,7 +24,8 @@

#### Features :

- Supports Latest [Jekyll](https://jekyllrb.com) and [Bundler](https://bundler.io)
- Supports Latest [Jekyll 4.x](https://jekyllrb.com) and [Bundler](https://bundler.io)
- Stylesheet built using Sass
- SEO, Google Adsense and Analytics Optimized
- CMS Admin support using [Forestry](https://forestry.io)
- Real Time Search using [Algolia](https://algolia.com/)
Expand All @@ -32,10 +35,6 @@
- Coding Activity using [Wakatime](https://wakatime.com/)
- Hosting Support for [Github Pages](https://pages.github.com), [Netlify](https://netlify.com), [Zeit](https://zeit.co), [Heroku](https://heroku.com), [AWS Amplify](aws.amplify.com)

## Upcoming Features (In development) :

- Image Gallery Support

## Using Docker :

Building the Image :
Expand Down
10 changes: 1 addition & 9 deletions _includes/blog_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@

<div class="col-lg-4">
<div class="card">
<div class="card-header"> About </div>
<div class="card-body">
<!-- Your Bio -->
<p class="author_bio"> {{ site.author_bio }}</p>
<div class="col-lg-3">

{%- include github_star_button.html -%}
</div>
</div>
<div class="card">
<div class="card-header">Categories </div>
<div class="card-body text-dark">
Expand Down
101 changes: 50 additions & 51 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,69 +5,68 @@
<div class="row">
<!-- Blog Post Breadcrumbs -->
{%- include blog_post_breadcrumb.html -%}
</div>
<div class="row">
</div>
<div class="row">

<div class="col-lg-7 offset-md-1">
{%- include blog_sidebar.html -%}

<!-- Blog Posts -->
<ul >
<div class="row">
{% for post in paginator.posts %}
<div class="card blog-post">
<img class="card-img-top" src="{{site.url}}{{site.baseurl}}/assets/img/posts/{{ post.thumbnail }}" alt="{{ post.title }}">
<div class="card-body center">
<!-- <img src="{{site.url}}{{site.baseurl}}/assets/img/{{ site.author_logo }}" class="author-profile-img"> -->
<h4 class="card-title">{{ post.title }}</h4>
<div class="col-lg-9">
<ul >
<div class="row">
{% for post in paginator.posts %}
<div class="card blog-post">
<img class="card-img-top" src="{{site.url}}{{site.baseurl}}/assets/img/posts/{{ post.thumbnail }}" alt="{{ post.title }}">
<div class="card-body center">
<!-- <img src="{{site.url}}{{site.baseurl}}/assets/img/{{ site.author_logo }}" class="author-profile-img"> -->
<h4 class="card-title">{{ post.title }}</h4>

<h6 class="card-subtitle mb-2 text-muted">{{ post.date | date: "%b %-d, %Y" }}</h6>
<p class="card-text">{{ post.summary }} </p>
<h6 class="card-subtitle mb-2 text-muted">{{ post.date | date: "%b %-d, %Y" }}</h6>
<p class="card-text">{{ post.summary }} </p>

<a href="{{ post.url | prepend: site.baseurl }}" data-disqus-identifier="{{ post.url }}" class="btn btn-primary btn-lg">Read</a>
<span class="disqus-comment-count" data-disqus-identifier="{{ post.url }}"></span>
<a href="{{ post.url | prepend: site.baseurl }}" data-disqus-identifier="{{ post.url }}" class="btn btn-primary btn-lg">Read</a>
<span class="disqus-comment-count" data-disqus-identifier="{{ post.url }}"></span>

</div>
</div>
</div>
</div>

{% endfor %}
</div>
</ul>
{% endfor %}
</div>
</ul>


<div class="row center">
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<ul class="pagination pagination-sm">
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a></li>
{% else %}
<li class="disabled"><span aria-hidden="true">&laquo;</span></li>
{% endif %}

<li><a href="/">First</a></li>

<div class="row center">
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<ul class="pagination pagination-sm">
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a></li>
{% else %}
<li class="disabled"><span aria-hidden="true">&laquo;</span></li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><a>{{ page }}<span class="sr-only">(current)</span></a></li>
{% elsif page == 1 %}
<li><a href="/">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}

<li><a href="/">First</a></li>
<li><a href="/page/{{ paginator.total_pages }}/">Last</a></li>

{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><a>{{ page }}<span class="sr-only">(current)</span></a></li>
{% elsif page == 1 %}
<li><a href="/">{{ page }}</a></li>
{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a></li>
{% else %}
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
<li class="disabled"><span>&raquo;</span></li>
{% endif %}
{% endfor %}

<li><a href="/page/{{ paginator.total_pages }}/">Last</a></li>
</ul>
{% endif %}
</div>

{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a></li>
{% else %}
<li class="disabled"><span>&raquo;</span></li>
{% endif %}
</ul>
{% endif %}
</div>

</div>
{%- include blog_sidebar.html -%}
</div>
</div>

10 changes: 1 addition & 9 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@

<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: " en " }}">

{%- include head.html -%}

<body>


<div class="container-fluid">

{%- include header.html -%}


<div class="col-lg-12">
{{ content }}
</div>
<div class="row" id="newsletter_footer">
<div class="col-lg-12" id="newsletter_footer">
{%- include blog_newsletter.html -%}
</div>
</div>
{%- include footer.html -%}

</div>
<script>
var options = {
Expand Down
10 changes: 9 additions & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ header {
padding: 20px !important;
background-color: var(--card-background-color) !important;
}

.navbar{
box-shadow: #000 0px 0px 8px;
background-color: #131313 !important;
Expand All @@ -161,6 +160,15 @@ header {
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, .5) !important;
}
.img-thumbnail {
padding: .25rem;
background-color: #000 !important;
border: 1px solid #020305 !important;
border-radius: .25rem;
max-width: 100%;
height: auto;
margin: 40px;
}
#search-icon{
color: #FF7901;
}
Expand Down

0 comments on commit a95093f

Please sign in to comment.