포스팅에서 이미지를 첨부할 때, 기본적으로 아무 위치에나 넣어도 되지만 경로의 맨 앞에는 ‘/’가 있어야 한다.
카테고리를 추가하려면 다음과 같다.
1
2
3
4
5
6
7
title: "Categories1" # 카테고리 이름(수정할 것)
layout: category
permalink: /categories/categories1/ # url(수정할 것)
author_profile: true
taxonomy: Categories1(수정할 것)
sidebar:
nav: "categories"
_layouts/deafult.html에 `
1
2
3
4
5
6
"HTML-CSS": {
availableFonts: ["TeX"],
linebreaks: {
automatic: true
}
} });
let initialWidth = window.innerWidth; window.addEventListener(‘resize’, MJrerender); let t = -1; let delay = 250;
function MJrerender() { // Check if the width has actually changed if (window.innerWidth === initialWidth) { return; }
initialWidth = window.innerWidth;
if (t >= 0) { // If we are still waiting, then the user is still resizing => // postpone the action further! window.clearTimeout(t); } t = window.setTimeout(function() { MathJax.Hub.Queue([“Rerender”,MathJax.Hub]); t = -1; // Reset the handle }, delay); } </script>
` 넣기
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": {
availableFonts: ["TeX"],
linebreaks: {
automatic: true
}
}
});
let initialWidth = window.innerWidth;
window.addEventListener('resize', MJrerender);
let t = -1;
let delay = 250;
function MJrerender() {
// Check if the width has actually changed
if (window.innerWidth === initialWidth) {
return;
}
initialWidth = window.innerWidth;
if (t >= 0) {
// If we are still waiting, then the user is still resizing =>
// postpone the action further!
window.clearTimeout(t);
}
t = window.setTimeout(function() {
MathJax.Hub.Queue(["Rerender",MathJax.Hub]);
t = -1; // Reset the handle
}, delay);
}
</script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML-full,Safe,https://DOMAIN/config.js">
</script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
1
2
3
4
5
6
mjx-container {
display: block;
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
}