Skip to content

Commit 54cb597

Browse files
committed
Forum to discussions
Signed-off-by: Vishal Rana <[email protected]>
1 parent 052c7d1 commit 54cb597

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

website/content/middleware/secure.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ SecureConfig struct {
4242
// XSSProtection provides protection against cross-site scripting attack (XSS)
4343
// by setting the `X-XSS-Protection` header.
4444
// Optional. Default value "1; mode=block".
45-
XSSProtection string `yaml:"xss_protection"`
45+
XSSProtection string `json:"xss_protection"`
4646

4747
// ContentTypeNosniff provides protection against overriding Content-Type
4848
// header by setting the `X-Content-Type-Options` header.
4949
// Optional. Default value "nosniff".
50-
ContentTypeNosniff string `yaml:"content_type_nosniff"`
50+
ContentTypeNosniff string `json:"content_type_nosniff"`
5151

5252
// XFrameOptions can be used to indicate whether or not a browser should
5353
// be allowed to render a page in a <frame>, <iframe> or <object> .
@@ -59,27 +59,27 @@ SecureConfig struct {
5959
// - "SAMEORIGIN" - The page can only be displayed in a frame on the same origin as the page itself.
6060
// - "DENY" - The page cannot be displayed in a frame, regardless of the site attempting to do so.
6161
// - "ALLOW-FROM uri" - The page can only be displayed in a frame on the specified origin.
62-
XFrameOptions string `yaml:"x_frame_options"`
62+
XFrameOptions string `json:"x_frame_options"`
6363

6464
// HSTSMaxAge sets the `Strict-Transport-Security` header to indicate how
6565
// long (in seconds) browsers should remember that this site is only to
6666
// be accessed using HTTPS. This reduces your exposure to some SSL-stripping
6767
// man-in-the-middle (MITM) attacks.
6868
// Optional. Default value 0.
69-
HSTSMaxAge int `yaml:"hsts_max_age"`
69+
HSTSMaxAge int `json:"hsts_max_age"`
7070

7171
// HSTSExcludeSubdomains won't include subdomains tag in the `Strict Transport Security`
7272
// header, excluding all subdomains from security policy. It has no effect
7373
// unless HSTSMaxAge is set to a non-zero value.
7474
// Optional. Default value false.
75-
HSTSExcludeSubdomains bool `yaml:"hsts_exclude_subdomains"`
75+
HSTSExcludeSubdomains bool `json:"hsts_exclude_subdomains"`
7676

7777
// ContentSecurityPolicy sets the `Content-Security-Policy` header providing
7878
// security against cross-site scripting (XSS), clickjacking and other code
7979
// injection attacks resulting from execution of malicious content in the
8080
// trusted web page context.
8181
// Optional. Default value "".
82-
ContentSecurityPolicy string `yaml:"content_security_policy"`
82+
ContentSecurityPolicy string `json:"content_security_policy"`
8383
}
8484
```
8585

website/layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>{{ .Title }}</h1>
3333
</a>
3434
<hr>
3535
<h2>
36-
<a href="https://forum.labstack.com">Forum</a>
36+
<a href="https://github.com/labstack/echo/discussions">Forum</a>
3737
<a href="https://gitter.im/labstack/echo">Chat</a>
3838
</h2>
3939
</footer>

website/layouts/partials/ad.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
<div class="w3-container ad">
22
<a href="https://code.labstack.com/program">
33
<img
4+
style="margin-bottom: 8px;"
45
src="/images/code.png"
56
alt="Code - Multi-programming language playground"
67
/>
78
</a>
9+
<!-- <script
10+
async
11+
type="text/javascript"
12+
src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=echolabstackcom"
13+
id="_carbonads_js"
14+
></script> -->
815
</div>

website/layouts/partials/sidenav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<nav class="sidenav2">
22
<div class="w3-container">
33
<ul class="menu-top menu-l1 hide-large">
4-
<li><a href="https://forum.labstack.com">Forum</a></li>
4+
<li><a href="https://github.com/labstack/echo/discussions">Forum</a></li>
55
<li><a href="https://gitter.im/labstack/echo">Chat</a></li>
66
</ul>
77
{{ $currentNode := . }}

website/layouts/partials/topnav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<input id="search-box" type="text" class="w3-input">
77
</span>
88
<span class="menu hide-small hide-medium">
9-
<a href="https://forum.labstack.com">Forum</a>
9+
<a href="https://github.com/labstack/echo/discussions">Forum</a>
1010
<a href="https://gitter.im/labstack/echo">Chat</a>
1111
</span>
1212
<button class="hamburger hide-large" onclick="toggleSidenav()">

website/static/images/code.png

50.8 KB
Loading

0 commit comments

Comments
 (0)