You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To show an article's estimated reading time, set the `showReadingTime` parameter to `true` in the `config.toml` file.
357
-
You can override the estimated reading time by setting article's `readingTime` front matter variable to a value you
390
+
You can override the estimated reading time by setting the article's `readingTime` front matter variable to a value you
358
391
want. If you set this variable to `0`, the reading time will not be shown.
359
392
360
393
```
@@ -466,8 +499,10 @@ gallery: [
466
499
467
500
### Image Modal Zoom
468
501
469
-
When you include an image that is larger than the content area, the image becomes interactive and a larger version can
470
-
be opened in a lightbox.
502
+
When you include an image larger than the content area, the image becomes interactive, and a larger version can be
503
+
opened in a lightbox. Modal zoom will work only for images that are added using the standard markdown
504
+
annotation, e.g., `` or `` for
505
+
images with a figure caption. Please note that this feature will not work for images added using raw HTML.
471
506
472
507
### Featured Image
473
508
@@ -523,7 +558,7 @@ mp4video: "<video-file-url>" # location of video file (only mp4)
523
558
mp4videoImage: "<image-video-file-url>" # location of poster image
524
559
```
525
560
526
-
For example, if an `MP4` video and its image are stored in the `static` folder, you can set corresponding front matter
561
+
For example, if an `MP4` video and its image are stored in the `static` folder, you can set the corresponding front matter
527
562
variables as follows:
528
563
529
564
```markdown
@@ -752,7 +787,7 @@ the `/archive/` value and completely remove the `target` variable.
752
787
753
788
### Responsive Design
754
789
755
-
Bilberry theme is optimized to look good on all devices, namely desktops, tablets, and smartphones.
790
+
Bilberry theme is optimized to look good on all devices, namely desktops, tablets and smartphones.
756
791
757
792
### MathJAX Markup
758
793
@@ -770,15 +805,12 @@ your browser.
770
805
771
806
### Trimmed JavaScript Size
772
807
773
-
By default, this theme's JavaScript bundle contains the [highlight.js](https://highlightjs.org/) and [Moment.js](https://momentjs.com/) libraries, which are pretty large, though they add real value.
808
+
By default, this theme's JavaScript bundle contains the [Moment.js](https://momentjs.com/) library, which is large
809
+
enough, though they add real value.
774
810
775
-
Therefore, to reduce the size of the downloaded JavaScript bundle, you can choose whether these features should remain enabled (which is currently the default) via two configuration parameters
776
-
777
-
```toml
778
-
[params]
779
-
enableHighlightJs = true# false would save ~127KiB gzipped
780
-
enableMomentJs = true# false would save ~262KiB gzipped
781
-
```
811
+
Therefore, to reduce the size of the downloaded JavaScript bundle, you can choose whether using the Moment.js library
812
+
remains enabled (currently the default) via the `enableMomentJs` configuration parameter. Setting it to `false` would
813
+
reduce the bundle size by ~262 kB gzipped.
782
814
783
815
### Raw HTML
784
816
@@ -871,23 +903,49 @@ You can customize your posts as follows:
871
903
copy the original content type file to your site's `layouts/partials/content-type/` directory and edit it there.
872
904
Otherwise, your changes will be overwritten when you update the theme to the latest version.
873
905
906
+
### Syntax Highlighting
907
+
908
+
Syntax highlighting forcode blocksin your posts is implemented using Hugo's
909
+
built-in [Chrome](https://github.com/alecthomas/chroma) code highlighter. Highlighting for code blocks in your posts can
910
+
be customized at the site level or per code block.
911
+
912
+
To change the default configuration at the site level, adjust the properties in the `[markup.highlight]` section of
913
+
the `config.toml` file. For example, you can change the default `monokai` style to the one from
914
+
the [Chroma Style Gallery](https://xyproto.github.io/splash/docs/all.html).
915
+
916
+
Per the code block, the following parameters can be
917
+
personalized: `linenos`, `hl_lines`, `linenostart`, `anchorlinenos`, `lineanchors`, and `hl_inline`, for example:
918
+
919
+
\```java {linenos=inline, hl_lines="7-12 21-26"}
920
+
921
+
// ... code
922
+
923
+
\```
924
+
925
+
Read Hugo's [documentation](https://gohugo.io/content-management/syntax-highlighting/) for more details.
926
+
874
927
### Colors and Fonts
875
928
876
-
Bilberry uses SCSS for styling and NPM with [Laravel Mix](https://laravel-mix.com/) for dependency management.
929
+
Styling is implemented using SCSS along with [npm](https://www.npmjs.com/), which is only used fordependency management. Colors and fonts can be customized via variables definedin
930
+
the [`assets/sass/theme.scss`](v4/assets/sass/theme.scss) file.
931
+
932
+
For example, if you want to customize the `$base-color` variable, you should define the `baseColor` parameter in your
933
+
site's `config.toml` file.
877
934
878
-
To change any colors or fonts, you have to follow these steps:
0 commit comments