使用 R blogdown 包,很容易建立个人网站。我喜欢yihui/hugo-xmin主题的简单风格。我在 Windows 操作系统上的文件夹“c:/test”中使用 R blogdown 包构建了一个站点:
install.packages('blogdown')
setwd('c:/test')
blogdown::new_site(theme='yihui/hugo-xmin')
我将以下文本写入文件c:/test/content/post/
夹中的 .md 文件:
---
title: "Summer Holiday in Southern France (VIII): Return to Nice (Videos) 带着俩娃游南法 (第十天): 重返尼斯 (视频)"
author: dapeng
date: "2017-08-17 15:22:06"
slug: summer-holiday-in-southern-france-viii-return-to-nice-videos
categories: [cn]
tags:
- cn
---
my text.
然后我预览了网站:
blogdown::serve_site()
但是,帖子标题如下所示:
我想知道如何更改标题中的行高,默认情况下太小了。我像这样添加了一个line-height
命令/themes/hugo-xmin/static/css/style.css
:
.menu, .article-meta, footer { text-align: center; }
.title { font-size: 1.1em; }
footer a { text-decoration: none; }
hr {
border-style: dashed;
line-height: 5em;
color: #ddd;
}
但它没有用。
感谢帮助!