Skip to content

Commit

Permalink
블로그 시즌 2 대규모 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
chopaovo committed Aug 15, 2024
1 parent 9601c2a commit f8d7c22
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 38 deletions.
14 changes: 9 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ minimal_mistakes_skin : "aqua" # "air", "aqua", "contrast", "dark", "dirt", "
# Site Settings
locale : "ko-KR"
rtl : # true, false (default) # turns direction of the page into right to left for RTL languages
title : "초파✪v✪"
title : "초파의 공부노트"
title_separator : "|"
subtitle : "Being happy never goes out of style."
name : "chopa"
description : "초파의 블로그입니다.✪v✪"
description : "초파의 공부노트"
url : "https://chopaovo.github.io"
baseurl : # the subpath of your site, e.g. "/blog"
repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
Expand Down Expand Up @@ -113,9 +113,9 @@ analytics:

# Site Author
author:
name : "chopa"
avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
bio : "초파의 블로그입니다."
name : "chopa✪v✪"
avatar : "/images/profile.png" # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
bio : "아자아자 홧팅이닷!"
location : "South Korea"
email :
links:
Expand Down Expand Up @@ -301,6 +301,10 @@ defaults:
share: true
related: true
show_date: true
toc: true
toc_sticky: true
toc_label: 목차
toc_icon: "fa-solid fa-paw"

date_format: "%Y-%m-%d"

9 changes: 9 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ main:
url: /categories/
- title: "Tag"
url: /tags/
- title: "By year"
url: /year-archive/
- title: "Search"
url: /search/

Expand All @@ -22,6 +24,13 @@ docs:
url: /tags/


counts:
- title: "카테고리"
use: true
- title: "태그"
use: false


# - title: "About"
# url: https://mmistakes.github.io/minimal-mistakes/about/
# - title: "Sample Posts"
Expand Down
4 changes: 4 additions & 0 deletions _includes/head/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

<!-- insert favicons. use https://realfavicongenerator.net/ -->

{% if page.use_math %}
{% include mathjax-support.html %}
{% endif %}

<!-- end custom head snippets -->
22 changes: 22 additions & 0 deletions _includes/mathjax-support.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
},
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$'] ],
processEscapes: true,
}
});
MathJax.Hub.Register.MessageHook("Math Processing Error",function (message) {
alert("Math Processing Error: "+message[1]);
});
MathJax.Hub.Register.MessageHook("TeX Jax - parse error",function (message) {
alert("Math Processing Error: "+message[1]);
});
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
64 changes: 48 additions & 16 deletions _includes/nav_list
Original file line number Diff line number Diff line change
@@ -1,27 +1,59 @@
{% assign navigation = site.data.navigation[include.nav] %}

{% assign categories_max = 0 %}
{% for category in site.categories %}
{% if category[1].size > categories_max %}
{% assign categories_max = category[1].size %}
{% endif %}
{% endfor %}

{% assign tags_max = 0 %}
{% for tag in site.tags %}
{% if tag[1].size > tags_max %}
{% assign tags_max = tag[1].size %}
{% endif %}
{% endfor %}

<nav class="nav__list">
{% if page.sidebar.title %}<h3 class="nav__title" style="padding-left: 0;">{{ page.sidebar.title }}</h3>{% endif %}
{% if navigation[0].use %}
<input id="ac-toc" name="accordion-toc" type="checkbox" />
<label for="ac-toc">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</label>
<ul class="nav__items">
{% for navname in include.nav %}
{% assign navigation = site.data.navigation[navname] %}
{% for nav in navigation %}
<li>
{% if nav.url %}
<a href="{{ nav.url | relative_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
{% else %}
<span class="nav__sub-title">{{ nav.title }}</span>
<span class="nav__sub-title">{{ navigation[0].title }}</span>
<li>
{% for i in (1..categories_max) reversed %}
{% for category in site.categories %}
{% if category[1].size == i %}
<ul style="padding-top: 0px; padding-bottom: 0px;">
<a href="/categories/#{{ category[0] | slugify }}">
<strong style="font-size: 16px;">{{ category[0] }}</strong> <span class="taxonomy__count" style="font-size: 14px;">{{ i }}</span>
</a>
</ul>
{% endif %}
{% endfor %}
{% endfor %}
</li>
</ul>
{% endif %}

{% if nav.children != null %}
<ul>
{% for child in nav.children %}
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
{% endfor %}
{% if navigation[1].use %}
<input id="ac-toc" name="accordion-toc" type="checkbox" />
<label for="ac-toc">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</label>
<ul class="nav__items">
<span class="nav__sub-title">{{ navigation[1].title }}</span>
<li>
{% for i in (1..tags_max) reversed %}
{% for tag in site.tags %}
{% if tag[1].size == i %}
<ul style="padding-top: 0px; padding-bottom: 0px;">
<a href="/tags/#{{ tag[0] | slugify }}">
<strong style="font-size: 16px;">{{ tag[0] }}</strong> <span class="taxonomy__count" style="font-size: 14px;">{{ i }}</span>
</a>
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endfor %}
</li>
</ul>
{% endif %}
</nav>
7 changes: 7 additions & 0 deletions _pages/year-archive-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Posts by Year (grid view)"
permalink: /year-archive-grid/
layout: posts
entries_layout: grid
author_profile: true
---
6 changes: 6 additions & 0 deletions _pages/year-archive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "연도별"
permalink: /year-archive/
layout: posts
author_profile: true
---
39 changes: 24 additions & 15 deletions _posts/2024-08-14-first.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,33 @@ layout: single
title: "첫 포스팅 입니다. 설레네요."
categories: coding
tag: [python, blog, jekyll]
sidebar:
nav: "counts"
toc: true
toc_sticky: true
toc_label: 목차
toc_icon: "fa-solid fa-paw"
author_profile: false
sidebar:
nav: "docs"
search: false
use_math: true
---

**[공지사항]** [지킬블로그 신규 업데이트 안내 드립니다.](https://mmistakes.github.io/minimal-mistakes/docs/utility-classes/#notices)
{: .notice--danger}
{: .notice--danger .text-center}

## 이미지 목차

### 이미지 세부 목차1

이미지입니다.

### 이미지 세부 목차2

이미지입니다.

### 이미지 세부 목차3

이미지입니다.

<div class="notice--success">
<h4>공지사항입니다.</h4>
Expand All @@ -22,6 +40,7 @@ search: false
</ul>
</div>


[버튼입니다](http://google.com){: .btn .btn--danger}

{% include video id="q0P3TSoVNDM" provider="youtube" %}
Expand All @@ -36,23 +55,13 @@ search: false



![chopalogo](/images/2024-08-14-first/chopalogo.png)


![chopalogo](/images/2024-08-14-first/chopalogo.png){: .img-width-half .align-center}

## 이미지 목차
$(x^2 + y^2 = z^2)$

### 이미지 세부 목차1

이미지입니다.

### 이미지 세부 목차2

이미지입니다.

### 이미지 세부 목차3

이미지입니다.



Expand Down
4 changes: 2 additions & 2 deletions _sass/minimal-mistakes/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}

@include breakpoint($x-large) {
width: calc(100% - #{$right-sidebar-width});
width: calc(100% );
}
}

Expand Down Expand Up @@ -513,7 +513,7 @@
.nav__title {
color: #fff;
font-size: $type-size-6;
background: $primary-color;
background: $toc-color;
border-start-start-radius: $border-radius;
border-start-end-radius: $border-radius;
}
Expand Down
8 changes: 8 additions & 0 deletions _sass/minimal-mistakes/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,11 @@ pre {
opacity: 1;
}
}

.img-width-half {
width: 50%;
}

.text-center {
text-align: center;
}
2 changes: 2 additions & 0 deletions _sass/minimal-mistakes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,5 @@ $navicon-width: 1.5rem !default;
$navicon-height: 0.25rem !default;
$global-transition: all 0.2s ease-in-out !default;
$intro-transition: intro 0.3s both !default;

$toc-color: #61cd95 !default;
Binary file added images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f8d7c22

Please sign in to comment.