mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: remove typos and superflous whitespace
This commit is contained in:
parent
42c8ec549b
commit
de7b3d8056
20 changed files with 48 additions and 155 deletions
|
@ -83,7 +83,7 @@ You also can disable mermaid for specific pages while globally enabled.
|
||||||
|
|
||||||
## Home Button Configuration
|
## Home Button Configuration
|
||||||
|
|
||||||
If the `disableLandingPage` option is set to `false`, an Home button will appear
|
If the `disableLandingPage` option is set to `false`, a Home button will appear
|
||||||
on the left menu. It is an alternative for clicking on the logo. To edit the
|
on the left menu. It is an alternative for clicking on the logo. To edit the
|
||||||
appearance, you will have to configure two parameters for the defined languages:
|
appearance, you will have to configure two parameters for the defined languages:
|
||||||
|
|
||||||
|
@ -109,6 +109,6 @@ landingPageURL = "/"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
landingPageName = "<i class='fas fa-home'></i> Home"
|
||||||
```
|
```
|
||||||
|
|
||||||
The home button is going to looks like this:
|
The home button is going to look like this:
|
||||||
|
|
||||||
![Default Home Button](images/home_button_defaults.png?width=100%)
|
![Default Home Button](images/home_button_defaults.png?width=100%)
|
||||||
|
|
|
@ -92,7 +92,6 @@ First, create a new CSS file in your local `static/css` folder prefixed by `them
|
||||||
```css
|
```css
|
||||||
|
|
||||||
:root{
|
:root{
|
||||||
|
|
||||||
--MAIN-TEXT-color:#323232; /* Color of text by default */
|
--MAIN-TEXT-color:#323232; /* Color of text by default */
|
||||||
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
|
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
|
||||||
--MAIN-LINK-color:#1C90F3; /* Color of links */
|
--MAIN-LINK-color:#1C90F3; /* Color of links */
|
||||||
|
@ -115,7 +114,6 @@ First, create a new CSS file in your local `static/css` folder prefixed by `them
|
||||||
|
|
||||||
--MENU-VISITED-color: #33a1ff; /* Color of 'page visited' icons in menu */
|
--MENU-VISITED-color: #33a1ff; /* Color of 'page visited' icons in menu */
|
||||||
--MENU-SECTION-HR-color: #20272b; /* Color of <hr> separator in menu */
|
--MENU-SECTION-HR-color: #20272b; /* Color of <hr> separator in menu */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -43,7 +43,7 @@ Chapters are pages that contain other child pages. It has a special layout style
|
||||||
|
|
||||||
# Basics
|
# Basics
|
||||||
|
|
||||||
Discover what this Hugo theme is all about and the core concepts behind it.
|
Discover what this H(tugo theme is all about and the core concepts behind it.
|
||||||
```
|
```
|
||||||
|
|
||||||
renders as
|
renders as
|
||||||
|
@ -69,7 +69,7 @@ hugo new basics/first-content.md
|
||||||
hugo new basics/second-content/_index.md
|
hugo new basics/second-content/_index.md
|
||||||
```
|
```
|
||||||
|
|
||||||
Feel free to edit thoses files by adding some sample content and replacing the `title` value in the beginning of the files.
|
Feel free to edit those files by adding some sample content and replacing the `title` value in the beginning of the files.
|
||||||
|
|
||||||
## Launching the website locally
|
## Launching the website locally
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ Each Hugo page has to define a [Front Matter](https://gohugo.io/content/front-ma
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
+++
|
+++
|
||||||
# Table of content (toc) is enabled by default. Set this parameter to true to disable it.
|
# Table of contents (toc) is enabled by default. Set this parameter to true to disable it.
|
||||||
# Note: Toc is always disabled for chapter pages
|
# Note: Toc is always disabled for chapter pages
|
||||||
disableToc = "false"
|
disableToc = "false"
|
||||||
# If set, this will be used for the page's menu entry (instead of the `title` attribute)
|
# If set, this will be used for the page's menu entry (instead of the `title` attribute)
|
||||||
|
|
|
@ -5,7 +5,7 @@ weight: 40
|
||||||
tags: ["documentation", "tutorial"]
|
tags: ["documentation", "tutorial"]
|
||||||
---
|
---
|
||||||
|
|
||||||
*Relearn theme* support one default taxonomy of gohugo: the *tag* feature.
|
*Relearn theme* supports one default taxonomy of Hugo: the *tag* feature.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
|
|
||||||
:root{
|
|
||||||
|
|
||||||
--MAIN-TEXT-color:#323232; /* Color of text by default */
|
|
||||||
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
|
|
||||||
--MAIN-LINK-color:#599a3e; /* Color of links */
|
|
||||||
--MAIN-LINK-HOVER-color:#3f6d2c; /* Color of hovered links */
|
|
||||||
--MAIN-ANCHOR-color: #599a3e; /* color of anchors on titles */
|
|
||||||
|
|
||||||
--MENU-HEADER-BG-color:#74b559; /* Background color of menu header */
|
|
||||||
--MENU-HEADER-BORDER-color:#9cd484; /*Color of menu header border */
|
|
||||||
|
|
||||||
--MENU-SEARCH-BG-color:#599a3e; /* Search field background color (by default borders + icons) */
|
|
||||||
--MENU-SEARCH-BOX-color: #84c767; /* Override search field border color */
|
|
||||||
--MENU-SEARCH-BOX-ICONS-color: #c7f7c4; /* Override search field icons color */
|
|
||||||
|
|
||||||
--MENU-SECTIONS-ACTIVE-BG-color:#1b211c; /* Background color of the active section and its childs */
|
|
||||||
--MENU-SECTIONS-BG-color:#222723; /* Background color of other sections */
|
|
||||||
--MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */
|
|
||||||
--MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */
|
|
||||||
--MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */
|
|
||||||
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */
|
|
||||||
|
|
||||||
--MENU-VISITED-color: #599a3e; /* Color of 'page visited' icons in menu */
|
|
||||||
--MENU-SECTION-HR-color: #18211c; /* Color of <hr> separator in menu */
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
color: var(--MAIN-TEXT-color) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
|
|
||||||
border-color: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2, h3, h4, h5 {
|
|
||||||
color: var(--MAIN-TITLES-TEXT-color) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: var(--MAIN-LINK-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.anchor {
|
|
||||||
color: var(--MAIN-ANCHOR-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color: var(--MAIN-LINK-HOVER-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar ul li.visited > a .read-icon {
|
|
||||||
color: var(--MENU-VISITED-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#body a.highlight:after {
|
|
||||||
display: block;
|
|
||||||
content: "";
|
|
||||||
height: 1px;
|
|
||||||
width: 0%;
|
|
||||||
-webkit-transition: width 0.5s ease;
|
|
||||||
-moz-transition: width 0.5s ease;
|
|
||||||
-ms-transition: width 0.5s ease;
|
|
||||||
transition: width 0.5s ease;
|
|
||||||
background-color: var(--MAIN-LINK-HOVER-color);
|
|
||||||
}
|
|
||||||
#sidebar {
|
|
||||||
background-color: var(--MENU-SECTIONS-BG-color);
|
|
||||||
}
|
|
||||||
#sidebar #header-wrapper {
|
|
||||||
background: var(--MENU-HEADER-BG-color);
|
|
||||||
color: var(--MENU-SEARCH-BOX-color);
|
|
||||||
border-color: var(--MENU-HEADER-BORDER-color);
|
|
||||||
}
|
|
||||||
#sidebar .searchbox {
|
|
||||||
border-color: var(--MENU-SEARCH-BOX-color);
|
|
||||||
background: var(--MENU-SEARCH-BG-color);
|
|
||||||
}
|
|
||||||
#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
|
|
||||||
background: var(--MENU-SECTIONS-ACTIVE-BG-color);
|
|
||||||
}
|
|
||||||
#sidebar .searchbox * {
|
|
||||||
color: var(--MENU-SEARCH-BOX-ICONS-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar a {
|
|
||||||
color: var(--MENU-SECTIONS-LINK-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar a:hover {
|
|
||||||
color: var(--MENU-SECTIONS-LINK-HOVER-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar ul li.active > a {
|
|
||||||
background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color);
|
|
||||||
color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar hr {
|
|
||||||
border-color: var(--MENU-SECTION-HR-color);
|
|
||||||
}
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
}
|
}
|
||||||
.autocomplete-suggestion {
|
.autocomplete-suggestion {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in a new issue