Browse Source

Customize the theme

master
dtluna 9 months ago
parent
commit
f1d2d18d99
2 changed files with 28 additions and 3 deletions
  1. 22
    0
      assets/css/custom.css
  2. 6
    3
      config.toml

+ 22
- 0
assets/css/custom.css View File

@@ -0,0 +1,22 @@
a[rel*="external"]::after {
content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20class='i-external'%20viewBox='0%200%2032%2032'%20width='14'%20height='14'%20fill='none'%20stroke='%23ff9800'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='9.38%'%3E%3Cpath%20d='M14%209%20L3%209%203%2029%2023%2029%2023%2018%20M18%204%20L28%204%2028%2014%20M28%204%20L14%2018'/%3E%3C/svg%3E");
}
nav a.active {
background-color: inherit;
color: #fff;
}
a {
border-bottom: 1px solid #de0004;
color: #de0004;
}
a:hover {
background-color: #de0004;
color: #fff;
}
.muted, .help-block {
opacity: 0.70;
}
.hack .muted,
.hack .help-block {
color: #e0e0e0;
}

+ 6
- 3
config.toml View File

@@ -18,6 +18,9 @@ images = ["https://dtluna.net/favicon.png"]
[params.assets]
favicon = "favicon.png"

[params.hackcss]
palette = "dark-grey"

[[menu.main]]
name = "Home"
weight = 1
@@ -28,16 +31,16 @@ url = "/"
name = "Search"
weight = 2
identifier = "search"
url = "/search"
url = "/search/"

[[menu.main]]
name = "About"
weight = 3
identifier = "about"
url = "/about"
url = "/about/"

[[menu.main]]
name = "Source code"
name = "Repo"
weight = 4
identifier = "repository"
url = "https://git.dtluna.net/dtluna/dtluna-net"

Loading…
Cancel
Save