color: #292929;
}
+.post .linkPost h1 {
+ margin-top: 10px;
+}
+
+.post .linkPost a {
+ text-decoration: underline;
+}
+
.post h1 a {
text-decoration: none;
}
border: none;
}
+.post blockquote {
+ border-left: 3px solid #525252;
+ padding-left: 10px;
+ font-style: italic;
+}
+
/* terminal */
.post pre.terminal {
border: 1px solid #000;
padding-right: 3px;
box-shadow: 0px 0.5px #ccc;
}
+
+
<ul class="posts">
{% for post in site.posts %}
<div class="post">
- <img class="authorPic" src="{{ post.image }}"></img>
- <h1 class="title"><a href="{{ post.url }}">{{ post.title}}</a></h1>
- {% if post.content contains '<!-- more -->' %}
- {{ post.content | split :'<!-- more -->' | first }}
+ {% if post.link %}
+ <div class="linkPost">
+ <h1 class="title"><a href="{{ post.link }}">{{ post.title}}</a></h1>
+ {{ post.content }}
+ </div>
+ {% else %}
+ <div class="textPost">
+ {% if post.image %}
+ <img class="authorPic" src="{{ post.image }}"></img>
+ {% endif %}
+
+ <h1 class="title"><a href="{{ post.url }}">{{ post.title}}</a></h1>
+
+ {% if post.content contains '<!-- more -->' %}
+ {{ post.content | split :'<!-- more -->' | first }}
+ {% endif %}
+ </div>
{% endif %}
<span class="meta">Posted: {{ post.date | date_to_string }}.
Filed under: {% for cat in post.categories %}
<span class="cat">{{ cat }}</span>
{% endfor %}
</span>
+
</div>
{% endfor %}
</ul>