Skip to content

Commit

Permalink
Merge pull request #45 from markdumay/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
markdumay authored Nov 3, 2022
2 parents 14b6d25 + a6cc743 commit b888ad5
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

## About

![Logo](https://raw.githubusercontent.com/markdumay/hugo-theme-hinode/main/static/logo.png)
![Logo](https://raw.githubusercontent.com/markdumay/hugo-theme-hinode/main/static/img/logo.png)

- [Online Demo][demo]
- [PageSpeed Insights][pagespeed]
Expand Down
8 changes: 4 additions & 4 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ schemaAuthorTwitter = "https://twitter.com/markdumay"
schemaAuthorLinkedIn = "https://www.linkedin.com/in/markdumay/"
schemaAuthorGitHub = "https://github.com/markdumay"
schemaLocale = "en-US"
schemaLogo = "logo512x512.png"
schemaLogo = "img/logo512x512.png"
schemaLogoWidth = 512
schemaLogoHeight = 512
schemaImage = "logo1280x640.png"
schemaImage = "img/logo1280x640.png"
schemaImageWidth = 1280
schemaImageHeight = 640
# schemaTwitter = "https://twitter.com/gethinode"
Expand All @@ -48,8 +48,8 @@ schemaSection = "blog"
themeOpacity = "10"

[main]
featurePhoto = "img/sunrise.jpg" # source: https://unsplash.com/photos/ZX6BPboJrYk
logo = "/logo_embedded.svg"
featurePhoto = "/img/sunrise.jpg" # source: https://unsplash.com/photos/ZX6BPboJrYk
logo = "/img/logo_embedded.svg"


[comments]
Expand Down
2 changes: 1 addition & 1 deletion content/en/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: "2022-04-11"
showComments: false
---

<p class="text-center"><img src="/logo_embedded.svg" class="img-fluid w-50" alt="Logo"></p>
<p class="text-center"><img src="/img/logo_embedded.svg" class="img-fluid w-50" alt="Logo"></p>

<center>Hinode is a clean blog theme for Hugo, an open-source static site generator.</center>

Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/emoji-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: 2021-07-15
description: "Guide to emoji usage in Hugo"
tags: ["emoji"]
# thumbnail: img/dunes.jpg
thumbnail: https://picsum.photos/id/184/4288/2848
thumbnail: https://picsum.photos/id/184/4288/2848.jpg
credits: Photo by <a href="https://unsplash.com/@timdegroot">Tim de Groot</a> on <a href="https://unsplash.com/photos/yNGQ830uFB4">Unsplash</a>
---

Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/head/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
{{ $source := resources.Get . -}}
{{ if not $source }}
{{ $source = resources.GetRemote . -}}
{{ if $source }}
{{ $filename := index (last 1 (split (delimit (split . "/") "," "") ",")) 0 }}
{{ $source = $source.Content | resources.FromString (printf "/img/%s" $filename) }}
{{ end }}
{{ end }}
{{ with $source }}
{{ $dim := "1280x640" -}}
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

{{ if not $img }}
{{ $img = resources.GetRemote .url -}}
{{ if $img }}
{{ $filename := index (last 1 (split (delimit (split .url "/") "," "") ",")) 0 }}
{{ $img = $img.Content | resources.FromString (printf "/img/%s" $filename) }}
{{ end }}
{{ end}}

{{ with $img }}
Expand Down
4 changes: 4 additions & 0 deletions layouts/shortcodes/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
{{ $img := resources.GetMatch $url }}
{{ if not $img }}
{{ $img = resources.GetRemote $url -}}
{{ if $img }}
{{ $filename := index (last 1 (split (delimit (split $url "/") "," "") ",")) 0 }}
{{ $img = $img.Content | resources.FromString (printf "/img/%s" $filename) }}
{{ end }}
{{ end}}

{{ with $img }}
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@markdumay/hugo-theme-hinode",
"version": "0.5.1",
"version": "0.5.2",
"description": "Hinode is a clean blog theme for Hugo, an open-source static site generator",
"main": "index.js",
"publishConfig": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"eslint": "^8.26.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.3.0",
"eslint-plugin-n": "^15.4.0",
"eslint-plugin-promise": "^6.1.1",
"exec-bin": "^1.0.0",
"flexsearch": "^0.7.31",
Expand All @@ -65,6 +65,6 @@
"stylelint-config-standard-scss": "^6.0.0"
},
"otherDependencies": {
"hugo": "0.104.3"
"hugo": "0.105.0"
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit b888ad5

Please sign in to comment.