diff options
author | Varun A P <varunlakshmananap@gmail.com> | 2020-09-25 09:14:20 +0300 |
---|---|---|
committer | Varun A P <varunlakshmananap@gmail.com> | 2020-09-25 09:14:20 +0300 |
commit | 2dd29da8b0b3355532ff07f2f4159387ff685945 (patch) | |
tree | 5c19b222536b94b331e0a2ff6e8d37bb3a914b15 | |
parent | 93b2d3c86db8bcd25a7ed86c34fe12e31f5cc587 (diff) |
Support for changing logo
-rw-r--r-- | CHANGELOG.md | 23 | ||||
-rw-r--r-- | layouts/partials/header.html | 21 | ||||
-rw-r--r-- | layouts/partials/logo.html | 15 |
3 files changed, 42 insertions, 17 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..65098de --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +All the changes made to Showcase theme for Hugo. + +## 2020-09-25 + +### Added + +- Add support for overriding logo (/layout/partials/logo.html) + +### Fixed + +- Fix issue with showing homepage filters in other custom pages + +## 2020-06-24 + +### Added + +- Add support for custom menu option + +## 2020-06-10 + +- Initial Release diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 474dcd3..3c603d3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,26 +6,12 @@ class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0" href="{{ .Site.BaseURL }}" > - <svg - xmlns="http://www.w3.org/2000/svg" - fill="none" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - class="w-10 h-10 text-white p-2 bg-blue-500 rounded-full" - viewBox="0 0 24 24" - > - <path - d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" - ></path> - </svg> - <span class="ml-3 text-xl">{{ .Site.Params.Author }}</span> + {{- partial "logo.html" . -}} </a> <nav class="md:ml-auto flex flex-wrap items-center text-base justify-center" > - {{ if eq .Site.Params.hideAutoMenu false }} + {{ if and (eq .Site.Params.hideAutoMenu false) (eq $.IsNode true ) }} <a class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 show-all" >All</a @@ -35,7 +21,8 @@ class="mr-2 px-2 rounded cursor-pointer select-none hover:text-gray-900 filter-{{lower .Title}}" >{{.Title}}</a > - {{ end }}{{ end }} + {{ end }} + {{ end }} {{ range .Site.Menus.main }} <a href="{{ .URL }}" diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html new file mode 100644 index 0000000..648b8b3 --- /dev/null +++ b/layouts/partials/logo.html @@ -0,0 +1,15 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + fill="none" + stroke="currentColor" + stroke-linecap="round" + stroke-linejoin="round" + stroke-width="2" + class="w-10 h-10 text-white p-2 bg-blue-500 rounded-full" + viewBox="0 0 24 24" +> + <path + d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" + ></path> +</svg> +<span class="ml-3 text-xl">{{ .Site.Params.Author }}</span>
\ No newline at end of file |