diff options
| -rw-r--r-- | hugo.toml | 2 | ||||
| -rw-r--r-- | layouts/recordings/single.html | 20 | ||||
| -rw-r--r-- | static/macprogs.csv | 3 |
3 files changed, 5 insertions, 20 deletions
@@ -10,7 +10,7 @@ buildFuture = true [markup] [markup.goldmark] [markup.goldmark.renderer] - hardWraps = true + hardWraps = false unsafe = true [params] diff --git a/layouts/recordings/single.html b/layouts/recordings/single.html index b6186f3..745ff0b 100644 --- a/layouts/recordings/single.html +++ b/layouts/recordings/single.html @@ -30,23 +30,11 @@ h1{margin:0 0 6px} .content :is(h1,h2,h3){margin-top:1.2em} .content img, .content video{max-width:100%;height:auto} - /* 모바일에서 줄바꿈 조정 */ + /* 모바일에서 한글 단어 단위로 줄바꿈 */ @media (max-width: 768px) { - .content br:not(.keep) { - display: none; - } - .content p { - margin: 0.5em 0; - word-wrap: break-word; - overflow-wrap: break-word; - } - .content a { - word-break: break-all; - overflow-wrap: break-word; - } - /* 문단 구분은 유지하되, 단일 줄바꿈은 무시 */ - .content p + p { - margin-top: 1em; + .content { + word-break: keep-all; /* 한글 단어 단위로 줄바꿈 */ + overflow-wrap: break-word; /* 긴 단어는 강제 줄바꿈 */ } } </style> diff --git a/static/macprogs.csv b/static/macprogs.csv index c39807c..d9e782d 100644 --- a/static/macprogs.csv +++ b/static/macprogs.csv @@ -119,6 +119,3 @@ C,xquartz,is an open-source version of the x.org x window system. T,zegervdv/zathura,is a CLI pdf viewer. ,zoxide,is a shell extension to navigate filesystem faster. ,7-Zip,is a file archiever with a high compression ratio. - - - |
