GitXplorerGitXplorer
K

timotijhof.net

public
4 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
7064013ec525a0e572a5ab3bc5fc03dca6593f15

theme: add `.has-large-font-size`

KKrinkle committed 4 months ago
Unverified
39163a1d61a8e624441fb60dfadf4529739ffd3b

theme: Add `fediverse:creator` meta tag

KKrinkle committed 7 months ago
Unverified
aaa2aeef522d712a25a61a4aa170c73c1c558a22

theme: fix bad non-matching closing tag

KKrinkle committed 10 months ago
Unverified
749d337baaccca1398b4cc71e96c9633a03e8640

theme: add reading time

KKrinkle committed a year ago
Unverified
9d10013798f57e154db8df592b6a6a9cfaf57bbb

theme: add "Reply by email" from RSS also to web page

KKrinkle committed a year ago
Unverified
13c396ec3428678c1a39d45c98a8b49a99843eae

theme: remove hr from block expansion

KKrinkle committed a year ago

README

The README file for this repository.

Credits

See also

Deployment

One-time remote setup

Inspired by http://toroid.org/git-website-howto.

Step 1: Create Git repository, on your server:

cd ~/git/
mkdir wp-theme-ttnet.git && cd wp-theme-ttnet.git
git init --bare
# Enable symlinks (I use this in _plugins/symlink for my subdomains)
git config core.symlinks true

Step 2: Create a plain directory, on your server, to be the recipient of deployments:

cd ~/git-deploy/
mkdir wp-theme-ttnet

Step 3: Create a post-receive hook in the Git repository. This hook is a shell script that the server will execute after you push a Git commit to it. The script will make sure your deployment directory will become a checkout of the latest commit. Remember to mark the post-receive file as executable!

~/git/wp-theme-ttnet/$ cat hooks/post-receive
#!/bin/sh
export GIT_WORK_TREE=/home/deb35044/git-deploy/wp-theme-ttnet/

# Workaround bad sshd/umask default (RHEL8, Antagonist).
echo "[krinkle] setting umask to 0002..."
umask 0002

git checkout -f
~/git/wp-theme-ttnet$ chmod +x hooks/post-receive

Done! You can now push to this repository, and a static copy of it will be maintained automatically in the git-deploy directory. I use this method (instead of simply exposing the Git repository from my web server) so that .git is naturally not exposed, and so that there is no Git "working copy" to worry about, which could sometimes get dirty or stuck for some reason.

You would then symlink to ~/git-deploy/wp-theme-ttnet/ from the appropiate place under public_html/wordpress/wp-content/.

One-time local setup

git clone ssh://timotijhof.net/~/git/wp-theme-ttnet.git

or

git remote add web ssh://timotijhof.net/~/git/wp-theme-ttnet.git

Done! You can now git push to deploy any time.