Skip to content

Commit a0617eb

Browse files
committed
Initial commit
Inspired from https://github.com/ankitsultana/researcher
0 parents  commit a0617eb

File tree

18 files changed

+1262
-0
lines changed

18 files changed

+1262
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.sass-cache
2+
.sass-cache/
3+
.DS_Store

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Parchment
2+
A clean, single column blog template built for jekyll
3+
4+
## Usage
5+
6+
* To use this as your GitHub Page, fork this repository, and
7+
rename it to `<username>.github.io`. Your site will be live
8+
at `https://<username>.github.io/parchment-jekyll`.
9+
10+
* You can customise variables in `_config.yml` and `css/*` files.
11+
12+
* You can add markdown files, say `foo.md` in the root directory
13+
of the repository. It will then be accessible like
14+
`your.website.com/foo`.
15+
16+
* To add posts, add your posts in the `_posts` directory. Follow
17+
the naming convention `%yyyy-%mm-%dd-your-title-here.md`.
18+
19+
* To add a profile picture, use class `profile-picture` around
20+
the image.
21+
22+
## Contributing
23+
Pull requests are welcome. For major changes, please open an
24+
issue first to discuss what you would like to change.
25+
26+
## Credits
27+
Parchment is inspired from the resume theme
28+
[Researcher](https://github.com/ankitsultana/researcher)
29+
30+
## License
31+
[GNU GPL v3](LICENSE)

_config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: Parchment
2+
author: pro-panda
3+
subtitle: A minimal jekyll theme
4+
5+
url: "https://www.pro-panda.tech"
6+
baseurl: "/parchment"
7+
8+
footer_url: "https://github.com/pro-panda"
9+
footer_text: "Theme by pro-panda"
10+
11+
profile-picture: assets/profile.jpg
12+
favicon_location: assets/favicon.ico
13+
14+
permalink: /:year-:month-:day-:title/
15+
sass:
16+
style: compressed
17+
sass_dir: css
18+
19+
navbar:
20+
- name: "About"
21+
link: "about"
22+
- name: "Resume"
23+
link: "resume.pdf"

_includes/footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<br><hr>
2+
<p style="text-align: center; margin-bottom: 10px">
3+
<a href="{{ site.footer_url }}" style="color: black"><small>{{ site.footer_text }}</small></a>
4+
</p>

_includes/head.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<head>
2+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
3+
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="keywords" content="blog, {{ site.author }}, {{ site.title }}, jekyll">
7+
<meta name="author" content="{{ site.author }}">
8+
{% if page.url == "/404.html" %}
9+
<meta http-equiv="refresh" content="5; url=/">
10+
{% endif %}
11+
{% if page.snippet %}
12+
{% assign desc = page.snippet %}
13+
{% else %}
14+
{% assign desc = site.subtitle %}
15+
{% endif %}
16+
{% if page.title %}
17+
{% assign title = page.title %}
18+
{% else %}
19+
{% assign title = site.title %}
20+
{% endif %}
21+
22+
<meta name="description" content="{{ desc }}">
23+
<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
24+
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
25+
<link rel="icon" type="image/ico" href="{{site.url}}{{ site.baseurl }}/{{site.favicon_location}}">
26+
<link rel="shortcut-icon" type="image/ico" href="{{site.url}}{{ site.baseurl }}/{{site.favicon_location}}">
27+
28+
<!-- For Facebook -->
29+
<meta property="og:title" content="{{ title }}" />
30+
<meta property="og:image" content="{{site.url}}{{ site.baseurl }}/{{site.favicon_location}}" />
31+
<meta property="og:description" content="{{ desc }}" />
32+
33+
<!-- For Twitter -->
34+
<meta name="twitter:card" content="summary" />
35+
<meta name="twitter:title" content="{{ title }}" />
36+
<meta name="twitter:description" content="{{ desc }}" />
37+
<meta name="twitter:image" content="{{site.url}}{{ site.baseurl }}/{{site.favicon_location}}" />
38+
</head>

_includes/navbar.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="navbar container">
2+
<a id="site-title" class="alignable pull-left" href="{{ site.url }}{{ site.baseurl}}">{{ site.title }}</a>
3+
<ul id="navlist" class="alignable pull-right navbar-ul">
4+
{% for x in site.navbar %}
5+
<li class="alignable pull-left navbar-list">
6+
<a href="{{ site.url }}{{ site.baseurl}}/{{ x.link }}">{{ x.name }}</a>
7+
{% if forloop.last == false %}/{% endif %}
8+
</li>
9+
{% endfor %}
10+
</ul>
11+
</div>
12+
<div style="clear:both"></div>
13+
14+
<hr>

_layouts/default.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
{% include head.html %}
4+
5+
<body>
6+
<div class="wrapper">
7+
{% include navbar.html %}
8+
<div class="container content">
9+
{{ content }}
10+
{% include footer.html %}
11+
</div>
12+
</div>
13+
</body>

_layouts/post.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="page-title">
6+
{{page.title}}
7+
</div>
8+
<div class="page-subtitle">
9+
{% for tag in page.tags %}
10+
{% if page.tags.first == tag %}
11+
<b>[</b>
12+
{% endif %}
13+
<a href="{{ site.baseurl }}/tags/#{{ tag }}" title="{{ tag }}">{{ tag }}</a>
14+
{% if page.tags.last == tag %}
15+
<b>]</b>
16+
{% else %}
17+
,
18+
{% endif %}
19+
{% endfor %}
20+
</div>
21+
<br>
22+
<div class="page-content">
23+
{{content}}
24+
</div>

_posts/2018-10-20-hello-world.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: post
3+
title: Hello World
4+
snippet: This is a post snippet. You can use it to write a optional brief summary of your post.
5+
tags: [hello, world]
6+
---
7+
8+
This is a sample post text.
9+
10+
That's all folks!

0 commit comments

Comments
 (0)