- copy the file
commit-msg
to.git/hooks/commit-msg
- make sure your delete the sample file
.git/hooks/commit-msg.sample
- Make commit msg executable.
chmod +x .git/hooks/commit-msg
- Edit
commit-msg
to better fit your development branch, commit regex and error message - Profit $$
# Sample Nginx config with sane caching settings for modern web development | |
# | |
# Motivation: | |
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
# and juicy version of your assets available. | |
# At some point, however, you want to show your work to testers, your boss or your client. | |
# After you implemented and deployed their feedback, they reload the testing page – and report | |
# the exact same issues as before! What happened? Of course, they did not have developer tools | |
# open, and of course, they did not empty their caches before navigating to your site. |
// Move Yoast to bottom | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
First, make sure you have you read and followed the instructions for WPML integration found at https://community.algolia.com/wordpress/wpml.html
Following those instructions will ensure that the content itself has a wpml.locale attribute in the index for faceting, and will expose a window.current_locale
JS variable in the page, which you can use for further customization.
From there you should be able to customize the Algolia JS widgets in the autocomplete.php and instantsearch.php templates for your use case.
There is additional documentation about customizing those templates here https://community.algolia.com/wordpress/customize-autocomplete.html and here https://community.algolia.com/wordpress/customize-search-page.html.
The following example(s) extend what is described in the references above, to provide translations for the labels in the autocomplete drop down.
#!/usr/bin/env python | |
import os | |
import xml.parsers.expat | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser | |
from math import log10 | |
# How much data we process at a time |
package main | |
import "fmt" | |
func uniqueNonEmptyElementsOf(s []string) []string { | |
unique := make(map[string]bool, len(s)) | |
us := make([]string, len(unique)) | |
for _, elem := range s { | |
if len(elem) != 0 { | |
if !unique[elem] { |
/** | |
* @brief Splits an address string containing a street, number and number addition | |
* | |
* @param $streetStr string An address string containing a street, number (optional) and number addition (optional) | |
* | |
* @return array Data array with the following keys: street, number and numberAddition. | |
*/ | |
private function split_street($streetStr) { | |
$aMatch = array(); |
User-agent: * | |
Allow: / | |
Crawl-delay: 25 | |
sitemap: http://magentotestpakket.nl/sitemap.xml | |
Disallow: /*?p= | |
Disallow: /*&p= | |
Disallow: /*?price= | |
Disallow: /*&price= | |
Disallow: /*?color= |
function(){ | |
//---------------------------------------------------------------- | |
// Erkennung von Crawlern anhand User-Agent oder Feature-Detection | |
//---------------------------------------------------------------- | |
//Soll ein einmal bestandender Test innerhalb der Session reichen? Dann hier einschalten | |
var cache2Session = true; | |
// --- Ende Setup --- |