Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement header permalinks
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 15, 2017
1 parent 2256812 commit 502bc31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conf.py
Expand Up @@ -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']
4 changes: 4 additions & 0 deletions files/assets/css/custom.css
Expand Up @@ -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.