33title = "after-dark"
44description = "A robust, elegant dark theme"
55template = "theme.html"
6- date = 2024-11-04T05:59:13Z
6+ date = 2024-11-18T05:58:26Z
77
88[ extra]
9- created = 2024-11-04T05:59:13Z
10- updated = 2024-11-04T05:59:13Z
9+ created = 2024-11-18T05:58:26Z
10+ updated = 2024-11-18T05:58:26Z
1111repository = "https://github.com/getzola/after-dark.git "
1212homepage = "https://github.com/getzola/after-dark "
1313minimum_version = "0.17.0"
@@ -21,7 +21,14 @@ homepage = "https://www.vincentprouillet.com"
2121
2222# after-dark
2323
24- ![ after-dark screenshot] ( https://github.com/getzola/after-dark/blob/master/screenshot.png?raw=true )
24+ ![ after-dark screenshot] ( screenshot.png )
25+
26+ ## Features
27+
28+ - [x] Code Snippet Clipboards
29+ - [x] Latex Support
30+ - [ ] Light/Dark mode support
31+ - [x] Search functionality
2532
2633## Contents
2734
@@ -30,14 +37,19 @@ homepage = "https://www.vincentprouillet.com"
3037 - Top menu
3138 - Title
3239 - Author
40+ - Code Snippets
41+ - LaTex Support
42+ - Searchbar
3343
3444## Installation
45+
3546First download this theme to your ` themes ` directory:
3647
3748``` bash
3849cd themes
3950git clone https://github.com/getzola/after-dark.git
4051```
52+
4153and then enable it in your ` config.toml ` :
4254
4355``` toml
@@ -61,13 +73,14 @@ taxonomies = [
6173 {name = " tags" , feed = true },
6274]
6375```
76+
6477If you want to paginate taxonomies pages, you will need to overwrite the templates
6578as it only works for non-paginated taxonomies by default.
6679
67-
6880## Options
6981
7082### Top-menu
83+
7184Set a field in ` extra ` with a key of ` after_dark_menu ` :
7285
7386``` toml
@@ -83,19 +96,24 @@ If you put `$BASE_URL` in a url, it will automatically be replaced by the actual
8396site URL.
8497
8598### Title
99+
86100The site title is shown on the homepage. As it might be different from the ` <title> `
87101element that the ` title ` field in the config represents, you can set the ` after_dark_title `
88102instead.
89103
90104### Author
105+
91106You can set this on a per page basis or in the config file.
92107
93108` config.toml ` :
109+
94110``` toml
95111[extra ]
96112author = " John Smith"
97113```
114+
98115In a page (wrap this in +++):
116+
99117``` toml
100118title = " ..."
101119date = 1970-01-01
@@ -104,7 +122,49 @@ date = 1970-01-01
104122author = " John Smith"
105123```
106124
107- ## Original
108- This template is based on the Hugo template https://git.habd.as/comfusion/after-dark
125+ ### Code Snippets
126+
127+ Syntax Highlighting:
128+
129+ ``` toml
130+ [markdown ]
131+ # Whether to do syntax highlighting
132+ # Theme can be customized by setting the `highlight_theme` variable to a theme supported by Zola
133+ highlight_code = true
134+
135+ highlight_theme = " one-dark"
136+ ```
137+
138+ Enhanced Codeblocks (Clipboard Support and Language Tags)
139+
140+ To enable enhanced codeblocks, set the following in your ` config.toml ` :
141+
142+ ``` toml
143+ [extra ]
144+ codeblock = true
145+ ```
146+
147+ ### LaTex Support
148+
149+ To enable LaTeX support with MathJax, set the following in your ` config.toml ` :
150+
151+ ``` toml
152+ [extra ]
153+ latex = true
154+ ```
155+
156+ ### Searchbar
157+
158+ To enable a searchbar at the top of the page navigation, set the following in your ` config.toml ` :
159+
160+ ``` toml
161+ build_search_index = true
162+
163+ [search ]
164+ index_format = " elasticlunr_json"
165+
166+ [extra ]
167+ enable_search = true
168+ ```
109169
110170
0 commit comments