Skip to content

Commit 16abaab

Browse files
Merge pull request sergiokopplin#152 from sergiokopplin/external-links
adding external links for projects
2 parents e5253bb + 9a79d4d commit 16abaab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_posts/2016-01-23-indigo-jekyll-theme.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ hidden: true # don't count this post in blog pagination
1010
description: "This is a simple and minimalist template for Jekyll for those who likes to eat noodles."
1111
jemoji: '<img class="emoji" title=":ramen:" alt=":ramen:" src="https://assets.github.com/images/icons/emoji/unicode/1f35c.png" height="20" width="20" align="absmiddle">'
1212
author: johndoe
13+
externalLink: false
1314
---
1415

1516
![Screenshot](https://raw.githubusercontent.com/sergiokopplin/indigo/gh-pages/screen-shot.png)

projects.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<section class="list">
66
{% for post in site.posts %}
77
{% if post.projects %}
8-
<div class="item {% if post.star == true %}star{% endif %}">
9-
<a class="url" href="{{ site.url }}{{ post.url }}">
8+
<div class="item {% if post.star %}star{% endif %}">
9+
<a class="url" href="{% if post.externalLink %}{{ post.externalLink }}{% else %}{{ site.url }}{{ post.url }}{% endif %}">
1010
<aside><time datetime="{{ post.date | date:"%d-%m-%Y" }}">{{ post.date | date: "%b %d %Y" }}</time></aside>
1111
{{ post.jemoji }}<h3 class="title">{{ post.title }}</h3>
1212
</a>

0 commit comments

Comments
 (0)