Added id="footer" just in case someone wants to link there via custom
menus or href="#footer".
Co-authored-by: stueja <jan@jBook.local>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
* feat: customMenus in footer
Show customMenu links also in footer.
In `config.yaml`,
- `params.footer.enable` is `true` to show the footer at all
- `params.footer.navigation.enable` is `true` to show navigation items
in the footer
- `params.footer.navigation.customMenus.enable` is `true` to show
customMenu items
Example:
```
params:
footer:
enable: true
navigation:
enable: true
customMenus:
enable: true
```
In `data/<language>/site.yaml`,
- `customMenus` must contain at least one entry with `showOnFooter:
true`
Example:
```
customMenus:
- name: Imprint
url: posts/imprint
showOnFooter: true
```
* fix: nesting levels in config
Co-authored-by: stueja <jan@jBook.local>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
* Footer contact info: Icons and linking
* Open link in a new tab
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
* Add Blogtrottr as newsletter provider
* Fixed absLangURL issue with sections in footer
Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com>
* Fix link to email address
See https://github.com/hossainemruz/toha/issues/7
* ✨ adding mailchimp newsletter feature
Signed-off-by: jbleduigou <jb.leduigou@gmail.com>
* Make possible to support different newsletter service in future
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
* Allow to disable the footer with params.footer.enable = false
Default is to have the footer enabled (to keep backwards
compatibility).
The diff looks much worse than it is, I just added a variable and an
if clause, but then had to indent the rest of the file.
Make footerEnabled an explicit variable.
This should improve readability.
Use default parameter for even more readability.
* Allow to enable/disable the "contact me" section in the footer.
Just set `footer.contactMe.enable` in the config. Default is true, for
backwards compatibility.
* Make footer template more consistent.
Enabling footers elements and the newsletter is now managed in the
same place.
* Allow to disable the footer navigation. Default is enabled.
* Allow to disable credentials and copyright notice. Default: enabled
* Footer: Reformat variable initialization for readability.
* Allow providing template for footer
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: hossainemruz <hossainemruz@gmail.com>
* Add alt tag to the images
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Remove unnecessary /
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Update layout to use Hugo Image Processing.
Created shortcode rimg that uses the srcset attribute to display responsive images.
* Copy Static images to assets folder.
* Add image processing to missing components + Update examples
* Fix rendering in https://themes.gohugo.io/
Co-authored-by: Emruz Hossain <emruz@appscode.com>
* Fix the single template to use the authors avatar correctly
* Replace absURL with relURL and .Site.X with site.X
Co-authored-by: Emruz Hossain <emruz@appscode.com>
* Managing i18n
* Fix absolute path
* Config files
* Home link manage langage
* Fixing footer i18n
* Implemented i18n on newsletter
* Implemented two languages in example
* Removed old section directory
* Using yaml in data to organize home summary
* Fully working for old versions without i18n
* Integrating language menu CSS
* Fix language dropdown CSS
* Refactor translation codes
* Remove duplicate code
* Fix URL issues
* Move customMenus and other site related config into data section
* Fix error during language toggle
* Only show the available translation for the posts
* Handle navbar brand URL properly
* Fix responsiveness
Co-authored-by: Hugo MARTIN <hugo.martin.69@gmail.com>
Co-authored-by: hossainemruz <emruz@appscode.com>
* Make home page sections dynamic and configurable
* Fix navbar issue when no section is configured + fix next-prev navigator
* Update exampleSite
* Fix next-prev navigator
* Make navbar brand URL context aware