Skip to content

Commit a0e4854

Browse files
committed
Added lsp
1 parent a4a4551 commit a0e4854

File tree

11 files changed

+414
-255
lines changed

11 files changed

+414
-255
lines changed

README.md

Lines changed: 1 addition & 249 deletions
Original file line numberDiff line numberDiff line change
@@ -1,249 +1 @@
1-
# Centrarium [![Circle CI](https://circleci.com/gh/bencentra/centrarium/tree/master.svg?style=svg)](https://circleci.com/gh/bencentra/centrarium/tree/master)
2-
3-
A simple yet classy theme for your Jekyll website or blog. Customizable to fit your style or brand.
4-
5-
Built with these awesome libraries:
6-
* [Bourbon][bourbon]
7-
* [Neat][neat]
8-
* [Bitters][bitters]
9-
* [Refills][refills]
10-
* [Font Awesome][fontawesome]
11-
* [HighlightJS][highlightjs]
12-
* [Lightbox][lightbox]
13-
14-
Here's a [demo](http://bencentra.com/centrarium). It also works on [GitHub Pages](http://bencentra.github.io/centrarium/). I also use it for [my own website][bencentra].
15-
16-
Inspired by dirkfabisch's [Mediator](https://github.com/dirkfabisch/mediator) theme, which I previously used for my own blog, as well as [Type Theme](http://rohanchandra.github.io/type-theme/).
17-
18-
Cover image by Chris M. Morris ([flickr][cover]).
19-
20-
## Features
21-
22-
This theme comes with a number of features, including:
23-
* Easily customizable fonts and colors
24-
* Cover images for your homepage and blog posts
25-
* Pagination enabled by default
26-
* Archiving of posts by categories and tags
27-
* Syntax highlighting for code snippets
28-
* Disqus integration for post comments
29-
* Lightbox for viewing full-screen photos and albums
30-
* Google Analytics with custom page name tracking
31-
* Social media integration (Twitter, Facebook, LinkedIn, GitHub, and more)
32-
33-
## Installation
34-
35-
If you're just getting started with Jekyll, you can use this repository as a starting point for your own site. Just [download this project](https://github.com/bencentra/centrarium/archive/master.zip) and add all the files to your project. Add your blog posts to the `posts/` directory, and create your pages with the proper Jekyll front matter (see `posts.html` for an example).
36-
37-
If your site already uses Jekyll, follow these steps:
38-
39-
1. Replace the files in the `_includes`, `_layouts`, and `_sass` directories with those from this project.
40-
2. Replace your `index.html` with the one from this project, and copy over the `posts.html` file as well.
41-
3. Copy the contents of the `_config.yml` from this project in to yours, and update the necessary information.
42-
43-
Don't forget to install Jekyll and other dependencies:
44-
```bash
45-
# cd into project directory
46-
cd centrarium
47-
# install Bundler if you don't have it already
48-
gem install bundler
49-
# install jekyll, jekyll-archives, jekyll-sitemap, and jekyll-paginate
50-
bundle install
51-
```
52-
53-
## Stackbit Deploy
54-
55-
This theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful.
56-
57-
[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/bencentra/centrarium)
58-
59-
## Updating Header and Footer Links
60-
61-
Links in the header and footer are auto-generated. Links will be made for all files marked `category: page`, that have a title, and have the custom `main_nav` front-matter variable set to `true`. You can modify the rules for link generation in `_layouts/nav_links.html`.
62-
63-
## Updating Styles
64-
65-
If you want change the CSS of the theme, you'll probably want to check out these files in the `_sass/` directory:
66-
67-
* `base/_variables.scss`: Common values found throughout the project, including base font size, font families, colors, and more.
68-
* `base/_typography.scss`: Base typography values for the site (see `typography.html` for a demonstration)
69-
* `_layout.scss`: The primary styles for the layout and design of the theme.
70-
71-
### Important Variables
72-
73-
Here are the important variables from `base/_variables.scss` you can tweak to customize the theme to your liking:
74-
75-
* `$base-font-family`: The font-family of the body text. Make sure to `@import` any new fonts!
76-
* `$heading-font-family`: The font-family of the headers. Make sure to `@import` any new fonts!
77-
* `$base-font-size`: The base font-size. Defaults to $em-base from Bourbon (`bourbon/settings/_px-to-em.scss`).
78-
* `$base-font-color`: The color for the body text.
79-
* `$action-color`: The color for links in the body text.
80-
* `$highlight-color`: The color for the footer and page headers (when no cover image provided).
81-
82-
## Configuration
83-
84-
All configuration options can be found in `_config.yml`.
85-
86-
### Site Settings
87-
88-
* __title:__ The title for your site. Displayed in the navigation menu, the `index.html` header, and the footer.
89-
* __subtitle:__ The subtitle of your site. Displayed in the `index.html` header.
90-
* __email:__ Your email address, displayed with the Contact info in the footer.
91-
* __name:__ Your name. _Currently unused._
92-
* __description:__ The description of your site. Used for search engine results and displayed in the footer.
93-
* __baseurl:__ The subpath of your site (e.g. /blog/).
94-
* __url:__ The base hostname and protocol for your site.
95-
* __cover:__ The relative path to your site's cover image.
96-
* __logo:__ The relative path to your site's logo. Used in the navigation menu instead of the title if provided.
97-
98-
### Build Settings
99-
100-
* __markdown:__ Markdown parsing engine. Default is kramdown.
101-
* __inter_post_navigation:__ Whether to render links to the next and previous post on each post.
102-
103-
### Pagination settings
104-
105-
See the documentation for [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration) for more details.
106-
107-
### Archive Settings
108-
109-
Although this theme comes with a combined, categorized archive (see `posts.html`), you can enable further archive creation thanks to [jekyll-archives][archives]. Support for category and tag archive pages is included, but you can also add your own archive pages for years, months, and days.
110-
111-
To change archive settings, see the __jekyll-archives__ section of `_config.yml`:
112-
113-
```yml
114-
jekyll-archives:
115-
enabled:
116-
- categories
117-
- tags
118-
layout: 'archive'
119-
permalinks:
120-
category: '/category/:name/'
121-
tag: '/tag/:name/'
122-
```
123-
124-
To fully disable the archive, remove the __jekyll-archives__ section AND remove it from the __gems__ list.
125-
126-
__NOTE:__ the Jekyll Archive gem is NOT included with GitHub pages! Disable the archive feature if you intend to deploy your site to GitHub pages. [Here is a guide](http://ixti.net/software/2013/01/28/using-jekyll-plugins-on-github-pages.html) on how you can use the `jekyll archive` gem with GitHub pages. The general gist: compile the Jekyll site locally and then push that compiled site to GitHub.
127-
128-
A sitemap is also generated using [jekyll-sitemap][sitemap].
129-
130-
### Syntax Highlighting Settings
131-
132-
Inside of a post, you can enable syntax highlighting with the `{% highlight <language> %}` Liquid tag. For example:
133-
134-
```
135-
{% highlight javascript %}
136-
function demo(string, times) {
137-
for (var i = 0; i < times; i++) {
138-
console.log(string);
139-
}
140-
}
141-
demo("hello, world!", 10);
142-
{% endhighlight %}
143-
```
144-
145-
You can change the [HighlightJS theme][highlightjs_theme] in `_config.yml`:
146-
147-
```yml
148-
highlightjs_theme: "monokai_sublime"
149-
```
150-
151-
### Disqus Settings
152-
153-
You can enable [Disqus][disqus] comments for you site by including one config option:
154-
155-
* __disqus_shortname:__ Your Disqus username. If the property is set, Disqus comments will be included with your blog posts.
156-
157-
If you want to disable Disqus for only a specific page, add __disqus_disabled: true__ to the page's front matter.
158-
159-
### Google Analytics Settings
160-
161-
You can enable basic [Google Analytics][ga] pageview tracking by including your site's tracking ID:
162-
163-
* __ga_tracking_id__: The Tracking ID for your website. You can find it on your Google Analytics dashboard. If the property is set, Google Analytics will be added to the footer of each page.
164-
165-
### Social Settings
166-
167-
Your personal social network settings are combined with the social sharing options. In the __social__ section of `_config.yml`, include an entry for each network you want to include. For example:
168-
169-
```yml
170-
social:
171-
- name: Twitter # Name of the service
172-
icon: twitter # Font Awesome icon to use (minus fa- prefix)
173-
username: TheBenCentra # (User) Name to display in the footer link
174-
url: https://twitter.com/TheBenCentra # URL of your profile (leave blank to not display in footer)
175-
desc: Follow me on Twitter # Description to display as link title, etc
176-
share: true # Include in the "Share" section of posts
177-
```
178-
179-
### Social Protocols
180-
181-
Using the Open Graph Protocol or Twitter Card metadata, you can automatically set the images and text used when people share your site on Twitter or Facebook. These take a bit of setup, but are well worth it. The relevant fields are at the end of the `_config.yml` file.
182-
183-
Also there is another protocol, the Open Source protocol, for saying where your site is hosted if the source is open. This helps develops more easily see your code if they are interested, or if they have issues. For more, see http://osprotocol.com.
184-
185-
### Category Descriptions
186-
187-
You can enhance the `posts.html` archive page with descriptions of your post categories. See the __descriptions__ section of `_config.yml`:
188-
189-
```yml
190-
# Category descriptions (for archive pages)
191-
descriptions:
192-
- cat: jekyll
193-
desc: "Posts describing Jekyll setup techniques."
194-
```
195-
196-
### Custom Page-Specific Javascript
197-
198-
You can add page-specific javascript files by adding them to the top-level `/js` directory and including the filename in the __custom_js__ page's configuration file:
199-
200-
```yml
201-
# Custom js (for individual pages)
202-
---
203-
layout: post
204-
title: "Dummy Post"
205-
date: 2015-04-18 08:43:59
206-
author: Ben Centra
207-
categories: Dummy
208-
custom_js:
209-
- Popmotion
210-
- Vue
211-
---
212-
```
213-
214-
The `/js/` directory would contain the corresponding files:
215-
216-
```bash
217-
$ ls js/
218-
Popmotion.js Vue.js
219-
```
220-
221-
## Contributing
222-
223-
Want to help make this theme even better? Contributions from the community are welcome!
224-
225-
Please follow these steps:
226-
227-
1. Fork/clone this repository.
228-
2. Develop (and test!) your changes.
229-
3. Open a pull request on GitHub. A description and/or screenshot of changes would be appreciated!
230-
4. I ([Ben Centra](https://github.com/bencentra)) will review and merge the pull request.
231-
232-
## License
233-
234-
MIT. See [LICENSE.MD](https://github.com/bencentra/centrarium/blob/master/LICENSE.md).
235-
236-
[bencentra]: http://bencentra.com
237-
[bourbon]: http://bourbon.io/
238-
[neat]: http://neat.bourbon.io/
239-
[bitters]: http://bitters.bourbon.io/
240-
[refills]: http://refills.bourbon.io/
241-
[fontawesome]: http://fortawesome.github.io/Font-Awesome/
242-
[highlightjs]: https://highlightjs.org/
243-
[highlightjs_theme]: https://highlightjs.org/static/demo/
244-
[lightbox]: http://lokeshdhakar.com/projects/lightbox2/
245-
[cover]: https://www.flickr.com/photos/79666107@N00/3796678503/in/photolist-6MuYfc-61Rtft-8XzPmY-a6Cozm-54eSMs-6oMJmk-aepZQq-9YkPHp-fiAEGE-dVP4Z5-oxPyJP-atKUFJ-9YHWA5-9YF2f2-9YF2gR-9YHVGN-9YHVvs-qZYYQ6-4JqP2i-a2peGy-9YHVUm-9YHVF7-9YHVCL-9YF3NK-cYteMo-aiPmb9-69dtAi-9YF21x-4aWpmn-7SLiUL-77pqVX-8vXbYv-4HGDSH-a2h5P1-8LsZrQ-9aj1ez-auPZ7q-9YHVMd-9YF2bi-9YF23D-8LpWpn-9an6KL-9YHVZL-dqZ3Cz-2GuvnX-9YHWUo-9YHVWd-p5Roh5-i1zTbv-6sYrUT
246-
[disqus]: https://disqus.com/
247-
[ga]: http://www.google.com/analytics/
248-
[archives]: https://github.com/jekyll/jekyll-archives
249-
[sitemap]: https://github.com/jekyll/jekyll-sitemap
1+
Centrarium theme taken from: Centrarium [![Circle CI](https://circleci.com/gh/bencentra/centrarium/tree/master.svg?style=svg)](https://circleci.com/gh/bencentra/centrarium/tree/master)

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ title: Kevin Xie
1313
subtitle: "\"Real knowledge is to know the extent of one's ignorance.\""
1414
1515
name: Kevin Xie
16-
description: >
17-
# A simple yet classy theme for your Jekyll website or blog.
16+
description: Personal academic website of Kevin Xie. Graduate student at UofT, Vector Institute and Researcher at Nvidia.
17+
18+
# A simple yet classy theme for your Jekyll website or blog.
1819
# Base URL of site (i.e. /blog). It should always start with a slash,
1920
# and never end with a slash. Set it to a blank value if hosting at the
2021
# root of your server.

_drafts/about.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
main_nav: true
6+
---
7+
8+
![alt text]({{ site.baseurl }}/assets/me.png "Profile Picture"){:.profile}
9+
10+
I am a Masters student in the Department of Computer Science at the University of Toronto, gratefully co-supervised by Florian Shkurti and Sanja Fidler.
11+
Before that I did my undergrad in Engineering Physics at UBC, where I had the great pleasure of working with Michiel van de Panne and his group.
12+
13+
14+
This site is based on Centrarium, a custom theme for Jekyll, made by [Ben Centra][bencentra] available in this [GitHub repository](https://github.com/bencentra/centrarium).
15+
16+
[bencentra]: http://bencentra.com

_drafts/posts.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: page
3+
title: "Posts"
4+
permalink: /posts/
5+
main_nav: true
6+
---
7+
8+
Welcome to Nescient Musings. This is the beginnings of my blog.
9+
I heard that you become who you tell yourself you are.
10+
That narratives, usually false, constructed about who we are steer us in who we become.
11+
What a neat thought.
12+
The purpose of this blog is to serve me as a chronicle of thoughts and ideas
13+
that would interest the person I want to become and (with luck) some that I hope will stay with me forever.
14+
15+
If by any chance, you are not future me, know that I am pleasantly delighted and hope you find some of these posts worth their reading time.
16+
Who am I? Like everyone, I am the sum of my experiences.
17+
Whenever I speak of "my" ideas or thoughts, what I really mean is the amalgamation of ideas I have picked up from others (and which I will do my best to explicitly reference when practical).
18+
19+
I wouldn't consider myself an expert in anything and neither have I made any meaningful contributions to human knowledge yet.
20+
Take every post with a grain of salt.
21+
I am simply trying to organize what I have gathered so far and put my opinions on paper.
22+
23+
{% for category in site.categories %}
24+
{% capture cat %}{{ category | first }}{% endcapture %}
25+
<h2 id="{{cat}}">{{ cat | capitalize }}</h2>
26+
{% for desc in site.descriptions %}
27+
{% if desc.cat == cat %}
28+
<p class="desc"><em>{{ desc.desc }}</em></p>
29+
{% endif %}
30+
{% endfor %}
31+
<ul class="posts-list">
32+
{% for post in site.categories[cat] %}
33+
<li>
34+
<strong>
35+
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
36+
</strong>
37+
<span class="post-date">- {{ post.date | date_to_long_string }}</span>
38+
</li>
39+
{% endfor %}
40+
</ul>
41+
{% if forloop.last == false %}<hr>{% endif %}
42+
{% endfor %}
43+
<br>

0 commit comments

Comments
 (0)