Add page titles where needed
This commit is contained in:
parent
1f94bb0246
commit
dd5aeab2c3
|
@ -9,6 +9,7 @@ import assert_valid from require "lapis.validate"
|
||||||
class Email extends lapis.Application
|
class Email extends lapis.Application
|
||||||
[email: "/contact/email"]: respond_to {
|
[email: "/contact/email"]: respond_to {
|
||||||
GET: =>
|
GET: =>
|
||||||
|
@title = "Contact Me"
|
||||||
@csrf_token = csrf.generate_token @
|
@csrf_token = csrf.generate_token @
|
||||||
return render: true
|
return render: true
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,11 @@ gh = require('github').new({access_token: os.getenv "GITHUB_TOKEN", httpclient_d
|
||||||
|
|
||||||
class Projects extends lapis.Application
|
class Projects extends lapis.Application
|
||||||
[projects: "/projects"]: =>
|
[projects: "/projects"]: =>
|
||||||
|
@title = "Projects"
|
||||||
render: true
|
render: true
|
||||||
|
|
||||||
[readme: "/projects/:name"]: =>
|
[readme: "/projects/:name"]: =>
|
||||||
|
@title = "Readme for #{@params.name}"
|
||||||
@ret, @err = oleg.get "readmes", @params.name
|
@ret, @err = oleg.get "readmes", @params.name
|
||||||
|
|
||||||
ngx.log ngx.NOTICE, "Got content from oleg, code #{@err}"
|
ngx.log ngx.NOTICE, "Got content from oleg, code #{@err}"
|
||||||
|
|
Loading…
Reference in New Issue