Skip to content

Commit cbb8b8f

Browse files
committed
add generic examples
1 parent 57315a6 commit cbb8b8f

23 files changed

+546
-0
lines changed

_pages/non-menu-page.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
permalink: /non-menu-page/
3+
title: "Page not in menu"
4+
excerpt: "This is a page not in th emain menu"
5+
author_profile: true
6+
redirect_from:
7+
- "/nmp/"
8+
- "/nmp.html"
9+
---
10+
11+
This is a page not in the menu. You can use markdown in this page.
12+
13+
Heading 1
14+
======
15+
16+
Heading 2
17+
======

_pages/portfolio.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: archive
3+
title: "Portfolio"
4+
permalink: /portfolio/
5+
author_profile: true
6+
---
7+
8+
{% include base_path %}
9+
10+
11+
{% for post in site.portfolio %}
12+
{% include archive-single.html %}
13+
{% endfor %}
14+

_pages/teaching.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: archive
3+
title: "Teaching"
4+
permalink: /teaching/
5+
author_profile: true
6+
---
7+
8+
{% include base_path %}
9+
10+
{% for post in site.teaching reversed %}
11+
{% include archive-single.html %}
12+
{% endfor %}

_portfolio/2016-01-01-portfolio-1.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Portfolio item number 1"
3+
excerpt: "Short description of portfolio item number 1"
4+
collection: portfolio
5+
date: 2016-01-01
6+
---
7+
8+
This is an item in your portfolio. It can be have images or nice text. If you name the file .md, it will be parsed as markdown. If you name the file .html, it will be parsed as HTML.
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Portfolio item number 2"
3+
excerpt: "Short description of portfolio item number 2"
4+
collection: portfolio
5+
date: 2016-03-01
6+
---
7+
8+
This is an item in your portfolio. It can be have images or nice text. If you name the file .md, it will be parsed as markdown. If you name the file .html, it will be parsed as HTML.

_posts/2012-08-14-blog-post-1.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: 'Blog Post number 1'
3+
date: 2012-08-14
4+
permalink: /posts/2012/08/blog-post-1/
5+
tags:
6+
- cool posts
7+
- category1
8+
- category2
9+
---
10+
11+
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
12+
13+
Headings are cool
14+
======
15+
16+
You can have many headings
17+
======
18+
19+
Aren't headings cool?
20+
------

_posts/2013-08-14-blog-post-2.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: 'Blog Post number 2'
3+
date: 2013-08-14
4+
permalink: /posts/2013/08/blog-post-2/
5+
tags:
6+
- cool posts
7+
- category1
8+
- category2
9+
---
10+
11+
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
12+
13+
Headings are cool
14+
======
15+
16+
You can have many headings
17+
======
18+
19+
Aren't headings cool?
20+
------

_posts/2014-08-14-blog-post-3.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: 'Blog Post number 3'
3+
date: 2014-08-14
4+
permalink: /posts/2014/08/blog-post-3/
5+
tags:
6+
- cool posts
7+
- category1
8+
- category2
9+
---
10+
11+
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
12+
13+
Headings are cool
14+
======
15+
16+
You can have many headings
17+
======
18+
19+
Aren't headings cool?
20+
------

_posts/2015-08-14-blog-post-4.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: 'Blog Post number 4'
3+
date: 2015-08-14
4+
permalink: /posts/2012/08/blog-post-4/
5+
tags:
6+
- cool posts
7+
- category1
8+
- category2
9+
---
10+
11+
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
12+
13+
Headings are cool
14+
======
15+
16+
You can have many headings
17+
======
18+
19+
Aren't headings cool?
20+
------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Paper Title Number 1"
3+
category: publications
4+
permalink: /publications/2009-10-01-paper-title-number-1
5+
venue: "Journal 1"
6+
excerpt: 'This paper is about the number 1. The number 2 is left for future work.'
7+
date: 2009-10-01
8+
citation: 'Your Name, You. (2009). "Paper Title Number 1." <i>Journal 1</i>. 1(1). http://academicpages.github.io/publications/paper1.pdf'
9+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Paper Title Number 2"
3+
category: publications
4+
permalink: /publications/2010-10-01-paper-title-number-2
5+
venue: "Journal 1"
6+
excerpt: '<i>Published in Journal 1</i><br/>This paper is about the number 2. The number 3 is left for future work.'
7+
date: 2010-10-01
8+
citation: 'Your Name, You. (2010). "Paper Title Number 2." <i>Journal 1</i>. 1(2). http://academicpages.github.io/publications/paper2.pdf'
9+
---
10+
11+
This is where you put in an abstract, the full text of the paper, or both! This text will appear below some of the metadata. You can use markdown in this, like any posts.
12+
13+
Abstract
14+
======
15+
16+
Paper
17+
======
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Paper Title Number 3"
3+
category: publications
4+
permalink: /publications/2015-10-01-paper-title-number-3
5+
venue: "Journal 1"
6+
excerpt: '<i>Published in Journal 1</i><br/>This paper is about the number 3. The number 4 is left for future work.'
7+
date: 2015-10-01
8+
citation: 'Your Name, You. (2015). "Paper Title Number 3." <i>Journal 1</i>. 1(3). http://academicpages.github.io/publications/paper3.pdf'
9+
---
10+
11+
This is where you put in an abstract, the full text of the paper, or both! This text will appear below some of the metadata. You can use markdown in this, like any posts.
12+
13+
Abstract
14+
======
15+
16+
Paper
17+
======
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 48,
6+
"metadata": {
7+
"collapsed": true
8+
},
9+
"outputs": [],
10+
"source": [
11+
"import glob\n",
12+
"!pip install getorg\n",
13+
"import getorg"
14+
]
15+
},
16+
{
17+
"cell_type": "code",
18+
"execution_count": 49,
19+
"metadata": {
20+
"collapsed": false
21+
},
22+
"outputs": [],
23+
"source": [
24+
"g = glob.glob(\"*.md\")"
25+
]
26+
},
27+
{
28+
"cell_type": "code",
29+
"execution_count": 50,
30+
"metadata": {
31+
"collapsed": false
32+
},
33+
"outputs": [
34+
{
35+
"name": "stdout",
36+
"output_type": "stream",
37+
"text": [
38+
"City, Country\n",
39+
"City, Country\n",
40+
"City, Country\n",
41+
"City, Country\n"
42+
]
43+
}
44+
],
45+
"source": [
46+
"for file in g:\n",
47+
" with open(file, 'r') as f:\n",
48+
" lines = f.read()\n",
49+
" loc_start = lines.find('location: \"') + 11\n",
50+
" lines_trim = lines[loc_start:]\n",
51+
" loc_end = lines_trim.find('\"')\n",
52+
" print(lines_trim[:loc_end])\n",
53+
" \n"
54+
]
55+
},
56+
{
57+
"cell_type": "code",
58+
"execution_count": 43,
59+
"metadata": {
60+
"collapsed": false
61+
},
62+
"outputs": [
63+
{
64+
"data": {
65+
"text/plain": [
66+
"175"
67+
]
68+
},
69+
"execution_count": 43,
70+
"metadata": {},
71+
"output_type": "execute_result"
72+
}
73+
],
74+
"source": []
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": 42,
79+
"metadata": {
80+
"collapsed": false
81+
},
82+
"outputs": [
83+
{
84+
"data": {
85+
"text/plain": [
86+
"10"
87+
]
88+
},
89+
"execution_count": 42,
90+
"metadata": {},
91+
"output_type": "execute_result"
92+
}
93+
],
94+
"source": []
95+
},
96+
{
97+
"cell_type": "code",
98+
"execution_count": null,
99+
"metadata": {
100+
"collapsed": true
101+
},
102+
"outputs": [],
103+
"source": []
104+
}
105+
],
106+
"metadata": {
107+
"anaconda-cloud": {},
108+
"kernelspec": {
109+
"display_name": "Python [Root]",
110+
"language": "python",
111+
"name": "Python [Root]"
112+
},
113+
"language_info": {
114+
"codemirror_mode": {
115+
"name": "ipython",
116+
"version": 3
117+
},
118+
"file_extension": ".py",
119+
"mimetype": "text/x-python",
120+
"name": "python",
121+
"nbconvert_exporter": "python",
122+
"pygments_lexer": "ipython3",
123+
"version": "3.5.2"
124+
}
125+
},
126+
"nbformat": 4,
127+
"nbformat_minor": 0
128+
}

_talks/2012-03-01-talk-1.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Talk 1 on Relevant Topic in Your Field"
3+
collection: talks
4+
talk_type: "Talk"
5+
permalink: /talks/2012-03-01-talk-1
6+
venue: "University 1, Department"
7+
date: 2012-03-01
8+
location: "City, Country"
9+
---
10+
11+
This is a description of your talk, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
12+
13+
Headings
14+
======
15+
16+
Subheadings
17+
------

_talks/2013-03-01-tutorial-1.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Tutorial 1 on Relevant Topic in Your Field"
3+
collection: talks
4+
talk_type: "Tutorial"
5+
permalink: /talks/2013-03-01-talk-1
6+
venue: "University 1, Department"
7+
date: 2013-03-01
8+
location: "City, Country"
9+
---
10+
11+
This is a description of your workshop, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
12+
13+
Headings
14+
======
15+
16+
Subheadings
17+
------

_talks/2014-02-01-talk-2.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Talk 2 on Relevant Topic in Your Field"
3+
collection: talks
4+
talk_type: "Talk"
5+
permalink: /talks/2014-02-01-talk-2
6+
venue: "University 1, Department"
7+
date: 2014-02-01
8+
location: "City, Country"
9+
---
10+
11+
This is a description of your talk, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
12+
13+
Headings
14+
======
15+
16+
Subheadings
17+
------

0 commit comments

Comments
 (0)