import "github.com/xyproto/algernon/themes"
codestyle.go html.go indent.go mui.go styling.go
const ( // DefaultCSSFilename is the default CSS stylesheet DefaultCSSFilename = "style.css" // DefaultGCSSFilename is the default GCSS stylesheet DefaultGCSSFilename = "style.gcss" // DefaultTheme is the default theme when rendering Markdown and for error pages DefaultTheme = "default" )
const ( // DefaultCustomCodeStyle is the default chroma style for custom CSS // See: https://xyproto.github.io/splash/docs/all.html for an overview DefaultCustomCodeStyle = "algol" )
const MUICSS = "" /* 43316 byte string literal not displayed */
MUICSS is from http://cdn.muicss.com/mui-0.9.39-rc1/css/mui.min.css
const MUIJS = "" /* 19427 byte string literal not displayed */
MUIJS is from http://cdn.muicss.com/mui-0.9.39-rc1/js/mui.min.js
var ( // MetaKeywords contains a selection of allowed keywords for the HTML meta tag MetaKeywords = []string{"application-name", "author", "description", "generator", "keywords", "robots", "language", "googlebot", "Slurp", "bingbot", "geo.position", "geo.placename", "geo.region", "ICBM", "viewport"} )
HTMLLink builds an HTML link given the link text, the URL to a file/directory and a boolean that is true if the given URL is to a directory.
InsertDoctype inserts <doctype html> to the HTML, if missing. Does not check if the given data is HTML. Assumes it to be HTML.
MaterialHead enables the Material style by adding CSS and JS tags that can go in a header
MessagePage is an easy way to output a HTML page only given a title, the body (will be placed between the <body></body> tags) and the name of one of the built-in themes. Does not close <body> and <html>. Deprecated
MessagePageBytes provides the same functionalityt as MessagePage, but with []byte instead of string, and without closing </body></html>
NewTheme adds a new built-in theme
NoPage provides the same functionality as NoPage, but returns []byte
OneLevelOfIndentation finds one level of whitespace, given indented data and a keyword to extract the whitespace in front of.
Returns either an empty string or the whitespace that represents one step of indentation in the given source code data.
SimpleHTMLPage provides a quick way to build a HTML page
StyleAmber modifies Amber source code so that a link to the given stylesheet URL is added
StyleHTML modifies HTML source code so that a link to the given stylesheet URL is added
StyleHead returns contents that goes in "<head>", as bytes. This is either CSS wrapped in a "<style>" tag, or "<link>" tags to CSS and JS.
ThemeToCodeStyle returns the code highlight style that the given theme implicates
Package themes imports 3 packages (graph) and is imported by 1 packages. Updated 2018-10-21. Refresh now. Tools for package owners.