Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
jekyll-scholar-extras
Commits
33b958d8
Commit
33b958d8
authored
May 16, 2012
by
rmrf
Browse files
template for publications
parent
7e0e8cd0
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
567 additions
and
0 deletions
+567
-0
samples/jekyll-template/README.md
samples/jekyll-template/README.md
+4
-0
samples/jekyll-template/_config.yml
samples/jekyll-template/_config.yml
+32
-0
samples/jekyll-template/_layouts/_site/default.html
samples/jekyll-template/_layouts/_site/default.html
+25
-0
samples/jekyll-template/_layouts/_site/details.html
samples/jekyll-template/_layouts/_site/details.html
+21
-0
samples/jekyll-template/_layouts/default.html
samples/jekyll-template/_layouts/default.html
+19
-0
samples/jekyll-template/_layouts/details.html
samples/jekyll-template/_layouts/details.html
+20
-0
samples/jekyll-template/_plugins/jekyll-scholar.rb
samples/jekyll-template/_plugins/jekyll-scholar.rb
+2
-0
samples/jekyll-template/_publications/custom-hdp.csl
samples/jekyll-template/_publications/custom-hdp.csl
+329
-0
samples/jekyll-template/_publications/test.bib
samples/jekyll-template/_publications/test.bib
+35
-0
samples/jekyll-template/css/style.css
samples/jekyll-template/css/style.css
+74
-0
samples/jekyll-template/index.html
samples/jekyll-template/index.html
+6
-0
No files found.
samples/jekyll-template/README.md
0 → 100644
View file @
33b958d8
Sample template for [Jekyll](https://github.com/mojombo/jekyll)
============================
This gives a very basic template for generating publication webpage from a
[
BibTeX
](
http://www.bibtex.org
)
file.
samples/jekyll-template/_config.yml
0 → 100644
View file @
33b958d8
source
:
.
destination
:
./_site
plugins
:
./_plugins
auto
:
false
server
:
false
lsi
:
false
safe
:
false
pygments
:
true
markdown
:
maruku
baseurl
:
./
#http://ece.uwaterloo.ca/~hdpatel/uwhtml
root_home
:
~hdpatel/uwhtml
permalink
:
/:year/:month/:day/:title
exclude
:
[
"
Rakefile"
,
"
no-build"
]
title
:
Hiren D. Patel
url
:
http://ece.uwaterloo.ca/~hdpatel/uwhtml
# jekyll-scholar configurations
scholar
:
style
:
_publications/custom-hdp.csl
locale
:
en
sort_by
:
year
order
:
descending
source
:
./_publications
bibliography
:
test.bib
details_dir
:
./publications/details
details_layout
:
details.html
query
:
"
@*[public!=no]"
samples/jekyll-template/_layouts/_site/default.html
0 → 100644
View file @
33b958d8
<!DOCTYPE html>
<html>
<head>
<meta
charset=
utf-8
/>
<title>
Publications
</title>
<link
rel=
"stylesheet"
href=
"/css/styles.css"
/>
</head>
<body>
<div
id=
"main"
>
<header>
<h1>
Publications
</h1>
<header>
</nav>
{{ content }}
<footer>
<p>
@copy; John Doe Photography 2011 | All Rights Reserved.
</p>
</footer>
</div>
</body>
</html>
samples/jekyll-template/_layouts/_site/details.html
0 → 100644
View file @
33b958d8
<h1
class=
"large-bottom"
></h1>
<h2>
</h2>
By
<br
/>
In
<br
/>
<br
/>
<h3>
Abstract:
</h3>
<div
id=
"main"
class=
"span-24"
>
<br
/>
</div>
<br
/>
<br
/>
<br
/>
<h3><a
href=
""
>
PDF
</a>
</h3>
<br
/>
<h3>
BibTeX:
</h3>
<div>
<pre><code
class=
'bash'
></code></pre>
</div>
samples/jekyll-template/_layouts/default.html
0 → 100644
View file @
33b958d8
<!DOCTYPE html>
<html>
<head>
<meta
charset=
utf-8
/>
<title>
Publications
</title>
</head>
<body>
<div
class=
"main"
>
<h1>
Publications
</h1>
{{ content }}
</div>
<footer>
Give thanks to where you got this from!
<a
href=
"https://github.com/hdpatel"
>
Hiren D. Patel
</a>
</footer>
</body>
</html>
samples/jekyll-template/_layouts/details.html
0 → 100644
View file @
33b958d8
---
layout: default
no_sidebar: true
---
<h1
class=
"large-bottom"
>
{{ page.title }}
</h1>
<h2>
{{ page.entry.citeproc}}
</h2>
<h3>
Abstract:
</h3>
<div
id=
"main"
class=
"span-{% if page.no_sidebar %}24{% else %}17{% endif %}"
>
{{ page.entry.abstract }}
<br
/>
</div>
<br
/>
<h3><a
href=
"{{page.entry.pdflink}}"
>
PDF
</a>
</h3>
<br
/>
<h3>
BibTeX:
</h3>
{% highlight bash tabsize=2 %}
{{ page.entry.bibtex }}
{% endhighlight %}
samples/jekyll-template/_plugins/jekyll-scholar.rb
0 → 100644
View file @
33b958d8
require
'jekyll/scholar'
require
'jekyll/scholar/extras'
samples/jekyll-template/_publications/custom-hdp.csl
0 → 100644
View file @
33b958d8
<?xml version="1.0" encoding="utf-8"?>
<style
xmlns=
"http://purl.org/net/xbiblio/csl"
class=
"in-text"
version=
"1.0"
demote-non-dropping-particle=
"sort-only"
>
<info>
<title>
IEEE
</title>
<id>
http://www.zotero.org/styles/ieee
</id>
<link
href=
"http://www.zotero.org/styles/ieee"
rel=
"self"
/>
<author>
<name>
Michael Berkowitz
</name>
<email>
mberkowi@gmu.edu
</email>
</author>
<contributor>
<name>
Julian Onions
</name>
<email>
julian.onions@gmail.com
</email>
</contributor>
<contributor>
<name>
Rintze Zelle
</name>
<uri>
http://twitter.com/rintzezelle
</uri>
</contributor>
<contributor>
<name>
Stephen Frank
</name>
<uri>
http://www.zotero.org/sfrank
</uri>
</contributor>
<contributor>
<name>
Sebastian Karcher
</name>
</contributor>
<category
field=
"engineering"
/>
<category
field=
"generic-base"
/>
<category
citation-format=
"numeric"
/>
<updated>
2011-08-18T16:08:33+00:00
</updated>
<rights>
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/
</rights>
<link
href=
"http://www.ieee.org/portal/cms_docs_iportals/iportals/publications/authors/transjnl/stylemanual.pdf"
rel=
"documentation"
/>
<link
href=
"http://www.ieee.org/documents/auinfo07.pdf"
rel=
"documentation"
/>
</info>
<!-- Macros -->
<macro
name=
"edition"
>
<choose>
<if
type=
"bill book chapter graphic legal_case legislation motion_picture paper-conference report song"
match=
"any"
>
<choose>
<if
is-numeric=
"edition"
>
<group
delimiter=
" "
>
<number
variable=
"edition"
form=
"ordinal"
/>
<text
term=
"edition"
form=
"short"
suffix=
"."
strip-periods=
"true"
/>
</group>
</if>
<else>
<text
variable=
"edition"
text-case=
"capitalize-first"
suffix=
"."
/>
</else>
</choose>
</if>
</choose>
</macro>
<macro
name=
"issued"
>
<choose>
<if
type=
"article-journal"
match=
"any"
>
<date
variable=
"issued"
>
<date-part
name=
"month"
form=
"short"
suffix=
" "
/>
<date-part
name=
"year"
form=
"long"
/>
</date>
</if>
<else-if
type=
" bill book chapter graphic legal_case legislation motion_picture paper-conference song thesis"
match=
"any"
>
<date
variable=
"issued"
>
<date-part
name=
"year"
form=
"long"
/>
</date>
</else-if>
<else>
<date
variable=
"issued"
>
<date-part
name=
"day"
form=
"numeric-leading-zeros"
suffix=
"-"
/>
<date-part
name=
"month"
form=
"short"
suffix=
"-"
strip-periods=
"true"
/>
<date-part
name=
"year"
form=
"long"
/>
</date>
</else>
</choose>
</macro>
<macro
name=
"author"
>
<names
variable=
"author"
>
<name
initialize-with=
". "
delimiter=
", "
and=
"text"
/>
<label
form=
"short"
prefix=
", "
text-case=
"capitalize-first"
suffix=
"."
strip-periods=
"true"
/>
<substitute>
<names
variable=
"editor"
/>
<names
variable=
"translator"
/>
</substitute>
</names>
</macro>
<macro
name=
"editor"
>
<names
variable=
"editor"
>
<name
initialize-with=
". "
delimiter=
", "
and=
"text"
/>
<label
form=
"short"
prefix=
", "
text-case=
"capitalize-first"
suffix=
"."
strip-periods=
"true"
/>
</names>
</macro>
<macro
name=
"locators"
>
<group
delimiter=
", "
>
<text
macro=
"edition"
/>
<group
delimiter=
" "
>
<text
term=
"volume"
form=
"short"
suffix=
"."
strip-periods=
"true"
/>
<number
variable=
"volume"
form=
"numeric"
/>
</group>
<group
delimiter=
" "
>
<number
variable=
"number-of-volumes"
form=
"numeric"
/>
<text
term=
"volume"
form=
"short"
suffix=
"."
plural=
"true"
strip-periods=
"true"
/>
</group>
<group
delimiter=
" "
>
<text
term=
"issue"
form=
"short"
suffix=
"."
strip-periods=
"true"
/>
<number
variable=
"issue"
form=
"numeric"
/>
</group>
</group>
</macro>
<macro
name=
"title"
>
<choose>
<if
type=
"bill book graphic legal_case legislation motion_picture song"
match=
"any"
>
<text
variable=
"title"
font-style=
"italic"
font-weight=
"bold"
/>
</if>
<else>
<text
variable=
"title"
quotes=
"false"
font-weight=
"bold"
/>
</else>
</choose>
</macro>
<macro
name=
"publisher"
>
<choose>
<if
type=
" bill book chapter graphic legal_case legislation motion_picture paper-conference song"
match=
"any"
>
<text
variable=
"publisher-place"
suffix=
": "
/>
<text
variable=
"publisher"
/>
</if>
<else>
<group
delimiter=
", "
>
<text
variable=
"publisher"
/>
<text
variable=
"publisher-place"
/>
</group>
</else>
</choose>
</macro>
<macro
name=
"event"
>
<choose>
<if
type=
"article-journal"
>
<choose>
<!-- Published Journal Paper -->
<if
variable=
"container-title"
>
<group
delimiter=
", "
>
<text
variable=
"container-title"
prefix=
"In "
font-style=
"italic"
/>
<text
variable=
"event-place"
/>
</group>
</if>
<!-- Unpublished Journal Paper -->
<else>
<group
delimiter=
", "
>
<text
variable=
"event"
prefix=
"presented at the "
/>
<text
variable=
"event-place"
/>
</group>
</else>
</choose>
</if>
<if
type=
"paper-conference"
>
<choose>
<!-- Published Conference Paper -->
<if
variable=
"container-title"
>
<group
delimiter=
", "
>
<text
variable=
"container-title"
prefix=
"In "
font-style=
"italic"
/>
<text
variable=
"event-place"
/>
</group>
</if>
<!-- Unpublished Conference Paper -->
<else>
<group
delimiter=
", "
>
<text
variable=
"event"
prefix=
"presented at the "
/>
<text
variable=
"event-place"
/>
</group>
</else>
</choose>
</if>
</choose>
</macro>
<macro
name=
"access"
>
<choose>
<if
type=
"webpage"
>
<choose>
<if
variable=
"URL"
>
<group
delimiter=
". "
>
<text
value=
"[Online]"
/>
<text
variable=
"URL"
prefix=
"Available: "
/>
<group
prefix=
"["
suffix=
"]"
>
<date
variable=
"accessed"
prefix=
"Accessed: "
>
<date-part
name=
"day"
form=
"numeric-leading-zeros"
suffix=
"-"
/>
<date-part
name=
"month"
form=
"short"
suffix=
"-"
strip-periods=
"true"
/>
<date-part
name=
"year"
form=
"long"
/>
</date>
</group>
</group>
</if>
</choose>
</if>
</choose>
</macro>
<macro
name=
"page"
>
<group>
<label
variable=
"page"
form=
"short"
suffix=
". "
strip-periods=
"true"
/>
<text
variable=
"page"
/>
</group>
</macro>
<!-- Citation -->
<citation
collapse=
"citation-number"
>
<sort>
<key
variable=
"citation-number"
/>
</sort>
<layout
prefix=
"["
suffix=
"]"
delimiter=
"], ["
>
<text
variable=
"citation-number"
/>
</layout>
</citation>
<!-- Bibliography -->
<bibliography
entry-spacing=
"0"
second-field-align=
"flush"
>
<layout
suffix=
"."
>
<!-- Citation Number -->
<text
variable=
"citation-number"
prefix=
"["
suffix=
"]"
/>
<!-- Rest of Citation -->
<choose>
<!-- Specific Formats -->
<if
type=
"article-journal"
>
<group
delimiter=
" "
>
<text
macro=
"title"
suffix=
".<br />"
/>
<text
macro=
"event"
prefix=
"<i>"
suffix=
"</i>,"
/>
<text
macro=
"locators"
/>
<text
macro=
"page"
/>
<text
macro=
"issued"
/>
</group>
</if>
<else-if
type=
"paper-conference"
>
<group
delimiter=
" "
>
<text
macro=
"title"
suffix=
".<br />"
/>
<!-- Author(s) -->
<text
macro=
"author"
prefix=
"By "
suffix=
". <br />"
/>
<text
macro=
"event"
prefix=
"<i>"
suffix=
"</i>,"
/>
<text
macro=
"locators"
suffix=
", "
/>
<text
macro=
"page"
prefix=
"pp. "
suffix=
", "
/>
<text
macro=
"issued"
/>
</group>
</else-if>
<else-if
type=
"report"
>
<group
delimiter=
" "
>
<text
macro=
"title"
suffix=
".<br />"
/>
<text
macro=
"author"
prefix=
"By "
suffix=
". <br />"
/>
<text
variable=
"genre"
/>
<text
macro=
"publisher"
/>
<text
macro=
"event"
prefix=
"<i>"
suffix=
"</i>,"
/>
<text
macro=
"locators"
prefix=
"Technical Report #"
suffix=
", "
/>
<text
macro=
"issued"
/>
</group>
</else-if>
<else-if
type=
"book"
>
<group
delimiter=
" "
>
<text
macro=
"title"
suffix=
".<br />"
/>
<text
macro=
"author"
prefix=
"By "
suffix=
". <br />"
/>
<text
variable=
"genre"
/>
<text
macro=
"publisher"
/>
<text
macro=
"event"
prefix=
"<i>"
suffix=
"</i>,"
/>
<text
macro=
"page"
prefix=
"pp. "
suffix=
", "
/>
<text
macro=
"issued"
/>
</group>
</else-if>
<else-if
type=
"thesis"
>
<group
delimiter=
", "
>
<text
macro=
"title"
/>
<text
variable=
"genre"
/>
<text
macro=
"publisher"
/>
<text
macro=
"issued"
/>
</group>
</else-if>
<else-if
type=
"webpage"
>
<group
delimiter=
", "
suffix=
". "
>
<text
macro=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<text
macro=
"issued"
/>
</group>
<text
macro=
"access"
/>
</else-if>
<else-if
type=
"patent"
>
<text
macro=
"title"
suffix=
", "
/>
<text
variable=
"number"
prefix=
"U.S. Patent "
/>
<text
macro=
"issued"
/>
</else-if>
<!-- Generic/Fallback Formats -->
<else-if
type=
"bill book graphic legal_case legislation motion_picture song"
match=
"any"
>
<group
delimiter=
", "
suffix=
". "
>
<text
macro=
"title"
/>
<text
macro=
"locators"
/>
</group>
<group
delimiter=
", "
>
<text
macro=
"publisher"
/>
<text
macro=
"issued"
/>
<text
macro=
"page"
/>
</group>
</else-if>
<else-if
type=
"article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage"
match=
"any"
>
<group
delimiter=
", "
>
<text
macro=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<text
macro=
"locators"
/>
<text
macro=
"publisher"
/>
<text
macro=
"page"
/>
<text
macro=
"issued"
/>
</group>
</else-if>
<else-if
type=
"chapter paper-conference"
match=
"any"
>
<group
delimiter=
", "
suffix=
", "
>
<text
macro=
"title"
/>
<text
variable=
"container-title"
prefix=
"in "
font-style=
"italic"
/>
<text
macro=
"locators"
/>
</group>
<text
macro=
"editor"
suffix=
" "
/>
<group
delimiter=
", "
>
<text
macro=
"publisher"
/>
<text
macro=
"issued"
/>
<text
macro=
"page"
/>
</group>
</else-if>
<else>
<group
delimiter=
", "
suffix=
". "
>
<text
macro=
"title"
/>
<text
variable=
"container-title"
font-style=
"italic"
/>
<text
macro=
"locators"
/>
</group>
<group
delimiter=
", "
>
<text
macro=
"publisher"
/>
<text
macro=
"page"
/>
<text
macro=
"issued"
/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
samples/jekyll-template/_publications/test.bib
0 → 100644
View file @
33b958d8
@book
{
ruby
,
abstract
=
{Blah blah blah blah blah blah blah blah ... }
,
title
=
{The Ruby Programming Language}
,
author
=
{Flanagan, David and Matsumoto, Yukihiro}
,
year
=
{2008}
,
public
=
{yes}
,
publisher
=
{O'Reilly Media}
}
@inproceedings
{
martin:2008klnew
,
abstract
=
{blah blah blah blah blah blah blah blah ... }
,
author
=
{m. g. f. martin}
,
doi
=
{10.1111/j.1933-1592.2008.00163.x }
,
booktitle
=
{philosophy and phenomenological research}
,
keywords
=
{perception}
,
month
=
{may}
,
number
=
{3}
,
pages
=
{674-681}
,
title
=
{commentary on action in perception}
,
volume
=
{76}
,
year
=
{2008}
}
@article
{
martin:2008kl
,
abstract
=
{blah blah blah blah blah blah blah blah ... }
,
author
=
{m. g. f. martin}
,
doi
=
{10.1111/j.1933-1592.2008.00163.x }
,
journal
=
{philosophy and phenomenological research}
,
keywords
=
{perception}
,
month
=
{may}
,
number
=
{3}
,
pages
=
{674-681}
,
title
=
{commentary on action in perception}
,
volume
=
{76}
,
year
=
{2008}
}
samples/jekyll-template/css/style.css
0 → 100644
View file @
33b958d8
body
{
font
:
16px
/
1.5
verdana
,
helvetica-neue
,
helvetica
,
arial
,
san-serif
;
background
:
black
;
color
:
#ececec
;
padding
:
0
;
margin
:
0
;
}
ul
{
margin
:
0
;
padding
:
0
;
}
a
{
color
:
#ccc
;
text-decoration
:
none
;
}
a
:hover
{
color
:
#ececec
;
text-decoration
:
underline
;
}
#main
{
width
:
960px
;
margin
:
0
auto
;
background
:
rgba
(
255
,
255
,
255
,
0.4
);
}
header
{
padding
:
0
10px
;
overflow
:
hidden
;
}
h1
{
margin
:
0
;
}
nav
ul
,
ul
.entries
{
list-style-type
:
none
;
}
nav
li
a
{
float
:
left
;
margin
:
5px
;
}
.content
{
padding
:
10px
;
}
ul
.entries
li
{
position
:
relative
;
margin
:
20px
auto
;
padding
:
20px
;
background
:
#ececec
;
width
:
600px
;
}
ul
.entries
img
{
width
:
600px
;
}
ul
.entries
li
h3
{
position
:
absolute
;
bottom
:
-18px
;
left
:
17px
;
font-size
:
2em
;
}
ul
.entries
a
{
color
:
#ececec
;
}
ul
.entries
a
:hover
{
color
:
#fff
;
}
footer
{
font-size
:
0.65em
;
text-align
:
center
;
}
samples/jekyll-template/index.html
0 → 100644
View file @
33b958d8
---
layout: default
no_sidebar: true
---
{% bibliography_hdp %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment