From de7b8d26d15d957cc114f7e35db24e2d3ac1fb61 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 2 Aug 2025 14:21:20 +0800 Subject: 修改CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 57 ++++++++++++++++++++++++-------------------------- assets/css/main.css | 38 +++++++-------------------------- images/post.png | Bin 52375 -> 0 bytes images/screenshot.png | Bin 0 -> 460191 bytes images/single.png | Bin 460191 -> 0 bytes images/tn.png | Bin 0 -> 52375 bytes theme.toml | 4 +++- 7 files changed, 37 insertions(+), 62 deletions(-) delete mode 100644 images/post.png create mode 100644 images/screenshot.png delete mode 100644 images/single.png create mode 100644 images/tn.png diff --git a/README.md b/README.md index ef12d8a..e73b5a6 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -# Concise - -一个简约的Hugo主题。专注于写作。 +### **Concise** +A minimalist Hugo theme focused on writing. ![homepage](./images/homepage.png) -![post](./images/post.png) -![single](./images/single.png) +![post](./images/tn.png) +![single](./images/screenshot.png) -## 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 ``` - 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/post.png b/images/post.png deleted file mode 100644 index 336532d..0000000 Binary files a/images/post.png and /dev/null differ diff --git a/images/screenshot.png b/images/screenshot.png new file mode 100644 index 0000000..706fbe7 Binary files /dev/null and b/images/screenshot.png differ diff --git a/images/single.png b/images/single.png deleted file mode 100644 index 706fbe7..0000000 Binary files a/images/single.png and /dev/null differ diff --git a/images/tn.png b/images/tn.png new file mode 100644 index 0000000..336532d Binary files /dev/null and b/images/tn.png differ diff --git a/theme.toml b/theme.toml index 2c9ff45..a407793 100644 --- a/theme.toml +++ b/theme.toml @@ -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" -- cgit v1.2.3