mirror of https://gitea.com/gitea/website.git
Add Matrix link
- Add Matrix link to header. - Switch to [Fork-Awesome](https://forkaweso.me/Fork-Awesome/), as it includes a matrix icon. This requires the inclusion from `header.html` to change the otherwise hardcoded Font-Awesome style.
This commit is contained in:
parent
09f8270864
commit
0df316627b
32
config.yaml
32
config.yaml
|
@ -68,6 +68,10 @@ menu:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
languages:
|
||||
en-us:
|
||||
|
@ -124,6 +128,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
zh-tw:
|
||||
weight: 2
|
||||
|
@ -175,6 +183,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
pt-br:
|
||||
weight: 3
|
||||
|
@ -226,6 +238,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
nl-nl:
|
||||
weight: 4
|
||||
|
@ -277,6 +293,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
ko-kr:
|
||||
weight: 5
|
||||
|
@ -328,6 +348,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
ja-jp:
|
||||
weight: 6
|
||||
|
@ -379,6 +403,10 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
||||
ru-ru:
|
||||
weight: 7
|
||||
|
@ -430,3 +458,7 @@ languages:
|
|||
url: https://twitter.com/giteaio
|
||||
weight: 90
|
||||
pre: twitter
|
||||
- name: Matrix
|
||||
url: https://matrix.to/#/#gitea:matrix.org
|
||||
weight: 100
|
||||
pre: matrix-org
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}"></meta>
|
||||
{{ if .IsPage }}
|
||||
<meta property="og:description" content="{{ if .IsPage }}{{ .Description }}{{end}}" />
|
||||
{{ end }}
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"></meta>
|
||||
<meta property="og:url" content="{{ .Permalink }}"></meta>
|
||||
<meta property="og:image" content="https://docs.gitea.io/images/gitea.png"></meta>
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
{{ with .Params.goimport }}<meta name="go-import" content="{{ . }}">{{ end }}
|
||||
{{ with .Params.gosource }}<meta name="go-source" content="{{ . }}">{{ end }}
|
||||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" />
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}styles/main.css">
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}images/favicon.png">
|
||||
<link rel="icon" type="image/x-icon" href="{{ .Site.BaseURL }}images/favicon.png">
|
||||
</head>
|
||||
<body>
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' data: https://cdnjs.cloudflare.com https://fonts.gstatic.com
|
||||
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' https://fonts.googleapis.com https://cdn.jsdelivr.net; font-src 'self' data: https://cdn.jsdelivr.net https://fonts.gstatic.com
|
||||
X-Frame-Options: DENY
|
||||
X-Xss-Protection: 1; mode=block
|
||||
X-Content-Type-Options: nosniff
|
||||
|
|
Loading…
Reference in New Issue