Skip to content

Commit 47eceec

Browse files
elasticspoongopherbot
authored andcommitted
_content: fix markdown styling with dark theme under /src
This adds a template for markdown files under the go.dev/src path Font color is set by a css variable under an Article selector. The previous implementation did apply the Article class to pages under the /src path. By creating a default template pages will respect theme font colors. Fixes golang/go#64929 Change-Id: Icc8e1866056553eaa9b2c2569e2c34cb9fb7fda5 GitHub-Last-Rev: f20f3c8 GitHub-Pull-Request: #269 Reviewed-on: https://go-review.googlesource.com/c/website/+/553957 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 7567411 commit 47eceec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_content/src/default.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{define "layout"}}
2+
{{doclayout .}}
3+
{{end}}

0 commit comments

Comments
 (0)