Create Static Web Pages in GNUSocial
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
actions
pages
README.MD
StaticPagePlugin.php
parsedown.php

README.MD

StaticPages Plugin

Plugin for GNUSocial/postActiv to allow admins to create static pages using markdown/html/JS.

Very simple:

  1. git clone https://github.com/mitchellurgero/StaticPage in the plugin directory of your instance.
  2. in config.php add:
//Static Pages setup
addPlugin('StaticPage');
$config['site']['StaticPage']['pages'][0]['name'] = "<filename>";//NOT path & NO extension!!!
  1. Add markdown files to the pages/ directory.
  2. The new link to the page will be: https://example.com/pages?page=filename (With no file extension!!)