- Add header meta tags.
- Break down columns to single column.
- Set max-width of 100% for images and form inputs.
- Fitvids for fluid width video embeds.
- Responsive main menu and page tabs, preferably with Responsive Menus. More ideas here. For Drupal 6, use this and use CSS to make sure all nested links are displayed and indented.
- Responsive image maps.
- Respond.js for IE8 support of media queries. For D6, use HTML below in
<head>
. - Minify HTML.
- Compress as much as possible with Advanced CSS/JS Aggregation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First do this, then choose from one of the options below. | |
sudo nano /etc/logrotate.d/apache2 | |
# Apache 2.4, Ubuntu 14.04.2 LTS | |
/var/www/*/log/*.log { | |
weekly | |
missingok | |
rotate 52 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('enterBlur', []) | |
// Blurs element when enter is pressed. | |
.directive('enterBlur', function($timeout) { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
$timeout(function() { | |
Drupal.attachBehaviors(element); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(angular) { | |
// Define module. | |
var module = angular.module('bootstrapModal', []); | |
// Define service. | |
module.service('$bootstrapModal', ['$q', '$templateRequest', '$rootScope', '$compile', '$controller', function($q, $templateRequest, $rootScope, $compile, $controller) { | |
var self = this, $element, opened, closed; |
This gist assumes:
- you have an online remote repository (github / bitbucket etc.)
- you have a local git repo
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by Apache
- the Apache user is named
www-data
(may beapache
on other systems)
OlderNewer