Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Layout: Add anchor links to all subheads #813
Conversation
This was referenced Apr 9, 2015
saivann
and 1 other
commented on an outdated diff
Apr 9, 2015
| @@ -21,7 +21,9 @@ | ||
| <link rel="alternate" type="application/rss+xml" href="/en/rss/releases.rss" title="Bitcoin Core releases"> | ||
| <div class="download"> | ||
| <h1>{% translate pagetitle %}</h1> | ||
| - <h2>{% translate latestversion %} {{ site.DOWNLOAD_VERSION }}<a type="application/rss+xml" href="/en/rss/releases.rss"><img src="/img/icons/icon_rss.svg" alt="rss" class="rssicon"></a></h2> | ||
| + <div class="inline-block"> | ||
| + <h2 id="latestversion">{% translate latestversion %} {{ site.DOWNLOAD_VERSION }}<a type="application/rss+xml" href="/en/rss/releases.rss"><img src="/img/icons/icon_rss.svg" alt="rss" class="rssicon"></a></h2> | ||
| + </div> |
saivann
Contributor
|
|
In the absence of critical feedback, I will merge this pull around 23:00 UTC Saturday. |

harding commentedApr 9, 2015
This pull adds anchors to all subheadings (h2 through h6) on the site, except for the subheadings on the Choose Your Wallet page (which are almost all hidden by default).
Also added is a test to the Makefile that errors out if any subhead doesn't have the
idattribute necessary to create an anchor.This has no effect on the appearance of the site, but when combined with a pull request #814, it add an iconified link to the a subhead's anchor when a Javascript-enabled user hovers over the subhead.
Live preview of this PR plus PR #814 merged together: http://dg1.dtrt.org/en/bitcoin-for-individuals
Screenshots of the anchor link icon in different layouts: