[gimp-web/testing] Added markdown TOC options for permalinks
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Added markdown TOC options for permalinks
- Date: Wed, 13 Jan 2016 19:34:15 +0000 (UTC)
commit 873439496353bce432e5907fee4e044867bd7ef8
Author: Pat David <patdavid gmail com>
Date: Wed Jan 13 13:30:22 2016 -0600
Added markdown TOC options for permalinks
pelicanconf.local.py | 5 ++++-
themes/newgimp/static/css/gimp.css | 26 ++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index c86787c..adcad8b 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -101,7 +101,10 @@ TYPOGRIFY_IGNORE_TAGS = ['title']
DELETE_OUTPUT_DIRECTORY = True
-MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid', 'toc']
+linktext = "<i class='fa fa-link'></i>"
+
+#MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid',
'toc(title="TESTING TOC")']
+MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid',
'toc(permalink=True)']
# Pagination testing stuff
diff --git a/themes/newgimp/static/css/gimp.css b/themes/newgimp/static/css/gimp.css
index 958c55e..b264a33 100644
--- a/themes/newgimp/static/css/gimp.css
+++ b/themes/newgimp/static/css/gimp.css
@@ -604,3 +604,29 @@ video {
max-width: 100%;
height: auto;
}
+
+a.headerlink {
+ visibility: hidden;
+ display: inline-block;
+ font: normal normal normal 14px/1 FontAwesome;
+ font-size: inherit;
+ text-rendering: auto;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ transform: translate(0, 0);
+ margin-left: 0.5rem;
+}
+
+a.headerlink:before {
+ content: "\f0c1";
+ visibility: visible;
+ opacity: 0;
+}
+
+h2:hover a.headerlink:before,
+h3:hover a.headerlink:before,
+h4:hover a.headerlink:before,
+h5:hover a.headerlink:before,
+h6:hover a.headerlink:before {
+ opacity: 1
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]