nice clean recipes pear.dunkirk.sh
recipes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: use baseurl

+5
+4
main.go
··· 10 10 "net/http" 11 11 "net/url" 12 12 "strconv" 13 + "os" 13 14 "strings" 14 15 "time" 15 16 ··· 33 34 baseURL := flag.String("base-url", "", "base URL of this service") 34 35 flag.Parse() 35 36 37 + if *baseURL == "" { 38 + *baseURL = os.Getenv("BASE_URL") 39 + } 36 40 if *baseURL == "" { 37 41 *baseURL = fmt.Sprintf("http://localhost:%d", *port) 38 42 }
+1
ui/templates/index.html
··· 9 9 <link rel="stylesheet" href="/static/style.css"> 10 10 <meta property="og:title" content="pare: nice recipes"> 11 11 <meta property="og:type" content="website"> 12 + <meta property="og:url" content="{{.BaseURL}}"> 12 13 <meta property="og:image" content="{{.BaseURL}}/static/og.png"> 13 14 <meta name="twitter:card" content="summary"> 14 15 <meta name="twitter:title" content="pare: nice recipes">