forked from Disroot/Website
Merge branch 'master' into killing_ncnews
This commit is contained in:
commit
a8b380638b
|
@ -1,3 +1,4 @@
|
|||
privacy_policy/_pp
|
||||
tos/_tos
|
||||
cryptocurrency/
|
||||
changelog/_main
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Disroot
|
||||
bgcolor: '#fff'
|
||||
bgcolor: '#1F5C60'
|
||||
content:
|
||||
items: '@self.modular'
|
||||
order:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
fullbar.*.md
|
|
@ -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
|
||||
---
|
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue