diff --git a/.prettierrc b/.prettierrc index f00e0b0..fa51da2 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,6 @@ { - "trailingComma": "es5", - "tabWidth": 2, - "semi": false, - "singleQuote": true - } \ No newline at end of file + "trailingComma": "es5", + "tabWidth": 2, + "semi": false, + "singleQuote": true +} diff --git a/src/_includes/components/meta.njk b/src/_includes/components/meta.njk index 226da33..f8b0c56 100644 --- a/src/_includes/components/meta.njk +++ b/src/_includes/components/meta.njk @@ -2,65 +2,78 @@ - - + {% if author %} - + {% else %} - + {% endif %} + content="EmptyWork, Portofolio, Seorang Web Developer, Web Developer, HTML5, CSS3, Javascript, Stevarth, Ambon" /> - {% if description %} - - - - + + + + {% else %} - - - - + + + + {% endif %} - - {% if image %} - - - + + + {% else %} - - - + + + {% endif %} - {% if title %} - - - + + + {% else %} - - - + + + {% endif %} - - - - - + + + + + - \ No newline at end of file + diff --git a/src/feed.njk b/src/feed.njk index a6e984c..492fd4f 100644 --- a/src/feed.njk +++ b/src/feed.njk @@ -13,29 +13,32 @@ } } --- + - {{ metadata.title }} - {{ metadata.subtitle }} - - - {{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }} - {{ link.website }} - - {{ metadata.author.name }} - {{ metadata.author.email }} - - {%- for post in collections.post | reverse %} +{{ metadata.title }} +{{ metadata.subtitle }} + + +{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }} +{{ link.website }} + +{{ metadata.author.name }} +{{ metadata.author.email }} + +{%- for post in collections.post | reverse %} {%- set absolutePostUrl = post.url | absoluteUrl(link.website) %} - {{ post.data.title }} - - {{ post.date | dateToRfc3339 }} - {{ absolutePostUrl }} - - {%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %} - {{ templateContent | safe }} - + {{ post.data.title }} + + {{ post.date | dateToRfc3339 }} + {{ absolutePostUrl }} + + {%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %} + {{ templateContent | safe }} + - {%- endfor %} - \ No newline at end of file +{%- endfor %} + diff --git a/src/index.njk b/src/index.njk index 946f8e5..ed6f7a4 100644 --- a/src/index.njk +++ b/src/index.njk @@ -2,11 +2,12 @@ title: 'EmptyWork' layout: 'layouts/primary.njk' --- +
- {% include 'sections/featured.njk' %} - {% include 'sections/work.njk' %} - {% include 'sections/clients.njk' %} - {% include 'sections/partof.njk' %} - {% include 'sections/about.njk' %} - {% include 'sections/prototypes.njk' %} -
\ No newline at end of file + {% include "sections/featured.njk" %} + {% include "sections/work.njk" %} + {% include "sections/clients.njk" %} + {% include "sections/partof.njk" %} + {% include "sections/about.njk" %} + {% include "sections/prototypes.njk" %} + diff --git a/src/sitemap.njk b/src/sitemap.njk index 63e67a4..2d5e242 100644 --- a/src/sitemap.njk +++ b/src/sitemap.njk @@ -2,15 +2,16 @@ permalink: /sitemap.xml eleventyExcludeFromCollections: true --- + - {% for page in collections.all %} +{% for page in collections.all %} {% if not page.data.draft %} - + {{ link.website }}{{ page.url | url }} {{ page.date.toISOString() }} {{ page.data.changeFreq if page.data.changeFreq else "monthly" }} - + {% endif %} - {% endfor %} - \ No newline at end of file +{% endfor %} +