Latest Posts
-
Hány vízmolekula van az 1 mm átmérőjű gömbben?
Az Avogadro féle szám (1 mol anyagban található molekulák száma):
-
use collections in Jekyll
Add to
_config.yml
in the root the following lines:collections: # author collections, each author has their own page authors: output: true
-
Jekyll's blogging
In true Jekyll style, blogging is powered by text files only.
Blog posts live in a folder called_posts
. The filename for posts have a special format: the publish date, then a title, followed by an extension. Sample post (_posts/2020-04-04-bananas.md
):--- layout: post author: emi --- A banana is an edible fruit.
-
use assets in Jekyll
Inlining the styles used in_includes/mynavigation.html
is not a best practice, let’s style the current page with a class instead.
<nav> ¤ {
% for item in site.data.mynavigation %} <a href="{{s item.link | relative_url } }" {% if page.url == item.link %}class="current"{% endif %}> {{ item.name } } </a> ¤ {% endfor %} </nav> -
includes in Jekyll's layouts
The
include
tag allows you to include content from another file stored in an_includes
folder. Includes are useful for having a single source for source code that repeats around the site or for improving the readability.
Navigation source code can get complex so sometimes it’s nice to move it into an include.Jekyll supports loading data from YAML, JSON, and CSV files located in a
_data
directory. Data files are a great way to separate content from source code to make the site easier to maintain.
Create a data file for the navigation at_data/mynavigation.yml
with the following:- name: Home link: / - name: About link: /about.html
-
page layouts Jekyll's blog
Layouts are templates that wrap around your content. They live in a directory called
_layouts
in the root. These layouts would be override the Minima-theme layouts.
Create your first layout at_layouts/default.html
with the following content:--- layout: default # we get Minima's default ---
<!doctype html><html><head><meta charset="utf-8"><title>{{ page.title } }</title></head><body>{{ content } }</body></html> -
use liquid in Jekyll
Please refere Liquid and Front matter (jekyllrb.com).
Insert in the
index.html
the yellow lines: -
create blog with Jekyll
Create a new repository
https://github.com/kissjgabi/kiss.git
on the github.Create a root directory for the project on your local computer and use it:
-
start with Jekyll
First follow the Quickstart's instructions to install a full Ruby development environment, Jekyll and bundler gems. Then for the first time the Step by Step Tutorial is very useful.
The essence of the tutorial is described here in the following.
-
s.b.s. some styles
Step by step -
Work
Emails: Keep emails to 5 sentences or less. It saves time for both you and the recipient. Being concise also helps you to be clearer and more direct, which will reduce miscommunication issues later on.
-
Relationships
Listening: Take what people say at face value. There is no need to waste your energy wondering what their ulterior motive is, or if they are not telling the truth about things. Keep it simple and accept their truth.
-
Productivity
Procrastination: If you are avoiding a particular task, you are just wasting your time, and possibly other people’s time too. Set a timer for 25 minutes and use that time to get the task done. If you haven’t finished within that time period, take a 5 minute break, and set the timer again and resume working toward completing the task. This is called the Pomodoro Technique. It really works.
-
Lifestyle
Work/Life balance: No matter what work you do, create boundaries. When it’s work time, focus on your work. When it’s not work time, focus on your life. This is super simple, yet not everyone does it. You’ll find you are more productive in and out of work, have a better family life and feel happier.
-
Health
Nutrition: Instead of agonizing over which diet you should choose to go on, simply ask yourself what the healthiest foods are to eat. You already know the answer. Stick to that.
-
Welcom to Jekyll
You’ll find this post in your
_posts
directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to runjekyll serve
, which launches a web server and auto-regenerates your site when a file is updated. -
This post demonstrates markdown content styles
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit.