Skip to content
Permalink
Browse files
Implement header permalinks
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 15, 2017
1 parent 2256812 commit 502bc31f0e05d88182042cc9b71a8cc0c1f74cac
Showing with 11 additions and 0 deletions.
  1. +7 −0 conf.py
  2. +4 −0 files/assets/css/custom.css
@@ -241,3 +241,10 @@
GZIP_FILES = True
IMAGE_FOLDERS = {'images': 'images'}
IMAGE_THUMBNAIL_SIZE = 400

from nikola import filters
FILTERS = {
".html": [filters.add_header_permalinks]
}

HEADER_PERMALINKS_FILE_BLACKLIST = ['output/index.html']
@@ -125,3 +125,7 @@ code.gs-code {
max-height: 80vh;
width: auto;
}

/* Header permalinks */
.headerlink { color: #ddd; margin-left: 0.2em; }
.headerlink:hover { opacity: 1; background: #ddd; color: #000; text-decoration: none; }

0 comments on commit 502bc31

Please sign in to comment.