Code Monkey home page Code Monkey logo

blog's Introduction

Xmartlabs Blog

The purpose of this blog is to showcase some insight into our work and share data and tips related to the projects we tackle. We will also keep it updated with info and news about Xmartlabs.

Contents

Local setup

This blog was built using Jekyll, a simple, extendable and static site generator. To set it up on your machine:

  1. Clone the project into your machine: git clone [email protected]:xmartlabs/blog.git
  2. Create your branch: git checkout -b my-new-branch
  3. Install Ruby 2.3.0 (you can use rbenv)
  4. Install Jekyll and bundler in this Ruby version by running: gem install jekyll bundler
  5. Go to the folder for this repository and build the site with jekyll serve or jekyll serve --host=0.0.0.0 (if you want to use it from your phone or other machine)
  6. Now browse to http://localhost:4000 or http://YOUR-IP:4000

Featured posts

If you want a post to be among the 3 featured posts you need to set the following custom variables in its front matter:

  • featured_position: 1 These may take one of the following values:
    • 1: it will be displayed on the left column in Desktop, the image size needs to be around 574x385px
    • 2: it will be displayed at the top of the right column in Desktop, the image size needs to be around 706x187px
    • 3: it will be displayed at the bottom of the right column in Desktop, the image size needs to be around 706x187px
  • featured_image: /images/my-new-post/featured.png Remember to place the image inside the post's folder. A different name and format can be used, just assign the correct path to the variable.

IMPORTANT: If multiple posts have the same featured_position the newest will show on the featured section but the others won't show on the list of posts (since these are filtered to avoid repetition). Please avoid this by deleting these variables from the post you want to replace.

What to do if the CSS changes aren't applied when releasing?

Sometimes changes to the CSS aren't applied once the page is released to GitHub Pages, this means the old CSS will be used causing different problems that can't be reproduced locally.

To force GitHub to load the new CSS you can edit this line at head.html:

<link rel="stylesheet" href="{{ "/css/main.css" | relative_url }}">

So far adding (or removing, when it was already there) an id parameter to the /css/main.css url has worked.

<link rel="stylesheet" href="{{ "/css/main.css?id=12345" | relative_url }}">

blog's People

Contributors

bryant1410 avatar mats-claassen avatar joaquinrok avatar lsarni avatar mirland avatar enrigalmig avatar m-revetria avatar agustinh17 avatar mcousillas6 avatar ferraribruno avatar f7deleon avatar gusgard avatar mlvieras avatar rlavistad avatar pastorin avatar stsocrat avatar

Watchers

James Cloos avatar

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.