Skip to content

irsheep/my_links_page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

My Links page is a simple HTML web page to store links to web sites just like bookmarks, but My Links Page can be shared between web browsers, by setting as the default home page or by creating a shortcut. My Links Page can be open directly from the machine hard disk or stored in a web server.

Images

An example of some links displayed in the button layout.

Button Layout

Table of contents

Usage

The My Links Page can be used in several ways. On the desktop/task bar as a shortcut, configured as the default page in a web browser. I can be open directly from a directory or copied to a web server and accessed as a normal web page. Images for icons and card backgrounds can be URLs to external resources of embedded as Base64 strings.

Configuration

My Links Page can be configured by editing the my_links_page.html file and modifying the JSON configuration assigned to the config constant. The configuration can be loaded from a json file located on a remote server, by specifying the URL in the configUrl and reaming the config variable to something else (ex: confi_) or deleting it. Alternatively the config parameter can be passed in the URL with the URL to the configuration file, example: http://links.home.lan/?config=http://links.home.lan/config.json

The configuration is divided in to 3 areas links, groups and settings.

The page has all the code required to work, and external resources are only required if URLs are used in icons or image in the links seciton.

links

In the links section you can add

  • title: Friendly title for the link.
  • description: A brief description.
  • url: The URL to open.
  • group: The group to add the link to.
  • auth: [true|false] If true the link will have an icon to signify that a login is required to access the site.
  • icon: [default|favicon|url] What icon should be associated with the links.
  • image: A url to an image to show as the background of the link.

The icon and image options the url can be a URL to an image, a base64 string representation of the image (data:image/png;base64, ...) or inline SVG string.

Take care when using images from sites on the internet, depending on the number of links with images and icons, can cause My Links Page to download a large number of images.

You can use the base64 encoder by Jaime Pillora to create the appropriate base64 string and use it instead of a URL to the actual image.

groups

Groups allow the links to be grouped together in the same section.

  • name: Name of the group; this parameter is only significant for the application.
  • title: The title of the group as shown in the My Links Page.

settings

  • page_title: The title to be shown in the web browser for the My Lings Page.
  • layout_design: [button|card] (button) How the links will be presented on the page.
  • sort: [asc|desc|false] (false) Defines how the links and groups will be sorted.
  • show_empty_groups: [true|false] (false) Show groups even if they have no links.
  • show_menu: [true|false] (false) Show menu with some settings that can be changed dynamicaly.
  • clear_filter: [true|false] (true) Clear the filter after clicking on a link.
  • allow_disabled: [true|false] (false) Allow disabled links to be clicked.

base64_images

Allows storing images/icons encoded in base64, so they can be shared as icons in different links and or as backgrounds.

{
  "base64_images": {
    "google": "data:image/svg+xml;charset=UTF-8(...)",
    "star": "data:image/png;base64,iVBORw0KGgoA(...)"
  }
}

Which then can be used as an image or icon property of one or more links.

About

A self-contained bookmarks page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages