Documentation ¶
Index ¶
- type Alias
- type AliasIndex
- type Analytics
- type Author
- type Base
- type Breadcrumb
- type BreadcrumbNavigation
- type ConversionModel
- type Feed
- type FeedEntry
- type File
- type GeoLocation
- type GoogleAnalytics
- type Image
- type ItemNavigation
- type Model
- type NavEntry
- type OpenSearchDescription
- type Publisher
- type RobotsTxt
- type RobotsTxtDisallow
- type Search
- type SearchResult
- type SearchResults
- type Sitemap
- type SitemapEntry
- type SortAliasBy
- type SortBaseModelBy
- type SortModelBy
- type SortTagBy
- type SortTagCloudBy
- type Tag
- type TagCloud
- type TagCloudEntry
- type Tags
- type Title
- type ToplevelEntry
- type ToplevelNavigation
- type TypeAhead
- type Update
- type XMLSitemap
- type XmlSitemapEntry
- type XmlSitemapEntryImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶ added in v0.10.0
Alias represents an alias-index entry with a name, route and target route.
type AliasIndex ¶ added in v0.10.0
type Analytics ¶
type Analytics struct { Enabled bool `json:"enabled"` GoogleAnalytics GoogleAnalytics `json:"googleAnalytics"` }
type Base ¶
type Base struct { RepositoryName string `json:"repositoryName"` RepositoryDescription string `json:"repositoryDescription"` Type string `json:"type"` Level int `json:"level"` Route string `json:"route"` Aliases []Alias `json:"aliases"` ParentRoute string `json:"parentRoute"` BaseURL string `json:"baseURL"` PrintURL string `json:"printURL"` JSONURL string `json:"jsonURL"` MarkdownURL string `json:"markdownURL"` DOCXURL string `json:"docxURL"` PageTitle string `json:"pageTitle"` Title string `json:"title"` Description string `json:"description"` LanguageTag string `json:"languageTag"` CreationDate string `json:"creationdate"` LastModifiedDate string `json:"lastmodifieddate"` LiveReloadEnabled bool }
Base contains the minimum set of attributes for every view model.
type Breadcrumb ¶
type BreadcrumbNavigation ¶
type BreadcrumbNavigation struct {
}func (BreadcrumbNavigation) IsAvailable ¶
func (navigation BreadcrumbNavigation) IsAvailable() bool
type ConversionModel ¶
type GeoLocation ¶
type GeoLocation struct { PlaceName string `json:"placename"` Address string `json:"address"` Coordinates string `json:"coordinates"` Street string `json:"street"` City string `json:"city"` Postcode string `json:"postcode"` Country string `json:"country"` Latitude string `json:"latitude"` Longitude string `json:"longitude"` MapType string `json:"mapType"` Zoom int `json:"zoom"` }
type GoogleAnalytics ¶
type ItemNavigation ¶
type ItemNavigation struct {}
func (ItemNavigation) IsAvailable ¶ added in v0.10.0
func (nav ItemNavigation) IsAvailable() bool
IsAvailable returns a flag indicating whether the item navigation model is initialized or not.
type Model ¶
type Model struct { Base Content string `json:"content"` Markdown string `json:"markdown"` Publisher Publisher `json:"publisher"` Author Author `json:"author"` Children []Base `json:"children"` Tags []Tag `json:"tags"` TagCloud TagCloud `json:"tagCloud"` Files []File `json:"files"` Images []Image `json:"images"` GeoLocation GeoLocation `json:"geoLocation"` Analytics Analytics `json:"-"` Hash string `json:"hash"` IsRepositoryItem bool }
type OpenSearchDescription ¶
type RobotsTxt ¶ added in v0.10.0
type RobotsTxt struct { Disallows []RobotsTxtDisallow SitemapURL string }
RobotsTxt represents the content of a robots.txt file
type RobotsTxtDisallow ¶ added in v0.10.0
RobotsTxtDisallow is the definition of disallow-section of a robots.txt
type Search ¶
type Search struct { Model Results SearchResults }
type SearchResult ¶
type SearchResults ¶ added in v0.10.0
type SitemapEntry ¶ added in v0.10.0
type SitemapEntry struct { Path string `json:"path"` Title string `json:"title"` Description string `json:"description"` Children []SitemapEntry `json:"children"` }
type SortAliasBy ¶ added in v0.10.0
SortAliasBy can be used to sort two aliases.
func (SortAliasBy) Sort ¶ added in v0.10.0
func (by SortAliasBy) Sort(aliases []Alias)
Sort sorts the supplied list of aliases.
type SortBaseModelBy ¶
func (SortBaseModelBy) Sort ¶
func (by SortBaseModelBy) Sort(models []Base)
type SortModelBy ¶
func (SortModelBy) Sort ¶
func (by SortModelBy) Sort(models []Model)
type SortTagCloudBy ¶
type SortTagCloudBy func(tagCloudEntry1, tagCloudEntry2 TagCloudEntry) bool
func (SortTagCloudBy) Sort ¶
func (by SortTagCloudBy) Sort(tagCloud TagCloud)
type TagCloud ¶
type TagCloud []TagCloudEntry
type TagCloudEntry ¶
type ToplevelEntry ¶
type ToplevelNavigation ¶
type ToplevelNavigation struct {
}func (*ToplevelNavigation) IsAvailable ¶
func (navigation *ToplevelNavigation) IsAvailable() bool
type XMLSitemap ¶ added in v0.10.0
type XMLSitemap struct {
Entries []XmlSitemapEntry
}
type XmlSitemapEntry ¶
type XmlSitemapEntry struct { Loc string `json:"loc"` LastModified string `json:"lastModified"` Images []XmlSitemapEntryImage `json:"image:image"` }
type XmlSitemapEntryImage ¶ added in v0.10.0
type XmlSitemapEntryImage struct {
Loc string `json:"image:loc"`
}
Source Files ¶
- alias.go
- analytics.go
- author.go
- basemodel.go
- breadcrumbnavigation.go
- conversion.go
- feed.go
- file.go
- geolocation.go
- image.go
- itemnavigation.go
- model.go
- opensearchdescription.go
- publisher.go
- robotstxt.go
- search.go
- sitemap.go
- tag.go
- tagcloud.go
- title.go
- toplevelnavigation.go
- typeahead.go
- update.go
- xmlsitemap.go
Click to show internal directories.
Click to hide internal directories.