Skip to content

Commit

Permalink
Move docs header to a partial
Browse files Browse the repository at this point in the history
Analogous to the blog header one.
  • Loading branch information
deivid-rodriguez committed Jan 16, 2025
1 parent f35066a commit 298ba37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/layouts/two_column_layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
.edit-on-github.text-center
= link_to_editable_version

.bg-light-blue.header
= image_tag '/images/docs_header_transparent_bg.png',
srcset: '/images/docs_header_transparent_bg.png 1x, /images/[email protected] 2x, /images/[email protected] 3x',
class: 'img-fluid header-padding',
style: 'max-width: 400px;'
= partial 'partials/docs_header'

.container
.row.flex-column.flex-md-row-reverse
.col-12.col-md-9.contents#page-content-wrapper{ class: is_command ? "commands" : "guide" }
Expand Down
5 changes: 5 additions & 0 deletions source/partials/_docs_header.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.bg-light-blue.header
= image_tag '/images/docs_header_transparent_bg.png',
srcset: '/images/docs_header_transparent_bg.png 1x, /images/[email protected] 2x, /images/[email protected] 3x',
class: 'img-fluid header-padding',
style: 'max-width: 400px;'

0 comments on commit 298ba37

Please sign in to comment.