Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Rose <est.michael@gmail.com>2016-06-01 22:23:29 +0300
committerMichael Rose <est.michael@gmail.com>2016-06-01 22:23:29 +0300
commita4fd8210703bb98079c21a88efa5bcc84fcc4080 (patch)
tree6d69e1666cd907b08ca36786046b31144b4fa32c
parent8238dc258dcd0b6bd2dcaead16411f43ac0eab9a (diff)
Remove Octopress templates, documentation, and other outdated configs
-rw-r--r--Rakefile.rb89
-rw-r--r--_config.yml45
-rw-r--r--_templates/archive6
-rw-r--r--_templates/page12
-rw-r--r--_templates/post14
-rw-r--r--theme-setup/index.md31
6 files changed, 30 insertions, 167 deletions
diff --git a/Rakefile.rb b/Rakefile.rb
deleted file mode 100644
index e69b923..0000000
--- a/Rakefile.rb
+++ /dev/null
@@ -1,89 +0,0 @@
-require "rubygems"
-require "bundler/setup"
-require "stringex"
-
-## -- Config -- ##
-
-public_dir = "public" # compiled site directory
-posts_dir = "_posts" # directory for blog files
-new_post_ext = "md" # default new post file extension when using the new_post task
-new_page_ext = "md" # default new page file extension when using the new_page task
-
-
-#############################
-# Create a new Post or Page #
-#############################
-
-# usage rake new_post
-desc "Create a new post in #{posts_dir}"
-task :new_post, :title do |t, args|
- if args.title
- title = args.title
- else
- title = get_stdin("Enter a title for your post: ")
- end
- filename = "#{posts_dir}/#{Time.now.strftime('%Y-%m-%d')}-#{title.to_url}.#{new_post_ext}"
- if File.exist?(filename)
- abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
- end
- tags = get_stdin("Enter tags to classify your post (comma separated): ")
- puts "Creating new post: #{filename}"
- open(filename, 'w') do |post|
- post.puts "---"
- post.puts "layout: post"
- post.puts "title: \"#{title.gsub(/&/,'&amp;')}\""
- post.puts "modified: #{Time.now.strftime('%Y-%m-%d %H:%M:%S %z')}"
- post.puts "tags: [#{tags}]"
- post.puts "image:"
- post.puts " feature: "
- post.puts " credit: "
- post.puts " creditlink: "
- post.puts "comments: "
- post.puts "share: "
- post.puts "---"
- end
-end
-
-# usage rake new_page
-desc "Create a new page"
-task :new_page, :title do |t, args|
- if args.title
- title = args.title
- else
- title = get_stdin("Enter a title for your page: ")
- end
- filename = "#{title.to_url}.#{new_page_ext}"
- if File.exist?(filename)
- abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
- end
- tags = get_stdin("Enter tags to classify your page (comma separated): ")
- puts "Creating new page: #{filename}"
- open(filename, 'w') do |page|
- page.puts "---"
- page.puts "layout: page"
- page.puts "permalink: /#{title.to_url}/"
- page.puts "title: \"#{title}\""
- page.puts "modified: #{Time.now.strftime('%Y-%m-%d %H:%M')}"
- page.puts "tags: [#{tags}]"
- page.puts "image:"
- page.puts " feature: "
- page.puts " credit: "
- page.puts " creditlink: "
- page.puts "share: "
- page.puts "---"
- end
-end
-
-def get_stdin(message)
- print message
- STDIN.gets.chomp
-end
-
-def ask(message, valid_options)
- if valid_options
- answer = get_stdin("#{message} #{valid_options.to_s.gsub(/"/, '').gsub(/, /,'/')} ") while !valid_options.include?(answer)
- else
- answer = get_stdin(message)
- end
- answer
-end \ No newline at end of file
diff --git a/_config.yml b/_config.yml
index 7d90f68..b1594c5 100644
--- a/_config.yml
+++ b/_config.yml
@@ -55,28 +55,35 @@ permalink: /:categories/:title/
paginate: 5
kramdown:
+ input: GFM
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
enable_coderay: false
- coderay:
- coderay_line_numbers: nil
- coderay_line_numbers_start: 1
- coderay_tab_width: 4
- coderay_bold_every: 10
- coderay_css: class
-
-# Octopress
-# Default extensions
-post_ext: md
-page_ext: md
-# Found in _templates/
-post_layout: post
-page_layout: page
-# Format titles with titlecase?
-titlecase: true
-
-include: [".htaccess"]
-exclude: ["lib", "config.rb", "Capfile", "config", "Gemfile", "Gemfile.lock", "README.md", "LICENSE", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules"]
+include:
+ - .htaccess
+exclude:
+ - "*.less"
+ - "*.sublime-project"
+ - "*.sublime-workspace"
+ - .asset-cache
+ - .bundle
+ - .jekyll-assets-cache
+ - .sass-cache
+ - CHANGELOG
+ - Capfile
+ - Gemfile
+ - Gruntfile.js
+ - LICENSE
+ - README
+ - Rakefile
+ - config
+ - gulpfile.js
+ - lib
+ - log
+ - node_modules
+ - package.json
+ - spec
+ - tmp
diff --git a/_templates/archive b/_templates/archive
deleted file mode 100644
index 8b48d35..0000000
--- a/_templates/archive
+++ /dev/null
@@ -1,6 +0,0 @@
----
-layout: post-index
-title: {{ title }}
-permalink:
-description:
---- \ No newline at end of file
diff --git a/_templates/page b/_templates/page
deleted file mode 100644
index 09652ad..0000000
--- a/_templates/page
+++ /dev/null
@@ -1,12 +0,0 @@
----
-layout: {{ layout }}
-title: {{ title }}
-date: {{ date }}
-modified:
-description:
-image:
- feature:
- credit:
- creditlink:
-share:
----
diff --git a/_templates/post b/_templates/post
deleted file mode 100644
index 7b7427b..0000000
--- a/_templates/post
+++ /dev/null
@@ -1,14 +0,0 @@
----
-layout: {{ layout }}
-title: {{ title }}
-modified:
-categories: {{ dir }}
-description:
-tags: []
-image:
- feature:
- credit:
- creditlink:
-comments:
-share:
---- \ No newline at end of file
diff --git a/theme-setup/index.md b/theme-setup/index.md
index c546119..45073b5 100644
--- a/theme-setup/index.md
+++ b/theme-setup/index.md
@@ -7,6 +7,7 @@ image:
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
share: true
+modified: 2016-06-01T15:14:43-04:00
---
General notes and suggestions for customizing **HPSTR**.
@@ -128,35 +129,11 @@ To add additional links in the drop down menu edit `_data/navigation.yml`. Use t
---
-## Adding New Content with Octopress
+## Adding New Content
-While completely optional, I've included Octopress and some starter templates to automate the creation of new posts and pages. To take advantage of it start by installing the [Octopress](https://github.com/octopress/octopress) gem if it isn't already.
+Posts are stored in the `_posts` directory and named according to the `YEAR-MONTH-DAY-title.MARKUP` format as per [the usual](https://jekyllrb.com/docs/posts/).
-{% highlight bash %}
-$ gem install octopress
-{% endhighlight %}
-
-### New Post
-
-Default command
-
-{% highlight bash %}
-$ octopress new post "Post Title"
-{% endhighlight %}
-
-Default works great if you want all your posts in one directory, but if you're like me and want to group them into subfolders like `/posts`, `/portfolio`, etc. Then this is the command for you. By specifying the DIR it will create a new post in that folder and populate the `categories:` YAML with the same value.
-
-{% highlight bash %}
-$ octopress new post "New Portfolio Post Title" --dir portfolio
-{% endhighlight %}
-
-### New Page
-
-To create a new page use the following command.
-
-{% highlight bash %}
-$ octopress new page new-page/
-{% endhighlight %}
+To streamline the creation of posts and pages, [Jekyll::Compose](https://github.com/jekyll/jekyll-compose) and [Octopress](https://github.com/octopress/octopress) are great plugins you can install to automate this process.
---