diff --git a/README.md b/README.md index 8f6dcb68..58c03e7b 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,14 @@ widgets: google_analytics: favicon: /favicon.png twitter: + +# Header links +# Each name must correspond to the icon name of Fork Awesome +# https://forkaweso.me/Fork-Awesome/icons/ +#links: +# github: https://github.com/your_github_account +# twitter: https://twitter.com/your_twitter_account +# telegram: https://t.me/your_telegram_account ``` - **menu** - Navigation menu @@ -87,6 +95,7 @@ twitter: - **google_analytics** - Google Analytics ID - **favicon** - Favicon path - **twitter** - Twitter ID +- **links** - Header links with icon, specified links will appear at the top right corner of the page ## Features @@ -114,5 +123,16 @@ Landscape provides 5 built-in widgets: All of them are enabled by default. You can edit them in `widget` setting. +### Header links + +You can add links to the header area with icons. + +``` +social: + github: https://github.com/your_github_account + twitter: https://twitter.com/your_twitter_account + telegram: https://t.me/your_telegram_account +``` + [Hexo]: https://hexo.io/ [Fancybox]: https://github.com/fancyapps/fancyBox diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 300ae6b8..d4259ac1 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -23,13 +23,13 @@ <% } %>