This repo contains problems/solutions from across the web (leetcode, geeks4geeks etc)
- Go to _posts directory, choose a directory and follow existing format/naming convention to add new post.
- If problem can belong to multiple folders, choose most appropriate folder (say dp provides optimal solution, choose dp even if problem can be solved using different techniques). However, your choice here really does not matter for jekyll, see next. This directory structure is just to partition into meaningful sub-folders and can be useful in future.
- Take care to set frontmatter variables - layout, title, preview, date, categories, lcid. lcid can be empty if it's not leetcode problem.
categories
is important because it is the one that determines actually category on website. This can be either space separate list or yaml list
- Add .md file in _category folder. That's it!
- We're not using any plugin for category. Refer to this article for details
- Refer to csutils\Program.cs on how to regenerate FrontMatter or rename files or generate search index
- Run "jekyll new ." in new directory
- Run jekyll build and verify basic site working.
- Add _layout etc to new site as appropriate
- Backup of minima layout is available in root dir
minima-2.5.1.7z
- Capitalize filter is used to upper case category title.
- You can comment using
- {% comment %}
- {% endcomment %}
- Navigational lists can be built in many ways. Refer doc
- You can inspect variables when jekyll compiler runs using Octopress debugger. You need to install gem if not already done. Put
{%debug%}
after the line where variable is assigned value and then usescopes
command to see its value. You can usecontinue
to step through the loop. Refer to official doc page. - You can add contact form using this . Putting email is probably the easiest way to let people reach you, so this is low pri.
- You can do block comments using
ctrl + /
- Url structure is controlled using
permalink
in_config.yml
Refer this article - Convert existing site to jekyll using this