Skip to content

Releases: Pitayan/gatsby-theme-pitayan

v0.5.2

23 Feb 12:52
Compare
Choose a tag to compare

Fixes

  • [FIX] Failing in ci build due to missing heading tag in post markdown file by @daiyanze in #44

Full Changelog: v0.5.1...v0.5.2

v0.5.1

20 Jan 00:26
Compare
Choose a tag to compare

Fixes

  • fix(gatsby-theme-pitayan): add margin-left to ToC by @daiyanze in #41
  • fix(gatsby-theme-pitayan,www): www package local startup errors & remove console log by @daiyanze in #39

Full Changelog: v0.5.0...v0.5.1

v0.5.0

15 Jan 13:23
55e7b8e
Compare
Choose a tag to compare

Breaking Changes & Features

From this version on, there're some big changes for this plugin. Please read the content below to make sure that the changes are able to fully function on your side.

1. Upgrade Gatsby to V5.0

Gatsby v5 has changed quite a lot of things. It didn't take much time for gatsby-plugin-pitayan to migrate from v4. Thus, it would be a pleasant experience for you as well.

To smoothly migrate your site to Gatsby v5, you'll have to do the following steps.

  • Read Gatsby V5 manual here. https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v4-to-v5/
    If you manually tweaked anything, make those changes align with the Gatsby v5 standards.
  • Upgrade Nodejs to >= v18.0.0. (FYI, dependencies of react & react-dom now are also upgraded to >=v18.0.0.)
  • Make sure the 3rd party plugins you're using all support Gatsby V5. If not, there might be some bumbles of starting up local development server.
  • Remove the package-lock.json in case there're warnings against your upgrade.
  • Execute npm install to get the updated dependencies
  • Remove the Gatsby cache (usually it's .cache) from your project root folder before you "npm run develop".

2. Table of Contents

It's created under responsive design for the post page which is displayed under "large screen" devices (browsers). It's sticky to the top of the post component and has active states for each of the item within it.

By default, this ToC will only show item up to 2 levels. Suppose your content is having from H1 till H3. Only the H1 and H2 will be displayed in the ToC list. However, it's editable via a plugin option of tableOfContentsLevels.

plugins: [
    {
      resolve: `@pitayan/gatsby-theme-pitayan`,
      options: {
        siteAssets: "src/assets",
        postsPerPage: 10,
        tableOfContentsLevels: 3,
...

In order to center the post component, the sharing group buttons were attached to the left side of post component for the balance. It's also sticky to the top of the post component.

image

PRs

Full Changelog: v0.4.3...v0.5.0

v0.4.3

23 Sep 03:43
Compare
Choose a tag to compare

Fixes

  • Use siteMetaData in BottomFooter component. #24

v0.4.2

23 May 07:22
Compare
Choose a tag to compare

Fixes

A prompt release followed after v0.4.1 fixing the inappropriate appearance

  • PostAuthor under post title to be aligned center for smaller screen
  • SubscriptionPanel rounded border is removed

v0.4.1

22 May 15:53
Compare
Choose a tag to compare

Changes

  • The category tags and social sharing components to align center horizontal when under smaller screen
  • Post page previous / next post link button responsive style adjustment
  • AuthorCard responsive style adjustment

v0.4.0

17 May 09:03
Compare
Choose a tag to compare

Breaking Changes

In this release, there're many design changes that are quite different than what it looks like before.

  • Change post title position to "text center"
  • Change post meta position to align center
  • Change social sharing icons smaller
  • Made category tags and social sharing icons come right after the end of the pos
  • Added new links for previous and next post pages
  • Added author card(s) to post page
  • Move SubscriptionPanel to Default Layout which will always display as full width
  • Some font style changes including the following:
    • Change title positioning and style for Authors page & Categories page
    • Change AuthorPosts page
    • Change Home page slogan font style
  • Other changes
    • text color & background color
    • Icon

V0.3.0

08 May 08:00
Compare
Choose a tag to compare

Changes

1. Add 3 custom events

For scenarios like 3rd party tracking (e.g. using GA), it's now possible to directly listen these new custom events and reacts to the user behaviors.

  • CUSTOM_EVENT_SUBSCRIPTION
  • CUSTOM_EVENT_TOGGLE_THEME
  • CUSTOM_EVENT_SOCIAL_SHARING

2. Move Copy url button from top navigation to post page social sharing group

image

image

Icon is also changed

image

3. Icon migrated from "Simple-Icons" to "Remix-Icons"

Before
image

Now
image

4. Subscription panel now can turn into full width on smaller screens

May-08-2022 16-27-50

5. Subscription component content is now customizable

You could edit the subscription title and description via siteMetadata

siteSubscription: {
  title: "Don't forget to signup the newsletters",
  description: "You'll get our most recent updates when we publish new contents"
}

Fixes

Cookies consent prompt is now customizable

Issue #8

Similar to subscription component, you could edit its content via siteMetadata

siteCookieConsent: {
  title: "",
  description: "",
  readMore: "",
}

Remove WEBP & AVIF from image sharp plugin to speed up build performance

v0.2.15

01 May 06:29
Compare
Choose a tag to compare

Fixes:

  • html code highlight block to have wider width under smaller screen
  • disable heading anchor link under small screen
  • html a & code tag to have break words
  • html quote tag to have smaller text size under smaller screen
  • SubscriptionPanel to adapt mobile desgin
  • head title to be mutated with page redirection
  • some SEO schema issue
  • some other layout adjustment

v0.2.2

25 Apr 23:51
Compare
Choose a tag to compare

Remove dependency of gatsby from gatsby-theme-pitayan to avoid version confusion.