Added new content and forestry config
Nichlas W. Andersen
committed Aug 09, 2018
commit 855446a0623628c5b72d58cd7990a030587e8007
Showing 17
changed files with
141 additions
and 54 deletions
.forestry/front_matter/templates/journal.yml
+29
-0
| @@ | @@ -0,0 +1,29 @@ |
| + | --- |
| + | hide_body: false |
| + | fields: |
| + | - name: title |
| + | default: '' |
| + | label: Title |
| + | hidden: false |
| + | type: text |
| + | - name: thumbnail |
| + | default: '' |
| + | label: Thumbnail |
| + | hidden: false |
| + | type: fileupload |
| + | - name: excerpt |
| + | default: '' |
| + | label: Excerpt |
| + | hidden: false |
| + | type: textarea |
| + | - name: publishDate |
| + | default: '' |
| + | label: Date |
| + | hidden: false |
| + | type: datetime |
| + | - name: Categories |
| + | default: [] |
| + | label: Categories |
| + | hidden: false |
| + | type: tags |
| + | --- |
.forestry/front_matter/templates/works.yml
+29
-0
| @@ | @@ -0,0 +1,29 @@ |
| + | --- |
| + | hide_body: false |
| + | fields: |
| + | - name: title |
| + | default: '' |
| + | label: Title |
| + | hidden: false |
| + | type: text |
| + | - name: thumbnail |
| + | default: '' |
| + | label: Thumbnail |
| + | hidden: false |
| + | type: fileupload |
| + | - name: publishDate |
| + | default: '' |
| + | label: Date |
| + | hidden: false |
| + | type: datetime |
| + | - name: Categories |
| + | default: [] |
| + | label: Categories |
| + | hidden: false |
| + | type: list |
| + | - name: year |
| + | default: null |
| + | label: Year |
| + | hidden: false |
| + | type: number |
| + | --- |
.forestry/settings.yml
+21
-0
| @@ | @@ -0,0 +1,21 @@ |
| + | --- |
| + | upload_path: "/uploads/" |
| + | frontmatter_file_url_template: "/uploads/" |
| + | body_file_url_template: "/uploads/" |
| + | new_page_extension: md |
| + | auto_deploy: true |
| + | admin_path: "/admin" |
| + | sections: |
| + | |
| + | - path: works |
| + | label: Works |
| + | create: all |
| + | templates: |
| + | - works |
| + | |
| + | - path: journal |
| + | label: Journal |
| + | create: all |
| + | templates: |
| + | - journal |
| + | --- |
.vuepress/components/JournalList.vue
+2
-2
| @@ | @@ -1,8 +1,8 @@ |
| <template> | |
| <div class="journal-list"> | |
| - | <div v-for="post in journal"> |
| + | <div v-for="post in journal" :key="post.title"> |
| <router-link tag="h2" :to="post.path">{{ post.frontmatter.title }}</router-link> | |
| - | <p>{{ post.frontmatter.description }}</p> |
| + | <p>{{ post.frontmatter.excerpt }}</p> |
| </div> | |
| </div> | |
| </template> | |
.vuepress/components/Navbar.vue
+2
-0
| @@ | @@ -13,6 +13,7 @@ |
| <ul> | |
| <router-link | |
| v-for="nav in navLinks" | |
| + | :key="nav.text" |
| v-if="nav.position === 'left'" | |
| tag="li" | |
| :to="nav.link" | |
| @@ | @@ -37,6 +38,7 @@ |
| <ul> | |
| <router-link | |
| v-for="nav in navLinks" | |
| + | :key="nav.text" |
| v-if="nav.position === 'right'" | |
| tag="li" | |
| :to="nav.link" | |
.vuepress/components/WorksList.vue
+1
-0
| @@ | @@ -5,6 +5,7 @@ |
| :to="post.path" | |
| tag="div" | |
| v-for="post in posts" | |
| + | :key="post.title" |
| class="post" | |
| :style="{ backgroundImage: `url(${post.frontmatter.thumbnail})` }" | |
| > | |
.vuepress/public/upload/forestry_factory.jpg
+0
-0
.vuepress/public/upload/ph-light.jpg
+0
-0
journal/build-a-portfolio-with-vuepress.md
+0
-19
| @@ | @@ -1,19 +0,0 @@ |
| - | --- |
| - | title: Build a portfolio with Vuepress |
| - | date: 2018-08-07 |
| - | thumbnail: /upload/ph-light.jpg |
| - | categories: |
| - | - App development |
| - | - Product design |
| - | excerpt: |
| - | Here's the short text that will be visible on the |
| - | journal list page |
| - | --- |
| - | |
| - | # How to build a portfolio with Vuepress |
| - | |
| - | This morning, I read this article by one of the co-founders of Snipcart. He did this great rundown on how you could build a simple blog with vuepress by looping over a custom directory of documents. |
| - | |
| - | In this post, I will show you how I built out the site you're currently looking at! Yes, it's all Vuepress. Pretty neat, huh? |
| - | |
| - | And BTW.. The theme is free, check it out on [GitHub](https://github.com) |
journal/post-1.md
+17
-0
| @@ | @@ -0,0 +1,17 @@ |
| + | --- |
| + | title: How to build a portfolio/blog with Vuepress |
| + | date: 2018-08-07 |
| + | thumbnail: |
| + | categories: |
| + | - Development |
| + | excerpt: |
| + | This morning, I read this article by one of the co-founders of Snipcart. He did this great rundown on how you could build a simple blog with Vuepress by looping over a custom directory of documents. |
| + | --- |
| + | |
| + | # How to build a portfolio/blog with Vuepress |
| + | |
| + | This morning, I read this article by one of the co-founders of Snipcart. He did this great rundown on how you could build a simple blog with Vuepress by looping over a custom directory of documents. |
| + | |
| + | In this post, I will show you how I built out the site you're currently looking at! Yes, it's all Vuepress. Pretty neat, huh? |
| + | |
| + | And BTW.. The theme is free, check it out on [GitHub](https://github.com) |
works/brandy.md
+0
-11
| @@ | @@ -1,11 +0,0 @@ |
| - | --- |
| - | title: Brandy |
| - | date: 2018-08-01 |
| - | thumbnail: /upload/ph-light.jpg |
| - | year: 2018 |
| - | categories: |
| - | - App development |
| - | - Product design |
| - | description: |
| - | A brand asset manager for your macOS menu bar |
| - | --- |
works/forestry.md
+0
-11
| @@ | @@ -1,11 +0,0 @@ |
| - | --- |
| - | title: Forestry |
| - | date: 2017-03-29 |
| - | thumbnail: /upload/forestry_factory.jpg |
| - | year: 2017 |
| - | categories: |
| - | - Web |
| - | - Product design |
| - | description: |
| - | a CMS for static site generators |
| - | --- |
works/project-1.md
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | --- |
| + | title: Project name |
| + | date: 2018-08-01 |
| + | thumbnail: https://images.unsplash.com/photo-1490122417551-6ee9691429d0?ixlib=rb-0.3.5&s=992d50c6daaef18711ad48b56c1d8977&auto=format&fit=crop&w=2100&q=80 |
| + | year: 2018 |
| + | categories: |
| + | - App development |
| + | - Product design |
| + | description: Project description |
| + | --- |
works/project-2.md
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | --- |
| + | title: Project name |
| + | date: 2017-03-29 |
| + | thumbnail: https://images.unsplash.com/photo-1508186130517-a6d7405bf726?ixlib=rb-0.3.5&s=7adcf1b007a719469528642b60e2d5c3&auto=format&fit=crop&w=1887&q=80 |
| + | year: 2017 |
| + | categories: |
| + | - Web |
| + | - Product design |
| + | description: Project description |
| + | --- |
works/project-3.md
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | --- |
| + | title: Project name |
| + | date: 2017-02-04 |
| + | thumbnail: https://images.unsplash.com/photo-1533747350731-7769151f6db4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=18f46f77b86a95c60dee7fbf65734f6d&auto=format&fit=crop&w=934&q=80 |
| + | year: 2017 |
| + | categories: |
| + | - Web |
| + | - Design |
| + | description: Project description |
| + | --- |
works/project-4.md
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | --- |
| + | title: Project name is cool |
| + | date: 2017-02-04 |
| + | thumbnail: https://images.unsplash.com/photo-1511548774318-563182fe8d03?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=226688553251c9261fa28de062b96b40&auto=format&fit=crop&w=2100&q=80 |
| + | year: 2017 |
| + | categories: |
| + | - Web |
| + | - Design |
| + | description: Project description |
| + | --- |
works/spotify-brand-guidelines.md
+0
-11
| @@ | @@ -1,11 +0,0 @@ |
| - | --- |
| - | title: Spotify Brand Guidelines |
| - | date: 2017-02-04 |
| - | thumbnail: /upload/forestry_factory.jpg |
| - | year: 2017 |
| - | categories: |
| - | - Web |
| - | - Design |
| - | description: |
| - | Brand guidelines |
| - | --- |