Skip to content

Commit

Permalink
Don't generate blogmeta or depend on recent thoughts in development mode
Browse files Browse the repository at this point in the history
This reduces dependencies and increases compilation speed considerably.
  • Loading branch information
cdchapman committed Oct 25, 2016
1 parent 78f2eca commit 07e3550
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions nanoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ environments:
name: Pentandra
motto: Breaking Research Barriers
recent_thoughts_limit: 5
generate_blogmeta: true
base_url: *base_url
images_url: /images
search_url: /search

blog:
blog: &blog
title: The Pentandra Blog
author_name: Pentandra
author_uri: *base_url
Expand All @@ -94,8 +95,7 @@ environments:
site:
<<: *site
recent_thoughts_limit: 0

include_drafts: true
generate_blogmeta: false

context2pdf:
debug: true
Expand Down
1 change: 0 additions & 1 deletion rules/meta_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
route '/404.erb' do
item.identifier.without_ext + '.html'
end

8 changes: 5 additions & 3 deletions rules/preprocessing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ def extract_metadata_from_specification_documents

generate_author_uris(published_blog_posts)

generate_tag_pages(published_blog_posts)
generate_author_pages(published_blog_posts)
generate_blog_archives(published_blog_posts)
if @config[:site][:generate_blogmeta]
generate_tag_pages(published_blog_posts)
generate_author_pages(published_blog_posts)
generate_blog_archives(published_blog_posts)
end

mark_items_as_hidden_that_should_be_hidden

Expand Down

0 comments on commit 07e3550

Please sign in to comment.