Opengist Logo Gist@portalZINE

Explore

  • All gists
  • Topics
  • Users
Data Privacy
Give feedback on the new UI Powered by Opengist ⋅ 65ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
H

Hook

Recently created Least recently created Recently updated Least recently updated
portalzine

portalzine / Codekit - Timestamp Hook

Last active 3 months ago Codekit Hook

Add current timestamp to files, when compiling

0 0 1
1 NOW=`date "+%a %Y-%m-%d %T"`
2 sed -i -- "s|{{TIMESTAMP}}|${NOW}|g" $CK_OUTPUT_PATH
portalzine

portalzine / Translate Slugs (Umlaute)

Last active 3 months ago Hook WordPress
0 0 1
1 add_filter( 'sanitize_title', '_translate_slug_umlauts', 5, 3 );
2 /**
3 * Transliterates German umlauts in post slugs for both the classic and block editors.
4 *
5 * @param string $title The sanitized title.
6 * @param string $raw_title The title prior to any sanitization.
7 * @param string $context The context in which the sanitization is occurring.
8 *
9 * @return string The modified title with German umlauts transliterated.
10 */