Skip to content

Commit

Permalink
Merge back of a few recent tweaks/changes into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednova committed Sep 12, 2020
1 parent cc8e530 commit 7b77b2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -3,7 +3,7 @@

The "_s" for Timber: a dead-simple theme that you can build from. The primary purpose of this theme is to provide a file structure rather than a framework for markup or styles. Configure your Sass, scripts, and task runners however you would like!

[![Build Status](https://travis-ci.org/timber/starter-theme.svg)](https://travis-ci.org/timber/starter-theme)
[![Build Status](https://travis-ci.com/timber/starter-theme.svg?branch=master)](https://travis-ci.come/github/timber/starter-theme)

## Installing the Theme

Expand All @@ -13,7 +13,7 @@ Install this theme as you would any other, and be sure the Timber plugin is acti
2. Download the zip for this theme (or clone it) and move it to `wp-content/themes` in your WordPress installation.
3. Rename the folder to something that makes sense for your website (generally no spaces and all lowercase). You could keep the name `timber-starter-theme` but the point of a starter theme is to make it your own!
4. Activate the theme in Appearance > Themes.
5. Do your thing! And read [the docs](https://github.com/jarednova/timber/wiki).
5. Do your thing! And read [the docs](https://timber.github.io/docs/).

## What's here?

Expand All @@ -25,8 +25,6 @@ Install this theme as you would any other, and be sure the Timber plugin is acti

## Other Resources

The [main Timber Wiki](https://github.com/jarednova/timber/wiki) is super great, so reference those often. Also, check out these articles and projects for more info:

* [This branch](https://github.com/laras126/timber-starter-theme/tree/tackle-box) of the starter theme has some more example code with ACF and a slightly different set up.
* [Twig for Timber Cheatsheet](http://notlaura.com/the-twig-for-timber-cheatsheet/)
* [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks
Expand Down
4 changes: 2 additions & 2 deletions functions.php
Expand Up @@ -13,7 +13,7 @@
* to load your dependencies and initialize Timber. If you are using Timber via the WordPress.org
* plug-in, you can safely delete this block.
*/
$composer_autoload = __DIR__ . '/vendor/autoload.php';
$composer_autoload = dirname( __DIR__ ) . '/vendor/autoload.php';
if ( file_exists( $composer_autoload ) ) {
require_once $composer_autoload;
$timber = new Timber\Timber();
Expand All @@ -35,7 +35,7 @@ function() {
add_filter(
'template_include',
function( $template ) {
return get_stylesheet_directory() . '/static/no-timber.html';
return dirname( get_stylesheet_directory() ) . '/static/no-timber.html';
}
);
return;
Expand Down
2 changes: 1 addition & 1 deletion single.php
Expand Up @@ -10,7 +10,7 @@
*/

$context = Timber::context();
$timber_post = Timber::query_post();
$timber_post = Timber::get_post();
$context['post'] = $timber_post;

if ( post_password_required( $timber_post->ID ) ) {
Expand Down

0 comments on commit 7b77b2d

Please sign in to comment.