Selaa lähdekoodia

Adjustment highlighting for Academic 2.4.0

Now we can only put highlight_languages in config.toml.
Xi Ruoyao 7 vuotta sitten
vanhempi
commit
2a1377c70b
2 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2 4
      config.toml
  2. 0 2
      content/post/helloworld.md

+ 2 - 4
config.toml

@@ -124,9 +124,7 @@ enableGitInfo = true
   #
   #   highlight_languages
   #     Add support for highlighting additional languages. Support for
-  #     languages mentioned here will be included in all pages. You
-  #     can also set this variable for a particular page in that
-  #     page's preamble.
+  #     languages mentioned here will be included in all pages.
   #
   #     Example: highlight_languages = ["go", "lisp", "ocaml"]
   #
@@ -143,7 +141,7 @@ enableGitInfo = true
   #   For more info on the highlighting options, see:
   #   https://sourcethemes.com/academic/post/writing-markdown-latex/#highlighting-options
   highlight = true
-  highlight_languages = []
+  highlight_languages = ["c", "c++", "go", "python" ]
   # highlight_style = "github"
 
   # Enable native social sharing buttons?

+ 0 - 2
content/post/helloworld.md

@@ -4,8 +4,6 @@ draft = false
 tags = []
 title = "Hello, world!"
 math = true
-highlight = true
-highlight_languages = ["go"]
 +++
 
 # Hello, world