aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryingyu5658 <yingyu5658@outlook.com>2025-08-02 14:21:20 +0800
committeryingyu5658 <yingyu5658@outlook.com>2025-08-02 14:21:20 +0800
commitde7b8d26d15d957cc114f7e35db24e2d3ac1fb61 (patch)
treebeea960a3aa393c7dcbf83c601c992135bac8ac4
parentc62f2e6bb85956d9967a645276addba7b0d64bea (diff)
downloadhugo-theme-concise-de7b8d26d15d957cc114f7e35db24e2d3ac1fb61.tar.gz
hugo-theme-concise-de7b8d26d15d957cc114f7e35db24e2d3ac1fb61.zip
修改CSS
-rw-r--r--README.md57
-rw-r--r--assets/css/main.css38
-rw-r--r--images/screenshot.png (renamed from images/single.png)bin460191 -> 460191 bytes
-rw-r--r--images/tn.png (renamed from images/post.png)bin52375 -> 52375 bytes
-rw-r--r--theme.toml4
5 files changed, 37 insertions, 62 deletions
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
<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
index 706fbe7..706fbe7 100644
--- a/images/single.png
+++ b/images/screenshot.png
Binary files differ
diff --git a/images/post.png b/images/tn.png
index 336532d..336532d 100644
--- a/images/post.png
+++ b/images/tn.png
Binary files 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"