Adding barebones test
This commit is contained in:
commit
feeb56aa45
27
basic/layouts/basic.html
Normal file
27
basic/layouts/basic.html
Normal file
@ -0,0 +1,27 @@
|
||||
{{define "header"}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<title>{{.Meta.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{end}}
|
||||
|
||||
{{define "footer"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
|
||||
{{define "page"}}
|
||||
{{template "header" .}}
|
||||
<div class="container">
|
||||
<div class="page-header">
|
||||
<h1>{{.Meta.Title}}</h1>
|
||||
</div>
|
||||
{{.Meta.Content}}
|
||||
</div>
|
||||
{{template "footer" .}}
|
||||
{{end}}
|
29
basic/main.go
Normal file
29
basic/main.go
Normal file
@ -0,0 +1,29 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/FooSoft/goldsmith"
|
||||
"github.com/FooSoft/goldsmith-devserver"
|
||||
"github.com/FooSoft/goldsmith-plugins/frontmatter"
|
||||
"github.com/FooSoft/goldsmith-plugins/layout"
|
||||
"github.com/FooSoft/goldsmith-plugins/markdown"
|
||||
)
|
||||
|
||||
type builder struct{}
|
||||
|
||||
func (b *builder) Build(srcDir, dstDir string) {
|
||||
errs := goldsmith.Begin(srcDir).
|
||||
Chain(frontmatter.New()).
|
||||
Chain(markdown.NewCommon()).
|
||||
Chain(layout.New("layouts/*.html")).
|
||||
End(dstDir)
|
||||
|
||||
for _, err := range errs {
|
||||
log.Print(err)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
devserver.DevServe(new(builder), 8080, "src", "dst", "layouts")
|
||||
}
|
55
basic/src/index.md
Normal file
55
basic/src/index.md
Normal file
@ -0,0 +1,55 @@
|
||||
+++
|
||||
Layout = "page"
|
||||
Title = "Goldsmith Test Page"
|
||||
+++
|
||||
|
||||
## Depositura amari
|
||||
|
||||
Lorem markdownum necis, mediamque pedum. Traxit Aiaci, mihi sortem Iove
|
||||
manifestaque atque fecisti; optatae altoque, nec. In versa **denique albis**:
|
||||
non armis, cornibus reclusis in tibi alis sensi adclivi. Fortis mora et silentia
|
||||
gentis levi: ancora squamis meas, lacrimis. Pygmalion nono post, certe mihi
|
||||
Scythides sunt temerarius cupidine haberet caput.
|
||||
|
||||
> Heu fert aut etiam suscipitur terram Odrysius templa sedes, non. Meliora
|
||||
> Nioben, raptos de omnia.
|
||||
|
||||
Et vota quaerens. Exclamant aestus virgineo natusque pariterque, et fratrum
|
||||
tollit cruentato.
|
||||
|
||||
## Sua Neretum fortes
|
||||
|
||||
Dulichius quaerere respicit nulla per gelida docebo tabe hinc ut quia vidit.
|
||||
Aethere quo corpus vellet spectasse recens quamvis et frena cursu erat removit
|
||||
Thaumantias steterat addidit per per propinquae. Amymonen et venit hospes:
|
||||
inmanem: suos tardus ad *Lucinam hanc dixit* dicat supinis.
|
||||
|
||||
```
|
||||
functionVeronicaMicrophone = handle_file.wildcard_sip_standby(
|
||||
bittorrent_minisite + 2, pitch + fileListserv, virusSimplex +
|
||||
copy_winsock) + enterprise_shell.primary_menu_https.stickNullMacro(
|
||||
bandwidthSwappable, executable(4, 3, nuiOptic));
|
||||
grayscale_gamma(podcast_jpeg_number * network_digital +
|
||||
aiff_development.mediaUpnp(raidCcd, express));
|
||||
gigabit = 1 - megabit_irq_exabyte(facebook, print * 132085, address);
|
||||
if (subdirectory_cell_ivr(twainPing - remote_ntfs_kbps,
|
||||
propertyAutoresponder, real_isp(-2))) {
|
||||
nybble.nanometer(post, 1);
|
||||
dlcExploit += e_pixel_hacker * exploit * stringDisk;
|
||||
} else {
|
||||
kernel_megabit_surge = function_ad_array;
|
||||
}
|
||||
```
|
||||
|
||||
## Concipit ventis aliquid quibus incumbere nulloque aeratas
|
||||
|
||||
Mihi Typhoea tum ab oscula terras dextra, **et suos** foliisque mendacia.
|
||||
Pluviaque donec structis *segetes*, natus, ita Aegides nexu!
|
||||
|
||||
Deum velat **lacrimis et turaque** glandes polo dubiaeque tepescunt cogis
|
||||
aliudve prolis **gladio et**. Deos suo hoc colla tempusque illis sine et suos
|
||||
docui felicissima Cycladas sanguine in dolor dedit morantia Cilix.
|
||||
|
||||
1. Hac neque Hyadasque ipse nescius
|
||||
2. In fulvo
|
||||
3. Dum terram stellis leni sic ut Achivi
|
Loading…
Reference in New Issue
Block a user