Git Product home page Git Product logo

yellow-link's Introduction

Link extension 0.9.1

Internal and external links.

Screenshot

How to install an extension

Download ZIP file and copy it into your system/extensions folder. Learn more about extensions.

How to add a link

Create a [link] shortcut.

The following arguments are available, the second is optional:

target = slug (possibly with #fragment) of internal page in content, or name of file in media/downloads, or address of external page or file
text = text to be used in link (if omitted, for internal pages the title of the page is used), wrap multiple words into quotes

Internal links work no matter what is the subdirectory where the page or the file is located. When the target is a file to be downloaded, type and size are automatically shown. Size of remote files is cached in file system/link.csv. Dead links are detected.

Examples

Adding an internal link:

[link somepage]  
[link somepage#fragment]  
[link somepage "A beautiful page"]  
[link somefile.pdf "An interesting reading"]

Adding an internal link to different pages with the same slug or to different files with the same name:

[link path/to/somepage]  
[link anotherpath/to/somepage]  
[link path/to/somefile.pdf]  
[link anotherpath/to/somefile.pdf]  

Adding an external link:

[link https://example.com/somepage "An example page"]  
[link https://example.com/somepage.html "Another example page"]  
[link https://example.com/somefile.pdf "A PDF file"]  

Settings

The following settings can be configured in file system/extensions/yellow-system.ini:

LinkCacheLifeSpan = lifespan (in days) of the cache
LinkRemoteFilesTimeout = maximum time (in seconds) allowed to get informations

Developer

Giovanni Salmeri. Get help.

yellow-link's People

Contributors

giovannisalmeri avatar pftnhr avatar

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.