Add go meta tag generator
This commit is contained in:
parent
0edad81da6
commit
a79f6bca1f
1
app.moon
1
app.moon
|
@ -6,6 +6,7 @@ class extends lapis.Application
|
||||||
|
|
||||||
@include "controllers.hire"
|
@include "controllers.hire"
|
||||||
@include "controllers.projects"
|
@include "controllers.projects"
|
||||||
|
@include "controllers.go"
|
||||||
|
|
||||||
[index: "/"]: =>
|
[index: "/"]: =>
|
||||||
@user, err = gh\get_authenticated_user()
|
@user, err = gh\get_authenticated_user()
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
lapis = require "lapis"
|
||||||
|
|
||||||
|
class Go extends lapis.Application
|
||||||
|
[repo: "/go/:name"]: =>
|
||||||
|
@repo = @params.name
|
||||||
|
|
||||||
|
render: true
|
|
@ -0,0 +1,5 @@
|
||||||
|
import Widget from require "lapis.html"
|
||||||
|
|
||||||
|
class Repo extends Widget
|
||||||
|
content: =>
|
||||||
|
meta name: "go-import", content: "christine.website/go/#{@repo} git https://github.com/Xe/#{@repo}"
|
Loading…
Reference in New Issue