From 15bf99c18ce4945218e47c0ff016e25caa67bae2 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Mon, 25 Mar 2024 00:29:52 -0500 Subject: [PATCH] fix date utc issue and improve work content --- .eleventy.js | 15 +++++++++--- package-lock.json | 49 ++++++++++--------------------------- package.json | 2 +- work/allovue.md | 4 +-- work/antharia.md | 2 +- work/cyto-communications.md | 2 +- work/eyemaginations.md | 2 +- work/oncue.md | 2 +- work/q2.md | 8 +++--- work/skillsengine.md | 2 +- 10 files changed, 37 insertions(+), 51 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index a8d4c43..09a5467 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,10 +1,20 @@ const Nunjucks = require('nunjucks'); -const nunjucksDate = require('nunjucks-date'); +const dayjs = require('dayjs'); +const utc = require('dayjs/plugin/utc') +const timezone = require('dayjs/plugin/timezone') const hljs = require('highlight.js/lib/common'); const { setup } = require('highlightjs-glimmer'); const markdownit = require('markdown-it'); const markdownitClass = require('@toycode/markdown-it-class'); +const expectedInputFormat = 'YYYY-MM-DD'; +const defaultOuputFormat = 'LL'; +dayjs.extend(utc); +dayjs.extend(timezone); +function dayjsFilter(date, format = defaultOuputFormat) { + return dayjs(date, expectedInputFormat).utc().format(format); +} + const markdownClassMapping = { h1: ['text-6xl', 'mt-6', 'text-pink'], h2: ['text-3xl', 'mt-6', 'text-text'], @@ -43,8 +53,6 @@ module.exports = function(eleventyConfig) { let nunjucksEnvironment = new Nunjucks.Environment( new Nunjucks.FileSystemLoader("_includes") ); - nunjucksDate.setDefaultFormat('MMMM Do, YYYY'); - nunjucksDate.install(nunjucksEnvironment); eleventyConfig.setLibrary('md', md); @@ -57,6 +65,7 @@ module.exports = function(eleventyConfig) { ); eleventyConfig.addFilter('markdown', value => md.render(value)); + eleventyConfig.addNunjucksFilter('date', dayjsFilter); eleventyConfig.setLibrary('njk', nunjucksEnvironment); }; diff --git a/package-lock.json b/package-lock.json index 8021d3f..0f29eef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,11 +18,11 @@ "@catppuccin/tailwindcss": "^0.1.6", "autoprefixer": "^10.3.7", "cssnano": "^5.0.8", + "dayjs": "^1.11.10", "highlight.js": "^11.9.0", "highlightjs-glimmer": "^2.2.1", "install": "^0.13.0", "npm": "^10.5.0", - "nunjucks-date": "^1.5.0", "postcss": "^8.3.11", "postcss-cli": "^9.0.1", "tailwindcss": "^3.4.1" @@ -1074,6 +1074,12 @@ "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", "dev": true }, + "node_modules/dayjs": { + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==", + "dev": true + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -2371,15 +2377,6 @@ "mkdirp": "bin/cmd.js" } }, - "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/moo": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", @@ -5311,16 +5308,6 @@ } } }, - "node_modules/nunjucks-date": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/nunjucks-date/-/nunjucks-date-1.5.0.tgz", - "integrity": "sha512-uB1p4L80eXFwwWYuAcWAm12iZu6/ezfShskHxfU8fQxOKGDdEYZ3E0acUfqU6y4UdHSamC6TYfkyxyB59yHYRQ==", - "dev": true, - "dependencies": { - "moment": "*", - "nunjucks": "^3.x" - } - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -8121,6 +8108,12 @@ "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", "dev": true }, + "dayjs": { + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==", + "dev": true + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -9088,12 +9081,6 @@ "minimist": "^1.2.6" } }, - "moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "dev": true - }, "moo": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", @@ -11068,16 +11055,6 @@ "commander": "^5.1.0" } }, - "nunjucks-date": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/nunjucks-date/-/nunjucks-date-1.5.0.tgz", - "integrity": "sha512-uB1p4L80eXFwwWYuAcWAm12iZu6/ezfShskHxfU8fQxOKGDdEYZ3E0acUfqU6y4UdHSamC6TYfkyxyB59yHYRQ==", - "dev": true, - "requires": { - "moment": "*", - "nunjucks": "^3.x" - } - }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", diff --git a/package.json b/package.json index 0a15b32..57cda2b 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ "@catppuccin/tailwindcss": "^0.1.6", "autoprefixer": "^10.3.7", "cssnano": "^5.0.8", + "dayjs": "^1.11.10", "highlight.js": "^11.9.0", "highlightjs-glimmer": "^2.2.1", "install": "^0.13.0", "npm": "^10.5.0", - "nunjucks-date": "^1.5.0", "postcss": "^8.3.11", "postcss-cli": "^9.0.1", "tailwindcss": "^3.4.1" diff --git a/work/allovue.md b/work/allovue.md index 4a0707d..ff43b11 100644 --- a/work/allovue.md +++ b/work/allovue.md @@ -1,8 +1,8 @@ --- tags: work title: Senior Software Engineer at Allovue (PowerSchool) -description: (Aug 2019 - Jul 2020, April 2022 - Present) Functional Programming in Elixir plus leadership and design opportunities. -date: 2022-02-11 +description: _(Aug 2019 - Jul 2020, April 2022 - February 2024)_ Functional programming in **Elixir**, **Ember.js** and **Postgres** powering school budgeting nationwide. +date: 2024-02-29 image: /img/content/allovue-thumb.png pinned: false --- diff --git a/work/antharia.md b/work/antharia.md index 2f6d024..a7ec5ce 100644 --- a/work/antharia.md +++ b/work/antharia.md @@ -1,7 +1,7 @@ --- tags: work title: Web Design & Dev Intern at Antharia -description: (Jan 2010 - Aug 2010) Working with a homegrown CMS, custom coded solutions in response to new situations fueled my learning every day. +description: _(Jan 2010 - Aug 2010)_ Working with a homegrown CMS, custom coded solutions in response to new situations fueled my learning every day. date: 2010-08-01 --- diff --git a/work/cyto-communications.md b/work/cyto-communications.md index dff4cd9..296e6b8 100644 --- a/work/cyto-communications.md +++ b/work/cyto-communications.md @@ -1,7 +1,7 @@ --- tags: work title: Interactive Technologies Lead & Web Admin at Cyto Communications -description: (May 2011 - Dec 2012) Developed, designed and animated projects for Host Hotels & Resorts, Johns Hopkins Health System, World Wildlife Fund and more. +description: _(May 2011 - Dec 2012)_ Developed, designed and animated projects for Host Hotels & Resorts, Johns Hopkins Health System, World Wildlife Fund and more. date: 2012-12-01 --- diff --git a/work/eyemaginations.md b/work/eyemaginations.md index a7f53d0..86f089c 100644 --- a/work/eyemaginations.md +++ b/work/eyemaginations.md @@ -2,7 +2,7 @@ tags: work category: "Work History" title: "Senior Web Engineer at Rendia" -description: (2013 - Dec 2015) Launched two Ember.js, HTML5 Video & Canvas powered enterprise scale apps now educating thousands of patients nationwide. Lead UX design initiatives,tech stack decisions and technical project management. +description: _(2013 - Dec 2015)_ Launched two **Ember.js**, HTML5 _Video & Canvas_ powered enterprise scale apps now educating thousands of patients nationwide. Lead UX design initiatives, tech stack decisions and technical project management. date: 2015-12-30 --- diff --git a/work/oncue.md b/work/oncue.md index ece9ccd..df13dcf 100644 --- a/work/oncue.md +++ b/work/oncue.md @@ -1,7 +1,7 @@ --- tags: work title: UI Engineer at Oncue -description: _(Apr 2021 - Apr 2022)_ React, component systems, accessibility and more! +description: _(Apr 2021 - Apr 2022)_ **React**, component systems, **A11y** and more! date: 2021-04-19 image: /img/content/oncue-thumb.png pinned: false diff --git a/work/q2.md b/work/q2.md index 62e276e..0e10015 100644 --- a/work/q2.md +++ b/work/q2.md @@ -1,13 +1,13 @@ --- tags: work title: Developer III at Q2ebanking -description: (Jan 2016 - Aug 2019) Enterprise Ember.js & Vue.js powered banking software used by tens of millions worldwide. Mentoring, writing test automation, and writing a component for native HTML Web Components. +description: _(Jan 2016 - Aug 2019)_ Enterprise **Ember.js** & **Vue.js** powered banking software used by tens of millions worldwide. Mentoring, writing test automation, and writing a component for native HTML **Web Components**. date: 2019-08-01 --- -[Q2](https://www.q2ebanking.com/) provides a banking platform that interfaces personal and professional banking needs into a single tool. They then offer this as a customizable software as a service to banks and credit unions big or small. Community banks who would have otherwise had to outsource or hire a team to build a platform with potential security holes and poor usability are a thing of the past. +[Q2ebanking](https://www.q2ebanking.com/) provides a banking platform that interfaces personal and professional banking needs into a single tool. They then offer this as a customizable software as a service to banks and credit unions big or small. Community banks who would have otherwise had to outsource or hire a team to build a platform with potential security holes and poor usability are a thing of the past. -**Stronger communities w/ better financial tools.** +## Stronger communities with better financial tools ![Mobile banking software](/img/content/q21.jpg) @@ -15,5 +15,5 @@ Built [Ember.js](https://emberjs.com/) powered banking software used by tens of ![Desktop banking software](/img/content/q22.jpg) -Lead an innovative [HTML5 Web Components project](https://gaiety.life/on-web-components) to achieve ambitious cross-team goals. [Read more about that here...](https://gaiety.life/on-web-components) +Lead an innovative [HTML5 **Web Components** project](https://gaiety.life/posts/on-web-components) to achieve ambitious cross-team goals. [Read more about that here...](https://gaiety.life/on-web-components) diff --git a/work/skillsengine.md b/work/skillsengine.md index 41c6609..d8a5210 100644 --- a/work/skillsengine.md +++ b/work/skillsengine.md @@ -1,7 +1,7 @@ --- tags: work title: Lead Full-Stack Software Engineer at SkillsEngine -description: (Aug 2020 - April 2021) Working with Texas State Technical College (TSTC) at SkillsEngine to connect employers, educators and students in new ways through technology. +description: _(Aug 2020 - April 2021)_ Working with Texas State Technical College (TSTC) at SkillsEngine to connect employers, educators and students in new ways through technology via **Ember.js** apps. date: 2020-08-01 ---