diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d7e95b88..ceff043cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.13.0] - 2018-10-13 +### Added +- Functionality to automatically resize and crop images. + +### Fixed +- A bug where the `customImage` is not displayed on multi-language sites. #137 +- Style for the gallery slider controls so they are visible on white backgrounds. #138 + + ## [1.12.0] - 2018-10-08 ### Fixed - Bug #128 that prevent to build the site. @@ -179,7 +188,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Some typos -[Unreleased]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.12.0...master +[Unreleased]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.13.0...development +[1.13.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.12.0...1.13.0 [1.12.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.11.1...1.12.0 [1.11.1]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.11.0...1.11.1 [1.11.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.10.0...1.11.0 diff --git a/README.md b/README.md index 782d538db..05f58722a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ If you like this theme and/or use it for commercial purposes, please support me! - [Manual Summary Breaks](#manual-summary-breaks) - [Disqus Comments](#disqus-comments) - [Responsive Design](#responsive-design) + - [Automatic Image Resizing](#automatic-image-resizing) - [Permanent Top Navigation](#permanent-top-navigation) - [MathJAX Markup](#mathjax-markup) - [External Images](#external-images) @@ -174,6 +175,12 @@ You can manage and moderate the comments either on your website or at the disqus ### Responsive Design Bilberry is optimized for desktop and mobile devices (tablets and smartphones). +### Automatic Image Resizing +The bilberry theme handles image crops and resizes automatically by default. +However, if you want to disable this functionality in general, you can set `resizeImages: false` in your `config.toml` file. + +If you want to disable this functionality just on some posts, you can set `resizeImages: false` in your post's settings. + ### Permanent Top Navigation If you want to permanently display the top navigation with the algolia search bar and the `page` entries, you can set the `permanentTopNav` option to `true` in your site's config file. diff --git a/assets/sass/_articles.scss b/assets/sass/_articles.scss index 9221334e8..d80e46624 100644 --- a/assets/sass/_articles.scss +++ b/assets/sass/_articles.scss @@ -245,6 +245,7 @@ article { &:before { color: rgba(255, 255, 255, 0.9); + text-shadow: 1px 1px 5px rgba(0,0,0,0.5); } } } diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 19d51ae52..ab5d2d34d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -48,6 +48,9 @@ disqusShortname = "bilberry-hugo-theme" # set the width of your site's content siteWidth = "800px" + # let hugo automatically resize and crop your images to the correct sizes + resizeImages = true + # Header configuration # your subtitle if you want to use any subtitle = "Hello World! This is the most epic subtitle ever." diff --git a/exampleSite/content/article/support-and-discussions/index.de.md b/exampleSite/content/article/support-and-discussions/index.de.md index 469054021..f3bb6e646 100644 --- a/exampleSite/content/article/support-and-discussions/index.de.md +++ b/exampleSite/content/article/support-and-discussions/index.de.md @@ -5,6 +5,8 @@ date: 2017-11-01T18:10:14+01:00 tags: ['Discord', 'Support', 'Sag Danke!'] author: "Lednerb" noSummary: true + +resizeImages: false --- Hallo zusammen! diff --git a/exampleSite/content/article/support-and-discussions/index.md b/exampleSite/content/article/support-and-discussions/index.md index 148ab3b00..eafd1d648 100644 --- a/exampleSite/content/article/support-and-discussions/index.md +++ b/exampleSite/content/article/support-and-discussions/index.md @@ -5,6 +5,8 @@ date: 2017-11-01T18:10:14+01:00 tags: ['Discord', 'Support', 'Say Thanks!'] author: "Lednerb" noSummary: true + +resizeImages: false --- Hey there! diff --git a/layouts/partials/content-type/gallery.html b/layouts/partials/content-type/gallery.html index 1c51e03a0..65373ea1b 100644 --- a/layouts/partials/content-type/gallery.html +++ b/layouts/partials/content-type/gallery.html @@ -3,7 +3,6 @@