GithubHelp home page GithubHelp logo

thoughtworksarts / thoughtworksarts.github.io Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 3.0 239.66 MB

Source code for the official website of Thoughtworks Arts

Home Page: https://thoughtworksarts.io

HTML 41.67% Ruby 8.98% JavaScript 13.40% SCSS 35.95%
jekyll grunt

thoughtworksarts.github.io's Introduction

Thoughtworks Arts Website

Code which powers thoughtworksarts.io.

Commands

grunt serve
grunt build --dist
grunt deploy

How to create blog or newsletter items

1. Create the markdown file

  • Create a new md file in posts folder or newsletters folder.

  • Title lengths should be between 2-3 lines, possibly 4 but certainly not 5 or more.

  • Slugs should be created manually from the title, but trim them to keep them neat and readable.

2. Add text

  • Use normal markdown, aside from the caveats explained below.

  • If you are copying from hackmd, note that:

    • You can convert images in the ![Image Description](image-path.jpg) format to the correct format below.
    • For newsletters, flatten out all # headings to h2 like this: ## (it's just a much better representation of the content for web purposes)

3. Add the excerpt divider

   [first sentence]

   {% include image / youtube / vimeo %}

   [second sentence]

   <!--excerpt-ends-->

   [rest of content]
  • To achieve this, sometimes it may be necessary to add the excerpt separator mid-paragarph. This is fine and supported as per this example.

4. Add images or downloads

  • If needed, create corresponding subfolder in post images or newsletter images folder with matching name to the md file.

  • Once you have that you can use the following code blocks to render images:

   Image with no caption, link or alt text:
   
         {% include image file='image.jpg'%}

   Image with caption, link and alt text:
   
         {% include image file='image.jpg'
            caption='Image Caption'
            alt='Alt Text'
            link='https://www.link.org/' %}

   Image with alt text only:
   
         {% include image file='image.jpg'
            alt='Alt Text' %}

   Image with display border hidden:

         {% include image file='image.jpg'
            alt='Alt Text'
            class='no-border' %}

5. Add video

  • If needed, use the following code blocks to render video:
   Youtube:
   
      {% include youtube id='ytid123abc' %}

   Vimeo:

      {% include vimeo id='vmid123abc' %}

   With captions:

      {% include youtube id='ytid123abc'
         caption='Caption Text' %}

      {% include vimeo id='vmid123abc' 
         caption='Caption Text' %}

6. Check social preview

  • By default, a social preview image will be pulled automatically from the first image, youtube or vimeo found on the post.

  • You can check this by inspecting the sourcve and looking for the <meta property="og:image" content="/image.jpg" /> element (any relative URLs here are converted to absolute URLs on publishing.)

  • If you want to override this image for this post, add an image property to the jekyll front mater, as in this example.

7. Verify after publishing

  • Once the post is published, make sure it looks good on the live site.

  • Make sure the social previews are working using the facebook and / or twitter validator tools.

thoughtworksarts.github.io's People

Contributors

claucece avatar dependabot[bot] avatar jusleenkaur avatar jyaunches avatar kholibri3 avatar lauraking avatar llgauthie avatar microcosm avatar xuv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

thoughtworksarts.github.io's Issues

jekyll-paginator-v2 3.0.0 has strange behavior with collections

Just dropping this here to not forget.

Tried upgrading Jekyll to version 4 along with Jekyll plugins such as jekyll-paginator-v2. All seems good and a website is generated without apparent errors.

But the blog and newsletters collection pages are impacted.
Weirdly, the /blog/ page link has the menu being rewritten as if it was the /newsletter/ page.
The jekyll-paginator-v2 plugin seem at fault since when it is deactivated, the "rewrite" of the menu does not happen.

Also, jekyll-paginator-v2 seems to consider every blog post like it’s a newsletter post and displays a subscribe button below each blog article, although that’s not the behavior expected.

Have not found a fix yet. Played around with yaml options without success.

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.