Ananke Documentation
  • Get started
    • Choose an installation method
    • Install as a Hugo Module (recommended)
    • Install as a Git submodule
    • Upgrade from theNewDynamic to gohugo-ananke
  • Configuration
    • General configuration
    • Homepage
    • Menus
    • Social media networks
    • SEO
    • robots.txt and environments
    • Analytics
    • Multilingual and i18n
    • Configuration reference
  • Content
    • Front matter
    • Authors and read more links
    • Content types and archetypes
    • Images
    • Summaries and reading time
    • Taxonomies
    • Shortcodes
  • Customisation
    • Colours
    • Styles
    • Custom CSS
    • Page headers
    • Header layout and hooks
    • Comments
    • Overriding partials
    • Layout map
    • Hooks & filters
  • Examples
    • Minimal blog
    • Multilingual site
    • No-blog static site
    • External links
    • Add a LinkedIn icon
  • Help
    • Troubleshooting
    • Contributing to the documentation
    • Contributors
    • Developing across the Ananke repositories
Mastodon
Examples and recipes

External links

css
a.ananke-social-link[target="_blank"]::after {
  content: "↗" / "Open in new window";
  display: inline-block;
  margin-inline-start: 0.25em;
  font-size: 0.85em;
  line-height: 1;
  vertical-align: 0.1em;
}
css
.new-window {
  opacity: 0;
  display: inline-block;
  vertical-align: top;
}
.link-transition:hover .new-window{
  opacity: 1;
}
css
@supports (content: "x" / "y") {
  .new-item::before {
    content: "★" / "Highlighted Text:";
  }
}

@supports not (content: "x" / "y") {
  .new-item::before {
    content: "★";
    alt: "Highlighted Text:";
  }
}

Revealing URLs in print styles sheets #

css
@media print {
  a[href^="http://"]:after,
  a[href^="https://"]:after
  {
    content: ' (' attr(href) ')';
  }
}

custom counters #

css
ol {
  list-style-type: none;
  counter-reset: mylist;
}

li {
  counter-increment: mylist;
}

li::before {
  content: '🤤 ' counter(mylist) ': ';
}
Improve this page on GitHub

      On this page

      • Revealing URLs in print styles sheets
      • custom counters
      Ananke Documentation © Ananke Documentation 2026
      Mastodon