Skip to content

Commit 9c81f25

Browse files
committed
Add blog and post layouts
1 parent 63f2a4c commit 9c81f25

File tree

7 files changed

+38
-53
lines changed

7 files changed

+38
-53
lines changed

_layouts/blog.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
2121
<div class="card-content">
2222
<div class="content">
2323
<p>{{ post.excerpt | remove: '<p>' | remove: '</p>'}}...<a href="{{ post.url | relative_url }}">Read More</a></p>
24+
<span class="is-size-7"><a class="author-name" href="{{ post.author-link }}">{{ post.author }}</a> |</span>
2425
<time class="is-size-7" datetime="{{ post.date }}">{{ post.date | date: date_format }}</time>
2526
</div>
2627
</div>

_layouts/post.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% include header.html %}
2+
<div class="container content">
3+
<h2 class="has-text-centered">{{ page.title }}</h2>
4+
<br />
5+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
6+
<span class="is-size-6"><a class="author-name" href="{{ page.author-link }}">{{ page.author }}</a> |</span>
7+
<time class="is-size-6" datetime="{{ page.date }}">{{ page.date | date: date_format }}</time>
8+
<br /><br />
9+
<div class="is-size-5">
10+
{{ content }}
11+
</div>
12+
</div>
13+
{% include footer.html %}

_posts/2019-06-15-hello.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

_posts/2019-06-17-code.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

_posts/2019-06-19-hello.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post
3+
title: "Welcome to codeIndore()!"
4+
date: 2019-06-19 12:00:00 +0530
5+
author: "Adeen Shukla"
6+
author-link: "https://adeen.me"
7+
comments: true
8+
---
9+
10+
**codeIndore( )** is the student technical community by students and for the students in Indore, India.
11+
12+
There exists a huge gap between the classroom and the tech industry. There is also a rift between being a beginner programmer and a professional developer and a similar divide exists between being able to create elegant solutions and relying on pre-existing methods. <br />At codeIndore(), we aim to merge these clefts and bridge the gaps.
13+
14+
We are a community of students that provides an environment of learning, networking, enjoying, and progressing together. Join us in our upcoming [events](/events/) and be a part of our community.
15+
16+
You are welcome to any of our regular meetups, workshops, conferences, hackathons, or informal gatherings for loads of learning and fun. You can connect with us on any one of your preferred platforms [here](/connect/).

blog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ title: Blogs
33
layout: blog
44
permalink: /blog/
55
---
6-
Blogs are a great way of passing on knowledge, expressing opinions, and demonstrating our expertise. The blogs on this page have been submitted by the members of our community as part of their effort in helping others.
6+
Blogs are a great way of passing on knowledge, expressing opinions, and demonstrating our expertise.
7+
<br />The blogs on this page have been submitted by the members of our community as part of their effort in helping others.
8+
<br />If you would like to submit your blog, please [connect with us](/connect/)

css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,8 @@ only screen and (max-width: 1000px) {
8282
.card-header-title {
8383
padding-bottom: 0rem;
8484
}
85+
86+
.author-name {
87+
text-decoration: underline;
88+
color: inherit;
89+
}

0 commit comments

Comments
 (0)