1
1
Fork 0

fix date utc issue and improve work content

This commit is contained in:
Ava Gaiety W 2024-03-25 00:29:52 -05:00
parent 7ede4a2169
commit 15bf99c18c
10 changed files with 37 additions and 51 deletions

View file

@ -1,10 +1,20 @@
const Nunjucks = require('nunjucks'); 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 hljs = require('highlight.js/lib/common');
const { setup } = require('highlightjs-glimmer'); const { setup } = require('highlightjs-glimmer');
const markdownit = require('markdown-it'); const markdownit = require('markdown-it');
const markdownitClass = require('@toycode/markdown-it-class'); 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 = { const markdownClassMapping = {
h1: ['text-6xl', 'mt-6', 'text-pink'], h1: ['text-6xl', 'mt-6', 'text-pink'],
h2: ['text-3xl', 'mt-6', 'text-text'], h2: ['text-3xl', 'mt-6', 'text-text'],
@ -43,8 +53,6 @@ module.exports = function(eleventyConfig) {
let nunjucksEnvironment = new Nunjucks.Environment( let nunjucksEnvironment = new Nunjucks.Environment(
new Nunjucks.FileSystemLoader("_includes") new Nunjucks.FileSystemLoader("_includes")
); );
nunjucksDate.setDefaultFormat('MMMM Do, YYYY');
nunjucksDate.install(nunjucksEnvironment);
eleventyConfig.setLibrary('md', md); eleventyConfig.setLibrary('md', md);
@ -57,6 +65,7 @@ module.exports = function(eleventyConfig) {
); );
eleventyConfig.addFilter('markdown', value => md.render(value)); eleventyConfig.addFilter('markdown', value => md.render(value));
eleventyConfig.addNunjucksFilter('date', dayjsFilter);
eleventyConfig.setLibrary('njk', nunjucksEnvironment); eleventyConfig.setLibrary('njk', nunjucksEnvironment);
}; };

49
package-lock.json generated
View file

@ -18,11 +18,11 @@
"@catppuccin/tailwindcss": "^0.1.6", "@catppuccin/tailwindcss": "^0.1.6",
"autoprefixer": "^10.3.7", "autoprefixer": "^10.3.7",
"cssnano": "^5.0.8", "cssnano": "^5.0.8",
"dayjs": "^1.11.10",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"highlightjs-glimmer": "^2.2.1", "highlightjs-glimmer": "^2.2.1",
"install": "^0.13.0", "install": "^0.13.0",
"npm": "^10.5.0", "npm": "^10.5.0",
"nunjucks-date": "^1.5.0",
"postcss": "^8.3.11", "postcss": "^8.3.11",
"postcss-cli": "^9.0.1", "postcss-cli": "^9.0.1",
"tailwindcss": "^3.4.1" "tailwindcss": "^3.4.1"
@ -1074,6 +1074,12 @@
"integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==",
"dev": true "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": { "node_modules/debug": {
"version": "4.3.4", "version": "4.3.4",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
@ -2371,15 +2377,6 @@
"mkdirp": "bin/cmd.js" "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": { "node_modules/moo": {
"version": "0.5.2", "version": "0.5.2",
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", "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": { "node_modules/object-assign": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@ -8121,6 +8108,12 @@
"integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==",
"dev": true "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": { "debug": {
"version": "4.3.4", "version": "4.3.4",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
@ -9088,12 +9081,6 @@
"minimist": "^1.2.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": { "moo": {
"version": "0.5.2", "version": "0.5.2",
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz",
@ -11068,16 +11055,6 @@
"commander": "^5.1.0" "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": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",

View file

@ -30,11 +30,11 @@
"@catppuccin/tailwindcss": "^0.1.6", "@catppuccin/tailwindcss": "^0.1.6",
"autoprefixer": "^10.3.7", "autoprefixer": "^10.3.7",
"cssnano": "^5.0.8", "cssnano": "^5.0.8",
"dayjs": "^1.11.10",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"highlightjs-glimmer": "^2.2.1", "highlightjs-glimmer": "^2.2.1",
"install": "^0.13.0", "install": "^0.13.0",
"npm": "^10.5.0", "npm": "^10.5.0",
"nunjucks-date": "^1.5.0",
"postcss": "^8.3.11", "postcss": "^8.3.11",
"postcss-cli": "^9.0.1", "postcss-cli": "^9.0.1",
"tailwindcss": "^3.4.1" "tailwindcss": "^3.4.1"

View file

@ -1,8 +1,8 @@
--- ---
tags: work tags: work
title: Senior Software Engineer at Allovue (PowerSchool) title: Senior Software Engineer at Allovue (PowerSchool)
description: (Aug 2019 - Jul 2020, April 2022 - Present) Functional Programming in Elixir plus leadership and design opportunities. description: _(Aug 2019 - Jul 2020, April 2022 - February 2024)_ Functional programming in **Elixir**, **Ember.js** and **Postgres** powering school budgeting nationwide.
date: 2022-02-11 date: 2024-02-29
image: /img/content/allovue-thumb.png image: /img/content/allovue-thumb.png
pinned: false pinned: false
--- ---

View file

@ -1,7 +1,7 @@
--- ---
tags: work tags: work
title: Web Design & Dev Intern at Antharia 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 date: 2010-08-01
--- ---

View file

@ -1,7 +1,7 @@
--- ---
tags: work tags: work
title: Interactive Technologies Lead & Web Admin at Cyto Communications 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 date: 2012-12-01
--- ---

View file

@ -2,7 +2,7 @@
tags: work tags: work
category: "Work History" category: "Work History"
title: "Senior Web Engineer at Rendia" 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 date: 2015-12-30
--- ---

View file

@ -1,7 +1,7 @@
--- ---
tags: work tags: work
title: UI Engineer at Oncue 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 date: 2021-04-19
image: /img/content/oncue-thumb.png image: /img/content/oncue-thumb.png
pinned: false pinned: false

View file

@ -1,13 +1,13 @@
--- ---
tags: work tags: work
title: Developer III at Q2ebanking 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 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) ![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) ![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)

View file

@ -1,7 +1,7 @@
--- ---
tags: work tags: work
title: Lead Full-Stack Software Engineer at SkillsEngine 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 date: 2020-08-01
--- ---