Custom logo on forgejo
This commit is contained in:
parent
43e25de976
commit
f44c1a2d1c
4 changed files with 33 additions and 2 deletions
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
- name: Setup Forgejo actions
|
- name: Setup Forgejo actions
|
||||||
hosts:
|
hosts:
|
||||||
- byggmester
|
- forgejo
|
||||||
roles:
|
roles:
|
||||||
- byggmester
|
- forgejo
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
20
ansible/roles/forgejo/files/custom/templates/home.tmpl
Normal file
20
ansible/roles/forgejo/files/custom/templates/home.tmpl
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="gt-pt-4">
|
||||||
|
<div class="center">
|
||||||
|
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/i-am-developer.gif">
|
||||||
|
<div class="hero">
|
||||||
|
<h1 class="ui icon header title">
|
||||||
|
{{AppDisplayName}}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<h2>Welcome to the home of trashy source code and wonky projects</h2>
|
||||||
|
|
||||||
|
<h2>If you have ended up here in the search of answers, you should take a moment and wonder where it all went wrong</h2>
|
||||||
|
|
||||||
|
<h2>If you still think answers lie beyond here, go ahead, see how wrong you are</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{template "base/footer" .}}
|
|
@ -96,6 +96,17 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Sync custom forgejo styling
|
||||||
|
ansible.posix.synchronize:
|
||||||
|
src: custom
|
||||||
|
dest: /usr/local/bin/forgejo/
|
||||||
|
rsync_opts:
|
||||||
|
- --chown=forgejo:forgejo
|
||||||
|
- --chmod=755
|
||||||
|
recursive: true
|
||||||
|
notify: Restart forgejo
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Make forgejo config dir non writeable
|
- name: Make forgejo config dir non writeable
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/forgejo
|
path: /etc/forgejo
|
||||||
|
|
Loading…
Reference in a new issue