Display your favorite blog posts front-and-center.
After Dark helps you showcase your favorite blog posts by allowing you to easily specify a set of pages to appear first in post listings using only site config.
Use featured posts to drive more traffic to your highest value pages, increase the visibility of niche content or target pages for additional inbound links.
Adjust featured posts from Site Configuration by adding:
[params.layout.post.featured] limit = 3 items = [ "borg-backup-minio-scaleway", "dual-boot-manjaro-mojave-macbook-pro", "surfing-uncensorable-web", "encrypted-internet-wireguard-manjaro-linux" ] Modify items using the page slugs from your posts and adjust the featured limit to the total number of items you wish to display.
Quickly locate indexed content anywhere on the site.
If a search engine can find it, so can you. Quickly locate indexable content site-wide with fuzzy search. No registration necessary.
Interactive Example Adjust it from _index.md in the site content/search directory:
├── archetypes ├── content │ └── search │ └── _index.md ├── static ├── themes If the file doesn’t exist, yet create it:
$ hugo new search/_index.md And specify the JSON Output Format in site config:
Quickly locate information in longer posts.
Automatically generate a table of contents with smooth-scroll links based on the current page outline. To do so add the following to post Front Matter:
toc = true Set false, or simply remove the setting, to disable.
The table of contents will be collapsed under a disclosure on page load. Once the disclosure is expanded the full page outline will be revealed. Selecting an item in the outline will smooth-scroll to the corresponding section, update the browser history and highlight the section title.
Navigate the site using author-defined taxonomies.
After Dark generates categorical and tag taxonomy and taxonomy terms pages and links to them automatically in posts using Post Bylines.
Given the following page Front Matter for a post type:
categories = ["navigation"] tags = ["links", "taxonomy"] The following taxonomy links would appear in the byline:
Published [by author] [publishdate or date] in navigation and tagged links and taxonomy using [wordcount] words.
The following Index Blocked taxonomy pages generated: