-
-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from sujaykundu777/sujay/oct
hero and articles components seperated
- Loading branch information
Showing
13 changed files
with
145 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ author_email: "[email protected]" | |
author_location: India | ||
author_website_url: "https://sujaykundu.com" | ||
typewrite-text: devlopr is a jekyll framework built for developers. You can edit this in _config.yml file | ||
hero_cover_img: sample_cover.jpg # replace this for changing homepage cover (eg. try cover.jpeg). Image should be in /assets/img | ||
|
||
# Experiences | ||
author_work_experiences: | ||
|
@@ -97,8 +98,8 @@ mailchimp_form_url: https://sujaykundu.us10.list-manage.com/subscribe/post?u=50b | |
formspree_email: [email protected] | ||
|
||
# releases - widget can be (sidebar, modal or embed) | ||
# olvy_organization: devlopr | ||
# olvy_widget_type: sidebar | ||
olvy_organization: devlopr | ||
olvy_widget_type: sidebar | ||
|
||
# syntax highlighter | ||
markdown: kramdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<style> | ||
/* change cover_img in config.yml */ | ||
.jumbotron { | ||
background-color: var(--main-background-color) !important; | ||
background-image: url('/assets/img/{{site.hero_cover_img}}'); | ||
text-align: center; | ||
background-attachment: fixed; | ||
background-size: cover; | ||
background-position: center; | ||
} | ||
.jumbotron-btns { | ||
display: block; | ||
margin-top: 50px; | ||
} | ||
|
||
.jumbotron-heading, .lead { | ||
color: #fff; | ||
} | ||
</style> | ||
|
||
<!-- home hero section --> | ||
<div class="jumbotron"> | ||
<img class="author-profile-img" src="{{site.url}}{{site.baseurl}}/assets/img/{{site.author_logo}}" /> | ||
<p class="jumbotron-heading">Hi, I am {{site.author}} !</p> | ||
|
||
<p class="lead" id="typewriteText"></p> | ||
<span> | ||
{%- include github_star_button.html -%} | ||
{%- include github_fork_button.html -%} | ||
</span> | ||
<!-- uncomment/modify buttons as you want--> | ||
<div class="jumbotron-btns"> | ||
<a href="{{site.url}}{{site.baseurl}}/get-started"> | ||
<button class="btn btn-md btn-warning"> <strong>Get Started</strong> </button> | ||
</a> | ||
<a id="olvy-target"> | ||
<button class="btn btn-md btn-default"> <strong>What's New</strong> </button> | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<section id="recent-articles"> | ||
<div id="recent-articles-header"> | ||
<div id="recent-articles-title"> | ||
<h1 class="card-title">Recent Articles</h1> | ||
</div> | ||
<div id="recent-articles-show-all"> | ||
<a class="btn btn-lg btn-dark" href="/blog"> View All </a> | ||
</div> | ||
</div> | ||
<br /> | ||
|
||
<ul> | ||
{% for post in site.posts limit:5 %} | ||
<li class="article-card"> | ||
<a href="{{post.url}}" class="article-card-link"> | ||
<div id="article-container"> | ||
<div id="article-img"> | ||
{% if post.author %} | ||
{% assign author = post.author %} | ||
{% if author %} | ||
{% assign author_data = site.data.authors[author] %} | ||
<img | ||
src="{{site.url}}{{site.baseurl}}/assets/img/authors/{{author_data.avatar}}" | ||
width="50px" | ||
height="50px" | ||
/> | ||
{% endif %} | ||
{% endif %} | ||
|
||
</div> | ||
<div id="article-link"> | ||
<p class="recent-article-link">{{post.title}} <span style="color: #ccc; font-size: 15px;"> - <i><time datetime="{{ post.date }}" itemprop="datePublished">{{ post.date | date: "%b %-d, %Y" }}</time></i></span></p> | ||
</div> | ||
<div id="article-alert"> | ||
{% for cat in post.category limit:1 %} | ||
<button class="btn btn-sm btn-dark">{{cat}}</button> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cdbfb6f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: