GuerillaSports / CDNFlow

Custom Global and Local CDN Delivery System for the Guerilla Sports Webflow Site.
https://www.guerillasports.net/
0 stars 0 forks source link

Story Types and Custom Story Titles #10

Open ctheil opened 4 weeks ago

ctheil commented 4 weeks ago

Should create a custom story type which will group all of the customs together. Will set the story type as a data-attr on the parent. Should require a story type for all stories, articles, and such. Then, can use the Custom Story Title feature to format the title if the data-story-type is custom. That way all customs can later be grouped together.

Or, could brainstorm another method to get a head start on grouping custom stories now, so that it is less of a pain in the future when gs scales.

ctheil commented 4 weeks ago

Story Title Formatting

Currently the formatting leaves the majority of the title in the .title-blue, then wraps the last word down into the .title-outline. Should instead do something which splits the title in half with a right-bias.

const len = str.split(" ").length
const b_title = str.substring(0, len/2);
const o_title = str.substring(len/2 + 1, len - 1)