Add Forgejo custom fonts
This commit is contained in:
parent
14ef3c9dcd
commit
9e0bfc242b
3 changed files with 22 additions and 1 deletions
8
src/Forgejo/.install.fish
Executable file
8
src/Forgejo/.install.fish
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
read -P "Install main config [yN] ? " inst
|
||||||
|
test $inst = "y"; and sudo install -o forgejo -g forgejo -m a=,u=rw -b -D app.ini /etc/forgejo/app.ini
|
||||||
|
|
||||||
|
sudo mkdir -p /var/lib/forgejo/custom
|
||||||
|
sudo cp -r custom/* /var/lib/forgejo/custom/
|
||||||
|
sudo chown -R forgejo:forgejo /var/lib/forgejo/custom/
|
||||||
|
sudo chmod -R a=,u=rwx /var/lib/forgejo/custom/
|
|
@ -1,5 +1,7 @@
|
||||||
# Forgejo
|
# Forgejo
|
||||||
<https://docs.gitea.io/en-us/administration/config-cheat-sheet/>
|
<https://docs.gitea.io/en-us/administration/config-cheat-sheet/>
|
||||||
|
|
||||||
Install to `/etc/forgejo/app.ini`.
|
Install `app.ini` to `/etc/forgejo/app.ini`.
|
||||||
Fill in secrets.
|
Fill in secrets.
|
||||||
|
|
||||||
|
Install `custom` to `/var/lib/forgejo/custom`.
|
||||||
|
|
11
src/Forgejo/custom/templates/custom/header.tmpl
Normal file
11
src/Forgejo/custom/templates/custom/header.tmpl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<style>
|
||||||
|
@import url('https://free.bboxtype.com/embedfonts/?family=FiraGO:200,400,600');
|
||||||
|
@import url('https://free.bboxtype.com/embedfonts/?family=FiraMono:400,500,700');
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--fonts-proportional: FiraGO, Fira Sans, sans-serif;
|
||||||
|
--fonts-monospace: Fira Mono, monospace;
|
||||||
|
|
||||||
|
--font-weight-bold: 600;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in a new issue