Code Monkey home page Code Monkey logo

Comments (4)

FriedrichWeinmann avatar FriedrichWeinmann commented on July 20, 2024 2

Hi @tboerger ,

been playing around with this myself and found a way to do this (in a rather convenient manner, too).
Basically, in your own repository create a file like this:
assets/js/main.js
Then copy the content from here:
https://github.com/pages-themes/leap-day/blob/master/assets/js/main.js

With that you have a local override of the main.js file and can edit the logic!
(Downside: If this ever gets updated, you don't automatically receive the update)

For example, you can now replace this:

$("section h1, section h2, section h3").each(function(){

with

$("section h1, section h2").each(function(){

And thus exclude h3 headers from being included.

from leap-day.

tboerger avatar tboerger commented on July 20, 2024

Not the most elegant solution, but at least a workaround for that.

from leap-day.

FriedrichWeinmann avatar FriedrichWeinmann commented on July 20, 2024

btw, I just finished setting up my project, in case you find it useful:

https://github.com/ActiveDirectoryManagementFramework/ActiveDirectoryManagementFramework.github.io

http://admf.one

What I changed from the default template:

  • Multiple buttons for the yellow bar
  • Changed the auto-indexer for the ul. Instead of content header levels, I read a json file (which will be auto-generated using Azure DevOps as a CI task)
  • Moved the ul list to the top of the file if a small screen (e.g.: mobile device) would cause the default version to be hidden. (See my modified default.html for that. The second ul gets modified as part of the main.js)

The only files I needed to touch for all that were default.html and main.js.

from leap-day.

stale avatar stale commented on July 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from leap-day.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.