# Hydejack Post Writing Tips & Tricks

Hydejack 테마를 이용하여 포스트를 작성할때 참고할 syntax 입니다.

## Build

bundle update

# livereload option enables auto reload of browser when file has been modified.

# if 'bundle exec' fails with ruby >= 3.0.0;
# https://github.com/jekyll/jekyll/issues/8523#issuecomment-751409319


## Writing

* this unordered seed list will be replaced by the toc
{:toc}

1. this ordered seed list will be replaced by the toc
{:toc}


You can add a note by adding the note class to a paragraph.

Example:

Markdown:

You can add a note.
{:.note}


Edit the note key in _data/strings.yml to change the wording of the default label. To add a note with a specific label, add a title attribute:

A custom label.
{:.note title="Attention"}


A custom label.

### Expand/Collapse

You can add expand/collapse contents with simple HTML.
<div markdown="1"> allows to use markdown features within.

Example:

Expand/Collapse Button

Hello World!
emphasised by markdown.

Markdown:

<details>
<summary>Expand/Collapse Button</summary>
<div markdown="1">
**Hello World!**<br>
emphasised by *markdown*.
</div>
</details>


You can add large text by adding the lead class to the paragraph.

Example:

Markdown:

You can add large text.


### Changing image size

You can change image size by adding css style to the paragraph after the image:

Example:

Markdown:

![Half-width image](https://placehold.it/800x100){: width="400" height="50"}


You can add captions to large images by adding the figcaption class to the paragraph after the image:

Example:

An optional caption for an image.

Markdown:

![Full-width image](https://placehold.it/800x100){:.lead width="800" height="100" loading="lazy"}

A caption for an image.
{:.figcaption}


You can make a quote “pop out” by adding the lead class.

Example:

You can make a quote “pop out”.

Markdown:

> You can make a quote "pop out".


You can gray out text by adding the faded class. Use this sparingly and for information that is not essential, as it is more difficult to read.

Example:

Markdown:

I'm faded, faded, faded.


Just like images, you can add captions to tables by adding the figcaption class to the paragraph after the table.

An optional caption for a table/image/code block
{:.figcaption}


### Small tables

If a table is small enough to fit the screen even on small screens, you can add the stretch-table class to force a table to use the entire available content width. Note that stretched tables can no longer be scrolled.

Default alignedLeft alignedCenter alignedRight aligned
First body partSecond cellThird cellfourth cell

An optional caption for a table

You can add the stretch-table class to a markdown table by putting {:.stretch-table} in line directly below the table.

Markdown:

| Default aligned |Left aligned| Center aligned  | Right aligned  |
|-----------------|:-----------|:---------------:|---------------:|
| First body part |Second cell | Third cell      | fourth cell    |
{:.stretch-table}