From 26dde5274fb57dad6445bc2eeb4937865512070a Mon Sep 17 00:00:00 2001 From: Kim Laberinto Date: Fri, 29 Jan 2021 21:29:13 -0600 Subject: feat: add experiences widget (#37) * Add experiences widget in card style format * Add basic styling to dates and location in experiences * Add example for experiences widget * Adjust formatting as suggested * Adjust style of location and dates * Omits seperator if organization or location is not provided * Fix tabs/spacing of code * Adds hide_entry optional variable * Add organization name and url hyperlinking * Update example experiences widget with new features * Reorder widgets on homepage * refactor: make experiences responsive * Remove hide_entry * Refactor experiences code * refactor: migrate from toml to yaml Co-authored-by: Wang Chucheng Closes #35 --- exampleSite/content/homepage/blank.html | 2 +- exampleSite/content/homepage/experiences.md | 48 +++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/homepage/experiences.md (limited to 'exampleSite') diff --git a/exampleSite/content/homepage/blank.html b/exampleSite/content/homepage/blank.html index 592af57..0b035f7 100644 --- a/exampleSite/content/homepage/blank.html +++ b/exampleSite/content/homepage/blank.html @@ -2,7 +2,7 @@ title: Blank draft: false -weight: 4 +weight: 5 widget: handler: blank diff --git a/exampleSite/content/homepage/experiences.md b/exampleSite/content/homepage/experiences.md new file mode 100644 index 0000000..cdc0a04 --- /dev/null +++ b/exampleSite/content/homepage/experiences.md @@ -0,0 +1,48 @@ +--- +title: Experiences +draft: false +experiences: + - title: Example Role 1 + organization: + name: Example Organization 1 + url: https://example.org + dates: '2019 - Present' + location: Country + writeup: > + Donec scelerisque egestas augue at tempor. Fusce faucibus magna in. + - Suspendisse lacinia mauris a laoreet vehicula. + - Aenean tincidunt enim vitae ante blandit tempor. + - Nam tincidunt diam quis lorem rutrum ullamcorper. + - title: Example Role 2 + organization: + name: Example Organization 2 + url: https://example.org + dates: '2017 - 2019' + location: Country + writeup: > + **Aliquam** at **rutrum** ante. In sed quam faucibus. + +weight: 3 +widget: + handler: experiences + + # Options: sm, md, lg and xl. Default is md. + width: lg + + sidebar: + # Options: left and right. Leave blank to hide. + position: left + # Options: sm, md, lg and xl. Default is md. + scale: md + + background: + # Options: primary, secondary, tertiary or any valid color value. Default is primary. + color: + image: + # Options: auto, cover and contain. Default is auto. + size: + # Options: center, top, right, bottom, left. + position: + # Options: fixed, local, scroll. + attachment: +--- \ No newline at end of file -- cgit v1.2.3