Giter VIP home page Giter VIP logo

tropy.github.io's Introduction

tropy.github.io

Prerequisites

  • Ruby 2.5.0 or later (ruby -v)
  • Bundler (gem install bundler)

Install dependencies

$ bundle install

Serve the site

$ bundle exec jekyll serve

… and visit at localhost:4000.

Switch for previewing drafts of blog posts

$ bundle exec jekyll serve --drafts

Getting rid of gem deprecation warnings

$ gem pristine --all --no-extensions

Updating

To stay in sync with GitHub Pages run:

$ bundle update github-pages

Writing blog posts

Headline hierarchy

In order to keep the outline of a post semantic in terms of accessibility, no heading level should be omitted. In case a visually smaller heading is wanted you can use heading classes:

## Looks like heading 3
{: .h3}

Images

Unless you link to an external image add your photos to this location (create subfolders for year and month):

tropy.github.io
└── assets
    └── images
        └── blog

Post image

You can specify one (high-res) image in the post’s front matter that will be rendered on top of the post’s content (but it is not rendered in the post excerpts).

The post image can be used as a large preview image in tweets instead of the smaller Tropy icon. As Twitter crops preview images it is not recommended to use them for artwork, add artwork as image to your tweet instead of the preview.

Both a low-res (e.g. image.png) and a high-res (e.g. image@2x.png) version must exist.

---
image: /path/to/[email protected]
twitter:
  card: summary_large_image
---

Responsive images

Use a liquid tag to embed images with multiple resolutions (specify @2x version only):

{% include image src="/path/to/[email protected]" alt="" %}

Captions

Use a liquid tag for images with captions (specify @2x version for responsive images):

{% include figure src="/path/to/[email protected]" alt="" caption="Example" %}

Heads up: use single quotes inside captions: caption="<a href='…'>Source</a>"

Screenshots and borders

You can add a shadow and rounded corners to images and figures by adding the screenshot class:

{% include image src="…" alt="…" class="screenshot" %}

If all you want is a border, you can add the border class instead:

{% include image src="…" alt="…" class="border" %}

Deployment

Push to GitHub and your changes are live.

License Page

The file _includes/third-party-notices.html is automatically generated and should not be changed by hand. To update, checkout [tropy/tropy] and point Tropy's legal script to the includes folder:

npm run legal -- -o ../tropy.github.io/_includes

tropy.github.io's People

Contributors

abbymullen avatar dependabot[bot] avatar flachware avatar inukshuk avatar stakats avatar

Watchers

 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.