diff options
| -rw-r--r-- | README.md | 57 | ||||
| -rw-r--r-- | assets/css/main.css | 38 | ||||
| -rw-r--r-- | images/screenshot.png (renamed from images/single.png) | bin | 460191 -> 460191 bytes | |||
| -rw-r--r-- | images/tn.png (renamed from images/post.png) | bin | 52375 -> 52375 bytes | |||
| -rw-r--r-- | theme.toml | 4 |
5 files changed, 37 insertions, 62 deletions
@@ -1,25 +1,25 @@ -# Concise - -一个简约的Hugo主题。专注于写作。 +### **Concise** +A minimalist Hugo theme focused on writing.  - - + + -## Features +--- -- 极致简约设计 -- 无多余功能 -- 回归博客本质 +### **Features** +- **Extremely Minimalist Design** +- **No Unnecessary Features** +- **Focus on the Essence of Blogging** -## Quickstart +--- +### **Quick Start** ```bash git clone https://github.com/yingyu5658/hugo-theme-concise.git themes/concise ``` -在站点根目录`hugo.toml`中填入以下配置: - +Add the following configuration to `hugo.toml` in your site's root directory: ```toml baseURL = "..." publishDir = "public" @@ -34,15 +34,15 @@ posts = "YOUR_PERMALINKS" [params] [[params.homepage.content]] -name = "文章归档" +name = "Archives"# Posts archive url = "/post" [[params.homepage.content]] -name = "友情链接" +name = "Links"# Friend links url = "/links" [[params.homepage.content]] -name = "关于" +name = "About" url = "/about" [[params.homepage.content]] @@ -53,28 +53,25 @@ url = "/atom.xml" content = "Email: YOUR_EMAIL" [markup.highlight] -noClasses = true -style = "emacs" #github、emacs、solarized-light 等 +noClasses = true +style = "emacs"# Options: github, emacs, solarized-light, etc. [outputFormats.RSS] - baseName = "atom" +baseName = "atom" ``` -## Comments +--- -- 支持Waline评论系统 - -在`layouts/_default/single.html`中修改serverURL +### **Comments** +- **Waline Comment System Support** +Modify `serverURL` in `layouts/_default/single.html`: ```html <script type="module"> - import { init } from 'https://unpkg.com/@waline/client@v3/dist/waline.js'; - init({ - el: '#waline', - serverURL: '' - ^^^^^^^ - 替换为你的serverURL - }); +import { init } from 'https://unpkg.com/@waline/client@v3/dist/waline.js'; +init({ +el: '#waline', +serverURL: '' // ← Replace with your Waline server URL +}); </script> ``` - diff --git a/assets/css/main.css b/assets/css/main.css index c9c861f..5ce35b1 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -10,7 +10,8 @@ body { color: #222; line-height: 1.5; margin: auto; - padding: auto; + max-width: 750px; + height: 100%; } time { @@ -44,35 +45,6 @@ time { font-weight: bold; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - header { border-bottom: #d3d3d3 1px solid; border-width: 0.1px; @@ -122,10 +94,14 @@ img { } .title { - margin-top: 30px; + margin-top: 0; line-height: 20px; } +h1.title { + padding-top: 30px; +} + .subtitle { line-height: 0px; } diff --git a/images/single.png b/images/screenshot.png Binary files differindex 706fbe7..706fbe7 100644 --- a/images/single.png +++ b/images/screenshot.png diff --git a/images/post.png b/images/tn.png Binary files differindex 336532d..336532d 100644 --- a/images/post.png +++ b/images/tn.png @@ -4,7 +4,7 @@ licenselink = 'https://github.com/yingyu5658/hugo-theme-concise' description = 'A concise hugo theme. Concentrate on writting.' # The home page of the theme, where the source can be found -homepage = '' +homepage = 'https://github.com/yingyu5658/hugo-theme-concise' # If you have a running demo of the theme demosite = 'https://github.com/yingyu5658/hugo-theme-concise/tree/main/exampleSite' @@ -17,3 +17,5 @@ features = ['some', 'awesome', 'features'] [author] name = 'yingyu5658' homepage = 'https://www.yingyu5658.me/' + +min_version = "0.41" |
