~hristoast/mousikofidi

4c2efa7615a68ff34558d7580a01fe2af50978d0 — Hristos N. Triantafillou 7 months ago bbb8fcc
Add and use the section link highlight plugin
3 files changed, 13 insertions(+), 5 deletions(-)

M site/css/site.css
M soupault.conf
M templates/main.html
M site/css/site.css => site/css/site.css +5 -0
@@ 10,3 10,8 @@ footer {
ol.toc {
    font-size: 0.95em;
}

.current {
    font-weight: bold;
    border-bottom: 2px solid #338618;
}

M soupault.conf => soupault.conf +7 -4
@@ 2,7 2,6 @@
[preprocessors]
  md = "cmark"


[settings]
  strict = true
  verbose = false


@@ 14,6 13,8 @@
  clean_urls = true
  page_file_extensions = ["html", "md"]

[plugins.section-link-highlight]
  file = "plugins/section-link-highlight.lua"

[widgets.title]
  widget = "title"


@@ 21,25 22,27 @@
  default = "MousikóFídi: Your Music Cloud"
  append = " — MousikóFídi: Your Music Cloud"


[widgets.header]
  widget = "include"
  selector = "div#header"
  file = "templates/header.html"


[widgets.nav]
  widget = "include"
  selector = "nav"
  file = "templates/nav.html"

[widgets.highlight-active-link]
  after = "nav"
  widget = "section-link-highlight"
  selector = "nav"
  active_link_class = "current"

[widgets.footer]
  widget = "include"
  selector = "footer"
  file = "templates/footer.html"


[widgets.table-of-contents]
  widget = "toc"
  selector = "div#content p"

M templates/main.html => templates/main.html +1 -1
@@ 13,7 13,7 @@
  <body>
    <header>
      <div class="center" id="header"></div>
      <nav class="bold center"></nav>
      <nav class="center"></nav>
      <div id="content"></div>
      <hr />
      <footer class="center"></footer>