+
{{.Content}}
{{- partial "content-footer.html" . -}}
diff --git a/themes/hugodocs/layouts/partials/page-title.html b/themes/hugodocs/layouts/partials/page-title.html
new file mode 100644
index 000000000..afb69e1a0
--- /dev/null
+++ b/themes/hugodocs/layouts/partials/page-title.html
@@ -0,0 +1,7 @@
+
+ {{- if eq .Section "functions" -}}
+ {{- replace (.LinkTitle) "and" "and" | safeHTML -}}
+ {{- else -}}
+ {{- .Title | markdownify -}}
+ {{- end -}}
+
\ No newline at end of file
diff --git a/themes/hugodocs/pipeline/scss/base/_typography.scss b/themes/hugodocs/pipeline/scss/base/_typography.scss
index 6cee0bab0..2030f5cc6 100644
--- a/themes/hugodocs/pipeline/scss/base/_typography.scss
+++ b/themes/hugodocs/pipeline/scss/base/_typography.scss
@@ -34,6 +34,9 @@ h1.page-title {
margin-left: -.15em;
margin-right: .15em;
}
+ &.commands,&.functions {
+ font-family:$code-font-family;
+ }
}
h2,
@@ -73,7 +76,7 @@ h5 {
}
//used throughout the "functions" section to render titles in the base code font family
-.functions {
+.functions, .commands {
font-family: $code-font-family;
font-weight: $base-font-weight;
color: inherit;
@@ -81,7 +84,7 @@ h5 {
//just for function section page titles that include the word "and":
//in templates, a conditional statement checks for section=functions, and if so, replaces "and" in title/linktitle with
and
-.functions {
+.functions, .commands {
> em {
font-style: normal;
font-family: $base-font-family;
diff --git a/themes/hugodocs/pipeline/scss/pages/_commands.scss b/themes/hugodocs/pipeline/scss/pages/_commands.scss
new file mode 100644
index 000000000..8ed419ba2
--- /dev/null
+++ b/themes/hugodocs/pipeline/scss/pages/_commands.scss
@@ -0,0 +1,22 @@
+//specific to command pages (built auto-magically by Viper) to remove the first h2 in the page to remove redundancy between h2 heading and page title in page header.
+.body-copy[data-section="commands"] {
+ > h2:nth-of-type(1) {
+ display: none;
+ }
+ //makes all h3s look like h2s in regular styles, all h4s look like h3s, and all h5s look like h4s
+ //Again, headings cannot be modified since content/commands/*.md is auto-generated by Viper
+ //These are just *hacks* to keep visual styling consisten across all single-page layouts
+ h3 {
+ font-size: 1.6em;
+ }
+ h4 {
+ font-size: 1.2em;
+ }
+ h5 {
+ font-size: 1.1em;
+ margin-top: 1em;
+ margin-bottom: 1em;
+ color: $hugo-gray;
+ // text-transform: uppercase;
+ }
+}
diff --git a/themes/hugodocs/pipeline/scss/style.scss b/themes/hugodocs/pipeline/scss/style.scss
index 802ac0974..80f6bf1ab 100644
--- a/themes/hugodocs/pipeline/scss/style.scss
+++ b/themes/hugodocs/pipeline/scss/style.scss
@@ -45,5 +45,6 @@
//styles for individual pages
@import 'pages/homepage';
+@import 'pages/commands';
@import 'temp';
\ No newline at end of file