Commit graph

23 commits

Author SHA1 Message Date
Aaron Qian
d9eccf58f4
Bundle CSS with Hugo's Sass feature (#705)
* migrate bootstrap and flags to bundle

* migrated main.css

* migrate navbar.css and plyr

* migrated mulish font and darkreader

* migrated static/css/sections stylesheets

* migrated list page and sidebar styles

* migrated search.html ( nothing to add )

* migration single page styles

* remove duplicated style tags

* migrate notes.  Deleted unused css in static

* migrate 404 css to bundle

* migrate katex styles

* migrate embedpdf styles

* migrated katex css

---------

Co-authored-by: Aaron Qian <aaron@yeet.io>
2023-01-27 22:56:34 +06:00
Aaron Qian
02db3d3044
Bundling JS with ESBuild (#702)
* add npm dependencies used in this theme

* implement helper to configure JS and ESBuild

* migrate jquery popper.js bootstrap fontawesome to js bundle

* refactor main.js into smaller pieces, and moved navbar.js to assets

* remove list.js. It adjusts post card height to be the same, but is actually not needed.

* refactored notes.js, search.js, single.js into application.js

* move ityped to js asset, implement experiences horizontal vertical line in css

* align recent post height via css

* migrated home.js and refactored into various sections

* migrated darkMode feature to js bundle

* moved mermaid feature to js bundle

* migrate syntax highlight to js bundle

* migrate katex ( js portion ) to js bundle

* migrate pdf-js to js bundle by delegating to cdn

* set explicit comparisions for feature envvars so js can properly optimize

* removed goat-counter

* more fixes for broken achievements and small bugs

* more bug fixes

* allow configuration of hightlight.js, fix video-player shortcode

* remove jquery all together

* add null handling and fix merge conflicts

Co-authored-by: Aaron Qian <aaron@yeet.io>
2023-01-06 00:42:54 +06:00
Emruz Hossain
c3f0bd449e
Look for hero image in page bundle (#684)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2022-11-02 17:56:27 +00:00
Alexandre Neto
32c5c04632
Allow custom hero images Fixes #379 (#670)
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
2022-10-15 17:18:50 +00:00
James Ray
fc3b483697
Allow setting GIFS as author image (#394)
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
2021-08-10 02:39:10 +00:00
Emruz Hossain
61e5a34171
Fix Prev/Next navigator was not pointing to the actual prev/next article (#348)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-06-06 15:43:34 +00:00
vlebert
3421c99ebf
Fix ressource.Fit not resizing the image properly
Co-authored-by: vlebert <vlebert@tactis.fr>
2021-06-03 16:09:08 +06:00
Pablo Marcos
ac28e9824e
Make search multilingual (#305)
* 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>
2021-05-18 00:32:39 +06:00
Emruz Hossain
16f64aa4c2
Allow overwriting country flag for a language (#316)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-05-17 17:43:06 +00:00
Emruz Hossain
67c49c7432
Fix note layout (#274)
* Re-structure note lists

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Support note splitting

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Update single page

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Refactor separator logic in navbar

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-05-02 05:02:27 +06:00
hossainemruz
5c95132b1e Add acomplishment section
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-03-28 00:55:39 +06:00
David G. Simmons
88895c50c2
Fix to the hero so you can have the image named anything you want (#248)
* Fix to the hero so you can have the image named anything you want

* Keep backward compatibility

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: hossainemruz <hossainemruz@gmail.com>
2021-03-13 19:48:52 +06:00
Sarvottam Kumar
182f492df2
add hindi translation (#216) 2021-01-08 23:30:20 +06:00
Patrick Magauran
a2b3c7fda2
Transition to Hugo Image Processing (#173)
* 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>
2020-12-31 20:55:28 +00:00
alex bezek
9ac57313ff
Fix the get author name partial to account for localized author names (#141) 2020-10-31 21:30:23 +06:00
alex bezek
d0c32c5d08
Fix the single template to use the authors avatar correctly (#107)
* 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>
2020-10-25 08:07:18 +06:00
Hugo MARTIN
46b21e028c
Translations and i18n (#60)
* 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>
2020-10-03 09:59:28 +06:00
Cristian Marquez Russo
8f2f18b34c
Update get-author-name.html (#61)
Changed default to the parameters in Config file for consistency
2020-08-27 18:20:49 +06:00
Md. Emruz Hossain
fa4d474974
Refactor sidebar logic + Add Table of Contents in reading page (#33)
* Refactor sidebar logic + fix responsiveness

* Add TOC

* Add Pagination

* Update exampleSite

* Update README.md
2020-07-22 04:14:08 +06:00
Jean-Baptiste Le Duigou
5517dae23a
If no author specified in blog post, it should default to site author (#6)
* Author name should default to site author 

If author name is not present in the blog post it should default to site author

* Default to site author

If author image is not present in the blog post, it should default to the site author
2020-06-24 13:27:28 +06:00
hossainemruz
47a070b45f Update author image size 2020-06-05 22:09:43 +06:00
hossainemruz
dbd270eaee Make theme compatible with hugoBasicExamples
Signed-off-by: hossainemruz <emruz@appscode.com>
2020-06-02 03:59:39 +06:00
hossainemruz
e7b2fba1b0 wip: make theme workable with hugoBasicExample site 2020-04-20 01:59:01 +06:00