diff --git a/assets/css/_page/_home.scss b/assets/css/_page/_home.scss index fe7a9d7..f77e7c7 100644 --- a/assets/css/_page/_home.scss +++ b/assets/css/_page/_home.scss @@ -17,19 +17,21 @@ @include border-radius(100%); @include box-shadow(0 0 0 .3618em rgba(0, 0, 0, .05)); @include transition(all 0.4s ease); - } - - a img { - cursor: pointer; &:hover { position: relative; @include transform(translateY(-.75rem)); - cursor: pointer; } } } + .home-title { + font-size: 1.2rem; + font-weight: bold; + margin: 0; + padding: .4rem; + } + .home-subtitle { font-size: 1rem; font-weight: normal; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3ecc630..2541f69 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -142,6 +142,8 @@ enableEmoji = true gravatarEmail = "" # URL of avatar shown in home page avatarURL = "/images/avatar.png" + # title shown in home page + title = "" # subtitle shown in home page subtitle = "A Clean, Elegant but Advanced Hugo Theme" # whether to use typeit animation for subtitle @@ -340,6 +342,8 @@ enableEmoji = true gravatarEmail = "" # 主页显示头像的 URL avatarURL = "/images/avatar.png" + # 主页显示的网站标题 + title = "" # 主页显示的网站副标题 subtitle = "一个简洁、优雅且高效的 Hugo 主题" # 是否为副标题显示打字机动画 @@ -534,6 +538,8 @@ enableEmoji = true gravatarEmail = "" # URL of avatar shown in home page avatarURL = "/images/avatar.png" + # title shown in home page + title = "" # subtitle shown in home page subtitle = "Un thème Hugo simple, élégant et efficace" # whether to use typeit animation for subtitle diff --git a/exampleSite/content/posts/theme-documentation-basics.en.md b/exampleSite/content/posts/theme-documentation-basics.en.md index 94df5f0..c1a52e2 100644 --- a/exampleSite/content/posts/theme-documentation-basics.en.md +++ b/exampleSite/content/posts/theme-documentation-basics.en.md @@ -304,6 +304,8 @@ Please open the code block below to view the complete sample configuration :(far gravatarEmail = "" # URL of avatar shown in home page avatarURL = "/images/avatar.png" + # {{< version 0.2.5 >}} title shown in home page + title = "" # subtitle shown in home page subtitle = "This is My New Hugo Site" # whether to use typeit animation for subtitle diff --git a/exampleSite/content/posts/theme-documentation-basics.fr.md b/exampleSite/content/posts/theme-documentation-basics.fr.md index 517c07d..20c504f 100644 --- a/exampleSite/content/posts/theme-documentation-basics.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics.fr.md @@ -309,6 +309,8 @@ Please open the code block below to view the complete sample configuration :(far gravatarEmail = "" # URL of avatar shown in home page avatarURL = "/images/avatar.png" + # {{< version 0.2.5 >}} title shown in home page + title = "" # subtitle shown in home page subtitle = "This is My New Hugo Site" # whether to use typeit animation for subtitle diff --git a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md index d2afa2c..6924f41 100644 --- a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md @@ -311,6 +311,8 @@ hugo gravatarEmail = "" # 主页显示头像的 URL avatarURL = "/images/avatar.png" + # {{< version 0.2.5 >}} 主页显示的网站标题 + title = "" # 主页显示的网站副标题 subtitle = "这是我的全新 Hugo 网站" # 是否为副标题显示打字机动画 diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7a3bfe6..55dd489 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,11 +28,9 @@