Merge pull request 'Add changelog to website' (#207) from changelog into master

Reviewed-on: Disroot/Website#207
Reviewed-by: antilopa <antilopa@no-reply@disroot.org>
This commit is contained in:
meaz 2021-04-06 20:11:34 +00:00
commit 491f7d9684
7 changed files with 35 additions and 5 deletions

1
pages/.gitignore vendored
View File

@ -1,3 +1,4 @@
privacy_policy/_pp
tos/_tos
cryptocurrency/
changelog/_main

View File

@ -1,6 +1,6 @@
---
title: Disroot
bgcolor: '#fff'
bgcolor: '#1F5C60'
content:
items: '@self.modular'
order:

1
pages/changelog/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
fullbar.*.md

View File

@ -0,0 +1,13 @@
---
title: Changelog
bgcolor: '#FFFFFF'
content:
items: '@self.modular'
order:
by: default
dir: asc
custom:
- _main
body_classes: modular
header_image: sorry.jpg
---

BIN
pages/changelog/sorry.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

2
vagrant/Vagrantfile vendored
View File

@ -22,6 +22,6 @@ Vagrant.configure("2") do |config|
disroot_lan.vm.synced_folder "../../grav-theme-disrootblog/", "/var/www/grav-theme-disrootblog", owner: "www-data", group: "www-data"
disroot_lan.vm.synced_folder "../../grav-plugin-language-selector/", "/var/www/grav-plugin-language-selector", owner: "www-data", group: "www-data"
disroot_lan.vm.synced_folder "../../Disroot-Privacy-Policy/", "/var/www/privacy_policy/", owner: "www-data", group: "www-data"
disroot_lan.vm.synced_folder "../../CHANGELOG/", "/var/www/changelog/", owner: "www-data", group: "www-data"
end
end

View File

@ -87,13 +87,13 @@ fi
echo "Enter git"
cd "${WEB_ROOT}""${WEB_NAME}"
sudo -u "${WWW_USER}" bin/gpm install themer
sudo -u "${WWW_USER}" php7.4 bin/gpm install themer
# https://github.com/sommerregen/grav-plugin-themer
sudo -u "${WWW_USER}" bin/gpm install tagcloud
sudo -u "${WWW_USER}" php7.4 bin/gpm install tagcloud
# https://github.com/Perlkonig/grav-plugin-tagcloud
sudo -u "${WWW_USER}" bin/gpm install form
sudo -u "${WWW_USER}" php7.4 bin/gpm install form
sudo -u "${WWW_USER}" sed -i 's/quark/disroot/g' "${YAML}"
# Add Grav config (the second extra false should be set to true, but it creates an error in Grav ("Trying to access array offset on value of type null")
@ -153,4 +153,19 @@ if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector/grav-plugin-
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"grav-plugin-language-selector "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector
fi
# Add Privacy pages in GRAV
if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp ]; then
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"privacy_policy "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp
fi
# Add Changelog pages in GRAV
if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/pages/changelog/_main ]; then
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"changelog "${WEB_ROOT}""${WEB_NAME}"/user/pages/changelog/_main
fi
# Changelog pages name in GRAV
if [ -f "${WEB_ROOT}"changelog/CHANGELOG ]; then
sudo -u "${WWW_USER}" cp "${WEB_ROOT}"changelog/CHANGELOG "${WEB_ROOT}"changelog/fullbar.en.md
fi
exit 0