Commit graph

41 commits

Author SHA1 Message Date
Emruz Hossain
6f8280a656
Fix importing user CSS (#338)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-06-01 16:54:45 +00:00
Emruz Hossain
4a0aa4758a
Add OpenGraph Headers (#333)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-05-30 12:32:00 +00:00
hossainemruz
e7cc9bcbe8 Revert "Add OpenGraph Headers"
This reverts commit 249f18d853.

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-05-30 18:23:56 +06:00
hossainemruz
249f18d853 Add OpenGraph Headers
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-05-30 18:20:35 +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
Kaligule
fc5656c937
Allow footer configuration (#303)
* 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>
2021-05-02 03:57:19 +06:00
Jakub Cabak
19c2edb08d
Accessibility and SEO improvements (#296)
Co-authored-by: JCabak <kubaczento@gmail.com>
2021-04-25 17:15:22 +06:00
Tommy Chu
d38634df8d
Refactor target values of redirections to external pages (#292) 2021-04-05 23:32:54 +06:00
Emruz Hossain
fa946af504
Fix various issues detected by html-proofer (#270)
* Add alt tag to the images

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

* Remove unnecessary /

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-03-29 03:44:33 +06:00
Emruz Hossain
25e4e9e3d0
Add notes layout (#263)
* Add note layout

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

* Fix note organization

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

* WIP: need help adding above 6 sections doesnt fit navbar

* Add note layout

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

* Add Translation

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

Co-authored-by: HenzelMoras <henzelmoras@gmail.com>
2021-03-27 19:52:18 +00:00
BoT
62ca383b8b
Add back to top (#213)
* 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>
2021-03-14 01:09:50 +06:00
Chuso Pérez
0848be17ba
#42 Add suppor for client-side search (#227)
* 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>
2021-03-13 23:43:10 +06:00
Nicholas Santiago
83f7946136
parameterize git branch (#222)
* parameterize git branch

* docs: add param to README.md, prettier lint
2021-01-21 13:03:37 +06:00
Emruz Hossain
20d9f3a080
Remove "assets" prefix from "static" folder (#208) 2021-01-03 18:40:26 +00:00
Henning Blunck
7c87605d45
Make list.html fully generic (#203)
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>
2021-01-02 13:28:06 +00: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
Emruz Hossain
49ba62a9da
Fix translation + navbar CSS (#142) 2020-10-31 21:15:37 +00:00
Richard Tirtadji
2e9affd5c0
Fixed post link error on sidebar (#125)
Co-authored-by: Richard Tirtadji <richardtirtadji@Richards-MacBook-Pro.local>
2020-10-31 04:35:25 +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
dadosch
33a68fc44f
fix URLs when serving from a subdirectory (#120) 2020-10-22 23:27:04 +06:00
Emruz Hossain
d5e0de3171
Fix post url (#91) 2020-10-05 20:24:29 +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
Emruz Hossain
85971e6057 Fix auto-prefixer 2020-08-21 22:29:06 +06:00
Ayoze Fernández
5f48a5bacb
added support for the meta description tag (#57)
* added support for the meta description tag

* Update meta description logic for single page

Co-authored-by: hossainemruz <emruz@appscode.com>
2020-08-06 21:50:20 +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
hossainemruz
8d6cbcca21 Use "*-section class" instead of adding new div 2020-06-30 21:57:20 +06:00
Md. Emruz Hossain
e2d376215a
Make home page sections dynamic and configurable (#14)
* 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
2020-06-30 01:54:28 +06:00
hossainemruz
0d7267f52a Fix making header linkable 2020-06-21 23:02:19 +06:00
hossainemruz
b57d2bcf52 Make header linkable + fix bug 2020-06-17 05:46:46 +06:00
hossainemruz
6cc935dfbc Fix image dimension and unwanted page listing 2020-06-15 22:46:11 +06:00
hossainemruz
cdb2267f2d Add README.md 2020-06-14 13:57:07 +06:00
hossainemruz
9b10cadb58 Add short code + add improve this page button 2020-06-14 02:46:22 +06:00
hossainemruz
be9ffaf7c5 add paginator code but keep it disabled 2020-06-11 02:17:51 +06:00
hossainemruz
1ffe31f6c4 Fix post sorting + make card linkable 2020-06-11 01:02:30 +06:00
hossainemruz
6bb8705d8e Remove data folder + fix css/html 2020-06-09 06:15:15 +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
hossainemruz
00465629d2 Convert list page into hugo templates 2020-04-18 02:19:46 +06:00
hossainemruz
9e645a50a6 Add page title 2020-04-17 02:47:01 +06:00
hossainemruz
6106bb0fb3 Convert single page into hugo template 2020-04-17 02:40:14 +06:00
hossainemruz
e28a9b171b fix folder structure 2020-04-13 21:51:32 +06:00