Skip to content

Commit

Permalink
fix logo
Browse files Browse the repository at this point in the history
  • Loading branch information
liusulin committed Aug 31, 2023
1 parent d5c588b commit 2f76c54
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baseURL = "https://liusulin.github.io/"
languageCode = "en-us"
title = "Sulin Liu, MIT"
title = "Sulin Liu"
theme = "hugo-ht"
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
footnotereturnlinkcontents = ""
Expand Down Expand Up @@ -55,7 +55,7 @@ posts = "/posts/:year/:month/:day/:slug/"
defaultLang = "en"
MathJaxCDN = "//cdnjs.cloudflare.com/ajax/libs"
MathJaxVersion = "2.7.5"
favicon = "/media/mit_logo.png"
favicon = "/media/mit_favicon.ico"
# Edit by yourself:
GithubEdit = "https://github.com/liusulin/liusulin.github.io/edit/master/content/"
copyright = "©"
Expand All @@ -66,11 +66,8 @@ posts = "/posts/:year/:month/:day/:slug/"
ContentSource = "https://raw.githubusercontent.com/liusulin/liusulin.github.io/master/content/"

[params.logo]
# Change the logo picture as your prefer:
url = "/media/mit_logo.png" # you can change it
# adjust the ratio of the logo picture:
width = 100.0
height = 50.0
url = "/media/MIT-logo-red-gray.png" # you can change it
alt = "MIT logo"


[params.lang]
Expand Down
Binary file added static/media/MIT-logo-red-gray.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/media/mit_favicon.ico
Binary file not shown.
Binary file removed static/media/mit_logo.png
Binary file not shown.
Binary file removed static/media/mit_logo_small.png
Binary file not shown.
2 changes: 1 addition & 1 deletion themes/hugo-ht/layouts/partials/nav.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="nav" >
<a class="nav-logo">
<img src="{{ print "" .Site.Params.logo.url | relURL }}"
<img src="{{ .Site.Params.logo.url | relURL }}"
width="{{ .Site.Params.logo.width }}"
height="{{ .Site.Params.logo.height }}"
alt="{{ .Site.Params.logo.alt }}">
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-ht/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ div.splitbox div.right {
.nav-logo img {
display: block;
height: 35px;
width: 30px;
width: 68px;
border-radius: 0%;
}

Expand Down

0 comments on commit 2f76c54

Please sign in to comment.