如何将 URL 调用为 HTML 而不是 <a href="">?
How to call an URL into HTML instead of <a href="">?
我想将社交链接添加到 Blogger 中的作者框,
博客里有很多作者,
Google 通过代码调用 Google+ 配置文件:
expr:href='data:post.authorProfileUrl'
而不是<a href="">
问题是我只能使用 <a href="">
添加一个 fb 或 twitter 作者个人资料。
给作者社交链接一个 ID 并将其调用到 HTML 中是否是一种解决方案?
博主作者框码:
<li><a class='external external-link' href='#' rel='nofollow' target='_blank'><i class='fa fa-facebook'/></a></li>
<li><a class='external external-link' href='#' rel='nofollow' target='_blank'><i class='fa fa-twitter'/></a></li>
<li><a class='external external-link' expr:href='data:post.authorProfileUrl' rel='nofollow' title='Google+' target='_blank'><i class='fa fa-google-plus'/></a></li>
除了 Google+ 之外,无法从 Blogger 获取作者社交链接,但您可以使用条件语句按作者进行检查并显示特定作者的特定内容
<b:if cond='data:post.author == "first author name"'>
<!-- first author social links -->
<b:elseif cond='data:post.author == "second author name"'>
<!-- second author social links -->
</b:if>
我想将社交链接添加到 Blogger 中的作者框, 博客里有很多作者, Google 通过代码调用 Google+ 配置文件:
expr:href='data:post.authorProfileUrl'
而不是<a href="">
问题是我只能使用 <a href="">
添加一个 fb 或 twitter 作者个人资料。
给作者社交链接一个 ID 并将其调用到 HTML 中是否是一种解决方案?
博主作者框码:
<li><a class='external external-link' href='#' rel='nofollow' target='_blank'><i class='fa fa-facebook'/></a></li>
<li><a class='external external-link' href='#' rel='nofollow' target='_blank'><i class='fa fa-twitter'/></a></li>
<li><a class='external external-link' expr:href='data:post.authorProfileUrl' rel='nofollow' title='Google+' target='_blank'><i class='fa fa-google-plus'/></a></li>
除了 Google+ 之外,无法从 Blogger 获取作者社交链接,但您可以使用条件语句按作者进行检查并显示特定作者的特定内容
<b:if cond='data:post.author == "first author name"'>
<!-- first author social links -->
<b:elseif cond='data:post.author == "second author name"'>
<!-- second author social links -->
</b:if>