3

我为 flexdashboard 的导航栏添加了社交图标,但无法为每个图标添加适当的链接。

在 R Markdown 文件中,我添加了:

output: 
  flexdashboard::flex_dashboard:
      social: [ "twitter", "facebook", "linkedin" ]

如何为每个社交网络添加链接?

4

2 回答 2

1

到目前为止我想出的解决方案是使用

- { icon: "fa-twitter", href: "link to my twitter account",align: right}

它有效,但也许有更好的选择。

于 2016-09-01T09:22:42.933 回答
1

你可以这样做:

---
title: "Manoj Kumar"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    navbar:
        - { icon: "fa-question-circle", href: "https://google.com", align: right }
        - { icon: "fa-twitter", href: "https://twitter.com/YourAccount", align: right}
        - { icon: "fa-linkedin", href: "https://www.linkedin.com/in/YourAccount", align: right}
runtime: shiny
---
于 2021-01-09T18:30:51.423 回答