Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Fix code highlighting & allow to edit hello-friend logo text fron con…
Browse files Browse the repository at this point in the history
…fig file
  • Loading branch information
panr committed Aug 30, 2018
1 parent 046a394 commit 3272341
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 11 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -45,7 +45,10 @@ paginate = 5
[params]
subtitle = "Your site subtitle"
# [params.logo]
[params.logo]
logoText = ""
# or
#
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"
Expand All @@ -58,6 +61,7 @@ paginate = 5
identifier = "contact"
name = "Contact"
url = "/contact"
```

to `config.toml` file in your Hugo root directory and change params fields.
Expand Down
7 changes: 7 additions & 0 deletions exampleSite/config.toml
Expand Up @@ -8,6 +8,13 @@ paginate = 5
[params]
subtitle = "A simple theme for Hugo"

[params.logo]
logoText = ""
# or
#
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"

[menu]
[[menu.main]]
identifier = "about"
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -23,6 +23,7 @@
"babel-loader": "^8.0.0-beta.0",
"browserslist": "^4.0.1",
"clean-webpack-plugin": "^0.1.16",
"clipboard": "^2.0.1",
"css-loader": "^1.0.0",
"cssnano": "^4.0.3",
"eslint-config-airbnb": "^17.1.0",
Expand Down
3 changes: 2 additions & 1 deletion source/css/logo.css
Expand Up @@ -2,6 +2,7 @@
display: flex;
align-items: center;
text-decoration: none;
font-weight: bold;

img {
height: 44px;
Expand All @@ -26,4 +27,4 @@
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
}
49 changes: 42 additions & 7 deletions source/js/prism.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion static/assets/prism.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/assets/style.css

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions yarn.lock
Expand Up @@ -1448,6 +1448,14 @@ cli-width@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"

clipboard@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/clipboard/-/clipboard-2.0.1.tgz#a12481e1c13d8a50f5f036b0560fe5d16d74e46a"
dependencies:
good-listener "^1.2.2"
select "^1.1.2"
tiny-emitter "^2.0.0"

cliui@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
Expand Down Expand Up @@ -1933,6 +1941,10 @@ del@^2.0.2:
pinkie-promise "^2.0.0"
rimraf "^2.2.8"

delegate@^3.1.2:
version "3.2.0"
resolved "https://registry.yarnpkg.com/delegate/-/delegate-3.2.0.tgz#b66b71c3158522e8ab5744f720d8ca0c2af59166"

delegates@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
Expand Down Expand Up @@ -2593,6 +2605,12 @@ globby@^8.0.0:
pify "^3.0.0"
slash "^1.0.0"

good-listener@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50"
dependencies:
delegate "^3.1.2"

graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
Expand Down Expand Up @@ -4998,6 +5016,10 @@ schema-utils@^0.4.0, schema-utils@^0.4.3, schema-utils@^0.4.4, schema-utils@^0.4
ajv "^6.1.0"
ajv-keywords "^3.1.0"

select@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/select/-/select-1.1.2.tgz#0e7350acdec80b1108528786ec1d4418d11b396d"

semver@5.5.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
Expand Down Expand Up @@ -5338,6 +5360,10 @@ timsort@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"

tiny-emitter@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.0.2.tgz#82d27468aca5ade8e5fd1e6d22b57dd43ebdfb7c"

tmp@^0.0.33:
version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
Expand Down

0 comments on commit 3272341

Please sign in to comment.