- commit
- 7f4d312
- parent
- c36a8de
- author
- Eric Bower
- date
- 2023-09-06 13:21:55 +0000 UTC
doc(pgs): copy changes
4 files changed,
+16,
-13
M
Makefile
+2,
-1
1@@ -71,7 +71,8 @@ pgs-site:
2 .PHONY: pgs-site
3
4 pgs-deploy: pgs-static pgs-site
5- scp -R ./public/* hey@pgs.sh:/pgs-prod
6+ scp -R ./public/* hey@pgs.sh:/pgs-local
7+ ssh hey@pgs.sh link pgs-prod pgs-local --write
8 .PHONY: pgs-site-deploy
9
10 fmt:
+1,
-1
1@@ -44,7 +44,7 @@ func NewConfigSite() *shared.ConfigSite {
2 MinioURL: minioURL,
3 MinioUser: minioUser,
4 MinioPass: minioPass,
5- Description: "a zero-dependency static site hosting platform",
6+ Description: "A zero-dependency static site hosting service for hackers.",
7 IntroText: intro,
8 Space: "pgs",
9 AllowedExt: []string{
+5,
-5
1@@ -1,20 +1,20 @@
2 {{template "base" .}}
3
4-{{define "title"}}{{.Site.Domain}} -- A zero-dependency static site hosting service for hackers.{{end}}
5+{{define "title"}}{{.Site.Domain}} -- {{.Site.Description}}{{end}}
6
7 {{define "meta"}}
8-<meta name="description" content="A zero-dependency static site hosting service for hackers." />
9+<meta name="description" content="{{.Site.Description}}" />
10
11 <meta property="og:type" content="website">
12 <meta property="og:site_name" content="{{.Site.Domain}}">
13 <meta property="og:url" content="https://{{.Site.Domain}}">
14 <meta property="og:title" content="{{.Site.Domain}}">
15-<meta property="og:description" content="A zero-dependency static site hosting service for hackers.">
16+<meta property="og:description" content="{{.Site.Description}}">
17
18 <meta name="twitter:card" content="summary" />
19 <meta property="twitter:url" content="https://{{.Site.Domain}}">
20 <meta property="twitter:title" content="{{.Site.Domain}}">
21-<meta property="twitter:description" content="A zero-dependency static site hosting service for hackers.">
22+<meta property="twitter:description" content="{{.Site.Description}}">
23 <meta name="twitter:image" content="https://{{.Site.Domain}}/card.png" />
24 <meta name="twitter:image:src" content="https://{{.Site.Domain}}/card.png" />
25
26@@ -29,7 +29,7 @@
27 {{define "body"}}
28 <header class="text-center">
29 <h1 class="text-2xl font-bold">{{.Site.Domain}} [closed beta]</h1>
30- <p class="text-lg">A zero-dependency static site hosting service for hackers.</p>
31+ <p class="text-lg">{{.Site.Description}}</p>
32 <hr />
33 </header>
34
1@@ -14,9 +14,10 @@ import (
2 )
3
4 type SitePageData struct {
5- Domain template.URL
6- HomeURL template.URL
7- Email string
8+ Domain template.URL
9+ HomeURL template.URL
10+ Email string
11+ Description string
12 }
13
14 type PageData struct {
15@@ -66,9 +67,10 @@ func CreateURLFromRequest(cfg *ConfigSite, r *http.Request) *CreateURL {
16
17 func (c *ConfigSite) GetSiteData() *SitePageData {
18 return &SitePageData{
19- Domain: template.URL(c.Domain),
20- HomeURL: template.URL(c.HomeURL()),
21- Email: c.Email,
22+ Domain: template.URL(c.Domain),
23+ HomeURL: template.URL(c.HomeURL()),
24+ Email: c.Email,
25+ Description: c.Description,
26 }
27 }
28