aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2019-11-07 20:17:24 -0500
committerRuss Cox <rsc@golang.org>2019-11-08 16:17:44 +0000
commitb135fec82d257fd5f0426628cda8dfe074c0708b (patch)
treeffd613b6d43db7b7101a0851d4c770fa36040d72
parent498b2a48ebbe8ac260bd80b8c436a66141693eb3 (diff)
blog: minor cleanup
- 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>
-rw-r--r--content/ismmkeynote.article3
-rw-r--r--template/index.tmpl6
-rw-r--r--template/root.tmpl3
3 files changed, 9 insertions, 3 deletions
diff --git a/content/ismmkeynote.article b/content/ismmkeynote.article
index ef489d2..2cd3735 100644
--- a/content/ismmkeynote.article
+++ b/content/ismmkeynote.article
@@ -1,6 +1,9 @@
Getting to Go: The Journey of Go's Garbage Collector
12 Jul 2018
+Rick Hudson
+rlh@golang.org
+
* Abstract
This is the transcript from the keynote I gave at the International Symposium on Memory Management (ISMM) on June 18, 2018. For the past 25 years ISMM has been the premier venue for publishing memory management and garbage collection papers and it was an honor to have been invited to give the keynote.
diff --git a/template/index.tmpl b/template/index.tmpl
index 0d3c089..512ef72 100644
--- a/template/index.tmpl
+++ b/template/index.tmpl
@@ -4,11 +4,11 @@
{{define "content"}}
<h1 class="title">Article index</h1>
-
+
{{range .Data}}
<p class="blogtitle">
- <a href="{{.Path}}">{{.Title}}</a><br>
- <span class="date">{{.Time.Format "2 January 2006"}}</span><br>
+ <a href="{{.Path}}">{{.Title}}</a>, <span class="date">{{.Time.Format "2 January 2006"}}</span><br>
+ <span class="author">{{with .Authors}}{{authors .}}<br>{{end}}</span>
{{with .Tags}}<span class="tags">{{range .}}{{.}} {{end}}</span>{{end}}
</p>
{{end}}
diff --git a/template/root.tmpl b/template/root.tmpl
index 8ef5424..84b1062 100644
--- a/template/root.tmpl
+++ b/template/root.tmpl
@@ -33,6 +33,9 @@
overflow-wrap: normal;
padding: 0;
}
+ @media print {
+ #sidebar { display: none; }
+ }
#sidebar {
float: right;
padding-left: 20px;