Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also support nil #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions _includes/home-hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

<div class="hero-content">

{% if site.title != '' %}
{% if site.title != empty and site.title != nil %}
<h1 class="text-center">{{site.title}}</h1>
{% endif %}

{% if site.description != '' or site.enable_contact == true %}
{% if site.description != empty and site.description != nil or site.enable_contact == true %}
<p class="text-center">
{% if site.description != '' %}
{% if site.description != empty and site.description != nil %}
{{site.description}}
{% endif %}

Expand All @@ -27,13 +27,13 @@ <h1 class="text-center">{{site.title}}</h1>

<div class="hero-buttons">

{% if site.twitter_username != '' %}
{% if site.twitter_username != empty and site.twitter_username != nil %}
<a href="https://twitter.com/{{ site.twitter_username }}"><button class="btn btn-default btn-lg"><i class="fa fa-twitter fa-lg"></i>Twitter</button></a>
{% endif %}
{% if site.github_username != '' %}
{% if site.github_username != empty and site.github_username != nil %}
<a href="https://github.com/{{ site.github_username }}"><button class="btn btn-default btn-lg"><i class="fa fa-github fa-lg"></i>Github</button></a>
{% endif %}
{% if site.medium_username != '' %}
{% if site.medium_username != empty and site.medium_username != nil %}
<a href="https://{{ site.medium_username }}"><button class="btn btn-default btn-lg"><i class="fa fa-medium fa-lg"></i>Medium</button></a>
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion _includes/post-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h3 class="title">{{ post.title }}</h3>

<p class="excerpt">{{ post.lead_text }}</p>

{% if post.project_link != empty %}
{% if post.project_link != empty and project.link != nil %}
<a href="{{ post.project_link }}" class="project-link"><button class="btn btn-default btn-lg"><i class="fa fa-{{post.button_icon}} fa-lg"></i>{{post.button_text}}</button></a>
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<div class="row">
<div class="col-md-12">

{% if site.section_title != '' %}
{% if site.section_title != empty and site.section_title != nil %}
<h2 class="section-title text-center">{{ site.section_title }}</h2>
{% endif %}
{% if site.section_subtitle != '' %}
{% if site.section_subtitle != empty and site.section_subtitle != nil %}
<p class="section-subtitle text-center">{{ site.section_subtitle }}</p>
{% endif %}

Expand Down