Skip to content

Commit

Permalink
Merge pull request #724 from naher94/development
Browse files Browse the repository at this point in the history
Article Updates
  • Loading branch information
naher94 authored May 24, 2024
2 parents 4194540 + fca1f70 commit a57a7a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,21 @@ big-tile | Whether it renders as a big tile on `/photography` | `bool` eg. `true
date | `YYYY-MM-DD` | `date`
display-date | Use in the case of multiple dates | `string` eg. `Winter 2012 & Spring 2022`

#### Type `post-article`

note that there is a separate file for article styling `articles.scss`

Tag | Use | Data Type
:--- | :--- | :---
layout | The template for structural reference | `.html`
article | Should always be `true` as it helps set the link type across the site | `bool` eg. `true`
title | The name of the article | `string`
description | A short explanation of the article | `string`
hero-image | The image that loads into the hero section | `path` as a `string` eg. `product-principles-strategies/hero.jpg`; File should be an `.jpg` aspect ratio 2x1
hero-image-alt | The `alt` text for the hero image | `string` eg. `Illustration of Pepper the Product Panda excited to showcase product principles and strategies`
tags | an array of related topics for the resource `[leadership,product development]` | comma separated `string`
content-type | The media type such as reference, tool, interactive, video, my content, reading, publication, portfolio, article, blog. | `string`
date | `YYYY-MM-DD` | `date`

#### `_resources` Frontmatter Tags

Expand All @@ -162,6 +177,7 @@ title | The main name that references the resource in each tile | `string`
link | The external `url` to the resource | `string`
description | A short explanation of the resource | `string`
tags | an array of related topics for the resource `[film,games,tools]` | comma separated `string`
content-type | The media type such as reference, tool, interactive, video, my content, reading, publication, portfolio, article, blog. | `string`

#### `_work-experience` Frontmatter Tags

Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: > # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://rehanbutt.com" # the base hostname & protocol for your site
version: 8.11.1
version: 8.12.0
version-naming: [Apricot, Blackcurrent, Coconut, Dragonfruit, Elderberry, Fig, Guava, Honeydew]

# Build settings
Expand Down
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<meta property="og:image" content="
{% if page.layout == "resources-collection" %}
{{ page.tile-image | prepend: '/img/resources-collection/' | prepend: site.baseurl | prepend: site.url }}
{% elsif page.layout == "post-article" %}
{{ page.hero | prepend: '/img/articles/' | prepend: site.baseurl | prepend: site.url }}
{% elsif page.layout == "post-photo" %}
{{ page.thumbnail | prepend: '/img/photography/thumbnails/' | prepend: site.baseurl | prepend: site.url }}
{% elsif page.thumbnail %}
Expand Down

0 comments on commit a57a7a0

Please sign in to comment.