From 4def8069cd7f7b38ba8828037427f6a7dccbe1e5 Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Mon, 05 Apr 2021 14:05:40 +0000
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 exampleSite/config.toml      |    2 +-
 layouts/_default/single.html |    4 ++--
 i18n/ko.toml                 |   27 +++++++++++++++++++++++++++
 assets/css/style.css         |    4 +++-
 README.md                    |   10 ++++++++++
 5 files changed, 43 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index a10b27a..4971ef8 100644
--- a/README.md
+++ b/README.md
@@ -165,6 +165,16 @@
 ```
 Put any content into the `_index.md` file located in the content directory. If you want, you can also have some static text and the posts below. In such case, simply keep the `mainSections = ["post"]` and put any static content in the `_index.md`.
 
+### Rename post section
+If you want to have a different post section identifier, such as `/blog`, you can specify the section name using `postSectionName`:
+
+```toml
+[params]
+  postSectionName = "blog"
+```
+
+If the parameter is not set, it will default to `post`.
+
 ### Show full post content on the home page
 If you prefer the full content of your posts to appear on the home page rather than a summary of each post, then set the parameter `fullPostContent` to `true`.
 ```toml
diff --git a/assets/css/style.css b/assets/css/style.css
index 1601685..8a592d2 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -369,6 +369,8 @@
     text-decoration: none;
     letter-spacing: 1px;
     color: var(--heading-color);
+    overflow-wrap: break-word;
+    word-wrap: break-word;
 }
 
 .post .post-title a:hover {
@@ -1144,4 +1146,4 @@
     border: 1px solid var(--form-button-hover-border-color);
 }
 
-/* (CONTACT) FORM END */
\ No newline at end of file
+/* (CONTACT) FORM END */
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e9b6f45..b7f2f7a 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -44,7 +44,7 @@
 # CommentoURL = "https://commento.example.com/js/commento.js"
 # Read More links for truncated summaries
 # readMore = true
-
+# postSectionName = "blog"
 
 [params.simpleAnalytics]
 # enable = true
diff --git a/i18n/ko.toml b/i18n/ko.toml
new file mode 100644
index 0000000..2647044
--- /dev/null
+++ b/i18n/ko.toml
@@ -0,0 +1,27 @@
+[category]
+other = "분류"
+
+[tag]
+other = "태그"
+
+[reading_time]
+one = "읽는 시간 1분"
+other = "읽는 시간 {{ .Count }}분"
+
+[page_not_found]
+other = "페이지를 찾을 수 없음"
+
+[page_does_not_exist]
+other = "죄송하지만, 이 페이지는 존재하지 않습니다."
+
+[head_back]
+other = "<a href=\"{{ . }}\">홈페이지</a>로 돌아가실 수 있습니다."
+
+[comments]
+other = "댓글"
+
+[send]
+other = "보내기"
+
+[read_more]
+other = "더 읽기"
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index ffaa986..b606eb2 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,7 +6,7 @@
             {{ end }}
             <div class="post-title">
                 <h3>{{ .Title }}</h3>
-                {{ if eq .Type "post"}}
+                {{ if or (eq .Type "post") (eq .Type .Site.Params.postSectionName) }}
                     <div class="info">
                         <em class="fas fa-calendar-day"></em>
                         <span class="date">{{ if isset .Site.Params "singledateformat" }} 
@@ -33,7 +33,7 @@
             </div>
         </div>
 
-        {{ if and (eq .Type "post") (ne .Page.Params.disableComments true) }}
+        {{ if and (or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (ne .Page.Params.disableComments true) }}
             {{- if .Site.DisqusShortname -}}
                 <div id="fb_comments_container">
                     <h2>{{ i18n "comments" }}</h2>

--
Gitblit v1.10.0