Giter VIP home page Giter VIP logo

blog-glebm-com's Introduction

Set up

Fork this repo. After cloning your fork:

# remove all existing posts:
rm -f source/2*.markdown.erb
rm -rf source/images/2*/
git add -u
git commit -m "remove @glebm's posts"

Then change the following files with your data:

  • data/disqus.yml -- remove or change disqus key
  • data/google_analytics.yml -- remove or change analytics account id
  • source/CNAME -- remove file or change to your CNAME (this is for gh-pages)

The rest of the settings are in other files in data/. See config.rb for advanced configuration.

To update to the latest upstream with:

# add upstream -- only need to do this once 
git remote add upstream https://github.com/glebm/blog-glebm-com
# pull upstream changes, and apply your changes on top
git pull --rebase upstream/master

Workflow

  • middleman to start development server
  • middleman article TITLE to generate a new article
  • rake build to test build
  • rake publish to publish (builds and pushes to gh-pages branch on origin).

Articles

Articles are written in markdown and also processed with <%= ERB %>. Add published: false to the YAML bit in the beginning of the article to make it a draft.

Images

<%= image_tag 'image_name.png' %>
<img src="/images/image_name.png">

<%= article_image_tag 'image_name.png' %>
<img src="/images/2016-01-01-my-article-slug/image_name.png">

Icons

<%= glyphicon('play') %>
<i class='glyphicon glyphicon-play'></i>

Summary / read more:

If the article contains READMORE, the part above READMORE will be considered a summary, and will be rendered on the index page with a "Read more" link after it.

blog-glebm-com's People

Contributors

glebm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cychoi

blog-glebm-com's Issues

some edits

some small edits for you. grammar stuff, clarity, and removing extra words.
Nice post :)

+fonts included from stylesheets in head

-cause 1 extra
+ one

+ missing text or a font

+requires a JS workaround

+inlined as data-uris

+fonts and css [dont use + to mean and]

+define FOUC

+base64 encoding it causes a +33% file size increase, but gzip mitigates this

+the inlined woff format is supported

+no need to include YMMV, people wil assume this.

+it is best if your tool

+optimizations, but has

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.