diff options
author | Andrew Gerrand <adg@golang.org> | 2010-03-20 11:42:57 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-03-20 11:42:57 +1100 |
commit | 7190fdd3bff430f3be6ad2a25e10bac519bb8d77 (patch) | |
tree | ecf4846f38e0ef9eef90dfddf98e535b0ee8ef16 | |
parent | b037bfa684f25ca76a1d3fdb7f81151684732352 (diff) | |
download | go-7190fdd3bff430f3be6ad2a25e10bac519bb8d77.tar.gz go-7190fdd3bff430f3be6ad2a25e10bac519bb8d77.zip |
website: add Go Blog widget to frontpage,
add Blog and Wiki links to sideba
R=r, rsc, gri
CC=golang-dev
https://golang.org/cl/611042
-rw-r--r-- | doc/root.html | 22 | ||||
-rw-r--r-- | doc/style.css | 11 | ||||
-rw-r--r-- | lib/godoc/godoc.html | 8 |
3 files changed, 38 insertions, 3 deletions
diff --git a/doc/root.html b/doc/root.html index 655ac238db..19ebcfec79 100644 --- a/doc/root.html +++ b/doc/root.html @@ -7,6 +7,22 @@ document.getElementById('nav').style.display = 'none'; </script> +<!-- begin blog post widget JS/styles --> +<script src="http://www.google.com/jsapi/?key=ABQIAAAA4TEcjQ5y1r35xLDoRydN_RQJvypqxg_hbbvOIUrMXndwfI6kkBStplaG-3V8WLePPIt0A4nJSKKJdA" type="text/javascript"></script> +<script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script> +<script type="text/javascript"> +function loadFeedControl() { + var feed = "http://blog.golang.org/feeds/posts/default" + var fg = new GFdynamicFeedControl(feed, "feedControl", { + numResults: 5, + displayTime: 5000 + }); +} +google.load("feeds", "1"); +google.setOnLoadCallback(loadFeedControl); +</script> +<!-- end blog post widget JS/styles --> + <div id="gettingStarted"> <h1>Getting started</h1> @@ -34,6 +50,12 @@ </table> </div> +<div id="blog"> + <h1>From the <a href="http://blog.golang.org">Go Blog</a>:</h1> + <div id="feedControl">Loading...</div> +</div> + + <div id="frontpage"> <table style="padding-top: 1em; padding-bottom: 2em;"> diff --git a/doc/style.css b/doc/style.css index 184b80e6e2..597e70bb34 100644 --- a/doc/style.css +++ b/doc/style.css @@ -228,18 +228,27 @@ span.highlight { /* ------------------------------------------------------------------------- */ /* Styles for the frontpage */ -#gettingStarted { +#gettingStarted, #blog { margin-top: 1.5em; margin-left: 1.75em; margin-right: 0em; float: right; + clear: right; background-color: #fffff0; padding-left: 1em; padding-right: 1em; padding-bottom: 0.75em; border: 2px solid #ba9836; + width: 180px; } +#blog { margin-bottom: 1.5em; } +#blog h1 { font-size: 1.2em; } +#blog .gfg-title, #blog .gf-author, #blog .gf-spacer { display: none; } +#blog .gfg-list { margin-top: 1em; } +#blog .gf-title { font-size: 1.1em; } +#blog .gfg-listentry-highlight { font-weight: bold; } + #gettingStarted h1 { padding-top: 0.3em; margin-bottom: 0.2em; diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index a078b11d74..f41b46a273 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -102,11 +102,15 @@ <li><a href="/doc/devel/">The Go project</a></li> <li class="blank"> </li> - <li class="navhead">Help</li> - <li>#go-nuts on irc.freenode.net</li> + <li class="navhead">Help & Community</li> + <li><a href="http://blog.golang.org/">Go Blog</a></li> <li><a href="http://groups.google.com/group/golang-nuts">Go Nuts mailing list</a></li> + <li>#go-nuts on irc.freenode.net</li> <li><a href="http://code.google.com/p/go/issues/list">Issue tracker</a></li> + <li><a href="http://code.google.com/p/go/wiki/WikiIndex">Go Wiki</a></li> + + <li class="blank"> </li> <li class="blank"> </li> <li class="navhead">Go code search</li> <form method="GET" action="/search" class="search"> |