Skip to content

Commit

Permalink
_content: fix markdown styling with dark theme under /src
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
elasticspoon authored and gopherbot committed Jan 11, 2024
1 parent 7567411 commit 47eceec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _content/src/default.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{define "layout"}}
{{doclayout .}}
{{end}}

0 comments on commit 47eceec

Please sign in to comment.