1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:24:46 -07:00

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
This commit is contained in:
Andrew Gerrand 2010-03-20 11:42:57 +11:00
parent b037bfa684
commit 7190fdd3bf
3 changed files with 38 additions and 3 deletions

View File

@ -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;">

View File

@ -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;

View File

@ -102,11 +102,15 @@
<li><a href="/doc/devel/">The Go project</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">Help</li>
<li>#go-nuts on irc.freenode.net</li>
<li class="navhead">Help &amp; 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">&nbsp;</li>
<li class="blank">&nbsp;</li>
<li class="navhead">Go code search</li>
<form method="GET" action="/search" class="search">