aboutsummaryrefslogtreecommitdiff
path: root/template
Commit message (Collapse)AuthorAge
* template: update header to be consistent with golang.orgAndrew Bonventre2020-06-11
| | | | | | | | | | | Also update the x/website module dependency to v0.0.0-20200611220721-d72cde69aaaf Change-Id: I4b361af3bfda31551b399b1158eec72e98367b1c Reviewed-on: https://go-review.googlesource.com/c/blog/+/237599 Run-TryBot: Andrew Bonventre <andybons@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
* blog: minor cleanupRuss Cox2019-11-08
| | | | | | | | | | | | - Hide link sidebar when printing an article. - Show authors in /index - Add Rick as author of his GC article. Change-Id: I1efeadb17bfec7271ef67ec9fe8e8b502839b62a Reviewed-on: https://go-review.googlesource.com/c/blog/+/205864 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
* blog: add analytics HTML and deploy instructionsDmitri Shuralyov2019-10-02
| | | | | | | | | | | | | | | When deployed with App Engine on blog.golang.org, insert analytics HTML at the beginning of <head>. Add deploy instructions to the README. Also update to the App Engine Go 1.12 runtime. Change-Id: Icf0919fd22d80cb8cb765845acd1d72f85f11fa1 Reviewed-on: https://go-review.googlesource.com/c/blog/+/198337 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* blog: update logo to link to golang.orgAndrew Bonventre2019-08-15
| | | | | | | | Also updates x/website version to pull in various CSS fixes. Change-Id: Id0fd49507ccca75b2766d75144484a12cdb70010 Reviewed-on: https://go-review.googlesource.com/c/blog/+/190414 Reviewed-by: Alexander Rakoczy <alex@golang.org>
* template: update root.html to have a sticky footerAndrew Bonventre2019-08-12
| | | | | | | | | | This uses the Site* classes defined in the x/website styles to ensure the footer is always at the bottom of the page regardless of the content height. Change-Id: I476ebbb072890019621497bfa5d046b8fa3e9834 Reviewed-on: https://go-review.googlesource.com/c/blog/+/189937 Reviewed-by: Alexander Rakoczy <alex@golang.org>
* blog: update to use new Go branding guidelinesAndrew Bonventre2019-08-12
| | | | | | | | | | Additionally makes some small changes to abide by best practices. Updates golang/go#9936 Change-Id: I88263ef78548365b3cfb3f14bae48deb01d30f4f Reviewed-on: https://go-review.googlesource.com/c/blog/+/189457 Reviewed-by: Katie Hockman <katie@golang.org>
* template: move byline to top of postRuss Cox2019-08-01
| | | | | | | | | | | | | | Especially for long blog posts, it doesn't make sense to bury who wrote it until the very end. That can be important context for the reader. (Also, compare with newspapers etc.) Change-Id: I3c4b36cf78e94eb461c1ba6b520e2dbff92899aa Reviewed-on: https://go-review.googlesource.com/c/blog/+/188517 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
* blog: remove Google+ link from sidebarAlberto Donizetti2019-04-08
| | | | | | | | Fixes golang/go#31295 Change-Id: Ic9fa20c55a3c33f075a720261b8b76bf1b8c4d42 Reviewed-on: https://go-review.googlesource.com/c/blog/+/170978 Reviewed-by: Andrew Bonventre <andybons@golang.org>
* blog: remove all remaining protocol-relative URLsChris Broadfoot2018-12-20
| | | | | | | | | | | | | | | | Protocol-relative URLs (e.g., "//blog.golang.org") were previously removed in the content of the blog, but not in other areas. Notably, in the atom feed. This causes feed reader apps to fail, because it doesn't know to use https for those URLs. Always use the https scheme, including in the atom feed as well as a couple remaining places in the blog template. Fixes golang/go#17961 Change-Id: I694c888de9437937ba1910227ddae42d3eb0405c Reviewed-on: https://go-review.googlesource.com/c/155357 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* template: remove dead "Go on Google+" link from sidebarJeremy Banks2018-11-30
| | | | | | | | | | | | I was reading the blog post and noticed this dead link. Consider removing it. (The G+ community link below this one is still working, at least until the service shuts down.) Change-Id: I6f4cd045d3de776a468e9658b00ad35532503e60 GitHub-Last-Rev: 47f7fedf8d0c5fd8346c95d64bd54d2784b3eddf GitHub-Pull-Request: golang/blog#18 Reviewed-on: https://go-review.googlesource.com/c/151837 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* blog: correct link to Google+ CommunityAndrew Bonventre2018-05-25
| | | | | | | | Fixes golang/go#25541 Change-Id: I56bea8febfab6f5c9c563e442367ffb3cc2ea58a Reviewed-on: https://go-review.googlesource.com/114502 Reviewed-by: Chris Broadfoot <cbro@golang.org>
* blog: update root template to fix absence of search iconAndrew Bonventre2017-12-11
| | | | | | | | | Currently the search icon is not present on the blog and the search field has no border on the right. Change-Id: I20c450403c8e055c00910c1e8c62b2163ecfbe1b Reviewed-on: https://go-review.googlesource.com/83295 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* README, template: add more linksKevin Burke2017-07-17
| | | | | | | | | | | | | | | | | | | | | | Move the README to README.md so Gerrit can render it; currently Gerrit only renders files named exactly "README.md" (for example at https://go.googlesource.com/go). Add more links to the README explaining how to file issues, how to submit code changes, where to download the code to and how to get it. Hopefully this should help people who go to https://go.googlesource.com/blog or https://github.com/golang/blog figure out how to get started with development. Add a link in the footer to the source code for the blog, so people know where to find it. Updates golang/go#21038. Updates golang/go#21034. Change-Id: Ie378cf2aa42f56485b5d5c9a943f5b9957d96371 Reviewed-on: https://go-review.googlesource.com/49291 Reviewed-by: Russ Cox <rsc@golang.org>
* content, template: use https instead of protocol-relative URLsChris Broadfoot2017-03-15
| | | | | | | | | | | | Protocol-relative URLs (//blog.golang.org/...) are redundant, we use HTTPS everywhere. Use the https:// scheme instead. Updates golang/go#17961. Change-Id: I6be6dd1d85f1093561ce3fa606e1ef37d75a7a60 Reviewed-on: https://go-review.googlesource.com/37883 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* template: only use Go font for "go-fonts" postChris Broadfoot2017-02-16
| | | | | | | | | | | | | | | | | | This change reverts the blog to use the system default font for all pages except the go-fonts post. Style selectors have been added to select that post and apply the fonts to it both on its own page as well as on the homepage. Regardless of anyone's personal opinions about the font, there were several negative comments about the font on social media sites for posts unrelated to the font. We want to encourage people to discuss the content of our articles rather than get tied up about their presentation. Change-Id: I107f57e289f408584e2e5f6a8de3a6a445ea42a4 Reviewed-on: https://go-review.googlesource.com/37137 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
* blog: fix serving of fonts on App EngineAndrew Gerrand2016-11-17
| | | | | | Change-Id: I4c1fc9b10440b8e99a04614d89ac1fe0db58ae68 Reviewed-on: https://go-review.googlesource.com/33260 Reviewed-by: Andrew Gerrand <adg@golang.org>
* template: use Go fontAndrew Gerrand2016-11-17
| | | | | | | | | These fonts are available under the usual license at golang.org/x/image/font/gofont Change-Id: Ifeb5c3478bc6752b75f1d1128d05141d7bc4a45e Reviewed-on: https://go-review.googlesource.com/33259 Reviewed-by: Rob Pike <r@golang.org>
* blog: Mobile-friendly designMatthew Holt2015-06-30
| | | | | | | | | | This change complements change golang/go#9062 (because godoc and the blog share a style sheet) and makes the blog responsive for mobile. Change-Id: Ibcd415034c067a6ebc4489dc8b5f32ec9c1a38d6 Reviewed-on: https://go-review.googlesource.com/9063 Reviewed-by: Chris Broadfoot <cbro@golang.org>
* blog: add template definition for image captionsFrancesc Campoy2015-01-07
| | | | | | Change-Id: I1c4b6531eeb9c49a87793ffb52f19e5b48eba6a0 Reviewed-on: https://go-review.googlesource.com/2393 Reviewed-by: Andrew Gerrand <adg@golang.org>
* go.blog: tidy up sidebarAndrew Gerrand2014-07-29
| | | | | | | | | | | The sidebar in individual article view is unwieldy. Remove related articles, Google Developers links (that nobody clicks), and remove the heading about the "Article index" link. LGTM=dsymonds R=dsymonds CC=golang-codereviews https://golang.org/cl/120870044
* go.blog: drop scheme from linksAndrew Gerrand2014-07-25
| | | | | | | | | | golang.org and its subdomains now serve HTTPS with a valid cert, so we must support both HTTP and HTTPS. TBR=bradfitz R=golang-codereviews CC=golang-codereviews https://golang.org/cl/116270043
* go.blog: fix links in page footerAndrew Gerrand2014-03-21
| | | | | | | LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/78490043
* go.blog: fix Go Twitter linkAndrew Gerrand2013-11-21
| | | | | R=golang-dev, dave https://golang.org/cl/30000043
* go.blog/template: only show line numbers when specifiedAndrew Gerrand2013-09-27
| | | | | R=golang-dev, r https://golang.org/cl/13947043
* go.blog: add heading, fix menu link, tweak stylesAndrew Gerrand2013-09-19
| | | | | | R=r CC=golang-dev https://golang.org/cl/13458046
* go.blog: use godoc design, use blog package from go.toolsAndrew Gerrand2013-09-18
| | | | | | | Also delete go.blog/pkg/blog and unused static files. R=golang-dev, dsymonds https://golang.org/cl/13754043
* go.blog: move blog-specific JavaScript into root templateAndrew Gerrand2013-09-17
| | | | | | | | | | | Also update playground JavaScripts to the latest version. This will make it easier for us to switch to godoc's static assets down the line. R=r, dsymonds CC=golang-dev https://golang.org/cl/13412049
* go.blog: split blog server into a package and a commandAndrew Gerrand2013-09-17
| | | | | | | | | | | | Also add a "BasePath" configuration option, so that the blog may be served under "/blog", for instance. This is preparation to include the blog server in the binary distributions of godoc. R=r, dsymonds CC=golang-dev https://golang.org/cl/13737043
* go.blog: add line numbers to playground snippetsAndrew Gerrand2013-06-26
| | | | | | R=golang-dev, r CC=golang-dev https://golang.org/cl/10541043
* go.blog: don't show table of contents; it looks weirdAndrew Gerrand2013-06-06
| | | | | | R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/10074043
* go.blog: add Atom feedAndrew Gerrand2013-03-16
| | | | | | R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7844043
* go.blog: blog serverAndrew Gerrand2013-03-08
R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/7382064