* feat: add valine support
* Adjust the comment config
* Adjust the comment config
* Make comment section backward compatible with old config
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: hossainemruz <hossainemruz@gmail.com>
Per https://github.com/hugo-toha/toha/issues/352 - in order to support Google Analytics v4, _internal/google_analytics.html should be used
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Make search multilingual
* Added Support for custom country flags
* Add search.md for more language + fix search behavior
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.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>
* translate_Chinese
* translate_Chinese
* Add one-click return to the top function on the article page
Signed-off-by: Ray <Chow-Ray@outlook.com>
* Fix scroll-to-top button
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
* Add support for client-side search with Fuse.js. Implements #42.
Based on https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae
* Move search form code repeated in many places to one single template.
* Add search box in home page.
* Fix search UI + Some improvements
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Remove search.md from exampleSite
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
I love the list template. However, I had some issues using it for other content archetypes other than `posts`. This code change makes list.html fully generic, there are no more built in references to `posts`.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.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