jorge 4e70055570 | ||
---|---|---|
config | ||
css | ||
templates | ||
README.md | ||
favicon.ico | ||
gridspinoza.info.yml | ||
gridspinoza.libraries.yml | ||
gridspinoza.theme | ||
logo.svg | ||
screenshot.png |
README.md
Gridspinoza theme
Theme based up on BootStrap modified for the GridSpinoza website, as part of the Hangarnetwork.
Development / modifications
The repo is cloned inside the servers theme, but from ther we have no writing permissions in the git repository, so the development is always done locally, then pushed to Hangar Git and from the server they are pulled
.
In our computer (localhost):
git clone ssh://git@git.hangar.org:21036/hangar-tech/gridspinoza.git
Appliying changes in server
Before we did prepare the content by https cloning the repo git clone https://git.hangar.org/hangar-tech/gridspinoza.git
and changing file permissions to server needs.
Go to the theme directory:
cd /var/www/html/sites/all/themes/gridspinoza
from there checkout the main
branch and pull
git checkout main
git pull
checking changes before apply
We can create different branches locally, then push them and in the server preview before applying to main.
For example, need to fix "font-size" some were.
local host
checkout main repo and be up to date
git checkout main
git status
git pull
create new branch and check out
git branch fix/font-size
git checkout fix/font-size
start doing changes and commit and push them to server
in the sever
Pull changes
cd /var/www/html/sites/all/themes/gridspinoza
git fetch --all
git checkout fix/font-size
git pull
now you can refresh the browser and eventually fix more things.
if you like it then do as next:
sever: git checkout main
localhost:
git fetch all
to get all changes- in the fix/font-size branch do
git merge main
- if ok, then go to main branch
git checkout main
- merge changes
git merge fix/font-size
- publish the changes
git push
go to the server, inside the theme directory git fetch --all
and then git checkout main
and finally git pull
CDN Starterkit
The CDN Starterkit is rather simple to set up. You don't have to do anything until you wish to override the default Drupal Bootstrap base theme settings or provide additional custom CSS.
Prerequisite
Read the @link subtheme Sub-theming @endlink parent topic.
Override Styles
Open ./subtheme/css/style.css
and modify the file to your liking.
Override Settings
Please refer to the @link subtheme_settings Sub-theme Settings @endlink topic.
Override Templates and Theme Functions
Please refer to the @link registry Theme Registry @endlink topic.