Adapt Layout and colors to our needs
This commit is contained in:
parent
6e4e50a01c
commit
7cb422cc43
8 changed files with 72 additions and 9 deletions
|
@ -19,6 +19,9 @@
|
|||
{{ partial "head/microformats" . }}
|
||||
{{ partial "head/others" . }}
|
||||
{{ partial "head/custom" . }}
|
||||
{{ if .IsHome }}
|
||||
{{ partial "head/columns" . }}
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
<body itemscope itemtype="https://schema.org/WebPage">
|
||||
|
@ -26,7 +29,7 @@
|
|||
|
||||
|
||||
<div
|
||||
class="wrapper {{ if default false .Site.Params.GeekdocDarkModeDim }}dark-mode-dim{{ end }}"
|
||||
class="wrapper {{ if default false .Site.Params.GeekdocDarkModeDim }}dark-mode-dim{{ end }} {{ if .IsHome }}home{{ end }}"
|
||||
>
|
||||
<input type="checkbox" class="hidden" id="menu-control" />
|
||||
<input type="checkbox" class="hidden" id="menu-header-control" />
|
||||
|
@ -41,8 +44,7 @@
|
|||
</aside>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<div class="gdoc-page">
|
||||
<div class="gdoc-page {{ if .IsHome }}home{{ end }}">
|
||||
{{ template "main" . }}
|
||||
|
||||
|
||||
|
|
11
layouts/partials/head/columns.html
Normal file
11
layouts/partials/head/columns.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- You can add custom elements to the page header here. -->
|
||||
<link
|
||||
rel="preload"
|
||||
href="{{ "bootstrap-utilities.min.css" | relURL }}"
|
||||
as="style"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ "bootstrap-utilities.min.css" | relURL }}"
|
||||
media="all"
|
||||
/>
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<div class="gdoc-columns gdoc-columns--{{ $size }} flex flex-gap flex-mobile-column">
|
||||
{{- range split .Inner "<--->" }}
|
||||
<div class="gdoc-columns__content gdoc-markdown--nested flex-even">
|
||||
<div class="gdoc-columns__content gdoc-markdown--nested flex-even position-relative">
|
||||
{{ . | $.Page.RenderString -}}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue