zoukankan      html  css  js  c++  java
  • 国外常用社交分享代码(纯代码无需插件)

    做英文网站的朋友可能经常会加一些分享代码,有很多插件可以实现比如addthis、sharethis、addtoany等,但这些我们无法给外部链接添加nofollow属性,有没有纯html分享代码呢?有的!下面ytkah就分享一些,有需要的朋友可以试一下

    <!-- Basic Share Links -->
    
    <!-- Twitter (url, text, @mention) -->
    <a rel="nofollo" href="https://twitter.com/share?url=<URL>&text=<TEXT>via=<USERNAME>">
        Twitter
    </a>
    
    <!-- Facebook (url) -->
    <a rel="nofollow" href="https://www.facebook.com/sharer/sharer.php?u=<URL>">
        Facebook
    </a>
    
    <!-- Reddit (url, title) -->
    <a rel="nofollow" href="https://reddit.com/submit?url=<URL>&title=<TITLE>">
        Reddit
    </a>
    
    <!-- Hacker News (url, title) -->
    <a rel="nofollow" href="https://news.ycombinator.com/submitlink?u=<URL>&t=<TITLE>">
        Hacker News
    </a>
    
    <!-- LinkedIn (url, title, summary, source url) -->
    <a rel="nofollow" href="https://www.linkedin.com/shareArticle?url=<URL>&title=<TITLE>&summary=<SUMMARY>&source=<SOURCE_URL>">
        LinkedIn
    </a>
    
    <!-- Email (subject, body) -->
    <a rel="nofollow" href="mailto:?subject=<SUBJECT>&body=<BODY>">
        Email
    </a>
    
  • 相关阅读:
    caioj 1914 & CH 0x20搜索(0x27A*)例题1:第K短路 Remmarguts'Date
    多项式的化简求法
    caioj 1715 表达式的转换
    HDU 2829 Lawrence
    山海经 (线段树)
    神奇的KMP
    浅谈zkw线段树(by Shine_hale)
    线段树补充
    浅谈线段树(by Shine_hale)
    k短路
  • 原文地址:https://www.cnblogs.com/ytkah/p/12365444.html
Copyright © 2011-2022 走看看