Skip to content

Commit 9f1c5f0

Browse files
authored
update: format — files (#265)
update: `format` — files
2 parents 2146ffe + 9b63460 commit 9f1c5f0

5 files changed

Lines changed: 95 additions & 77 deletions

File tree

.prettierrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"trailingComma": "es5",
3-
"tabWidth": 2,
4-
"semi": false,
5-
"singleQuote": true
6-
}
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

src/_includes/components/meta.njk

Lines changed: 52 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,78 @@
22
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
33
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
44
<meta name="theme-color" content="#000000" />
5-
<meta name="google-site-verification" content="QdJZEMLWFpqAkaOxsDd2zR4mzmtW7VN07LemJCDZuD0" />
6-
5+
<meta name="google-site-verification"
6+
content="QdJZEMLWFpqAkaOxsDd2zR4mzmtW7VN07LemJCDZuD0" />
77
{% if author %}
8-
<meta name="author" content="{{ author }}" />
8+
<meta name="author" content="{{ author }}" />
99
{% else %}
10-
<meta name="author" content="EmptyWork" />
10+
<meta name="author" content="EmptyWork" />
1111
{% endif %}
1212
<meta name="keywords"
13-
content="EmptyWork, Portofolio, Seorang Web Developer, Web Developer, HTML5, CSS3, Javascript, Stevarth, Ambon" />
13+
content="EmptyWork, Portofolio, Seorang Web Developer, Web Developer, HTML5, CSS3, Javascript, Stevarth, Ambon" />
1414
<meta property="og:locale" content="en_US" />
1515
<meta property="og:type" content="website" />
16-
1716
{% if description %}
18-
<meta name="description" content="{{ description }}" />
19-
<meta property="og:description" content="{{ description }}" />
20-
<meta itemprop="description" content="{{ description }}">
21-
<meta name="twitter:description" content="{{ description }}">
17+
<meta name="description" content="{{ description }}" />
18+
<meta property="og:description" content="{{ description }}" />
19+
<meta itemprop="description" content="{{ description }}">
20+
<meta name="twitter:description" content="{{ description }}">
2221
{% else %}
23-
<meta name="description"
24-
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development." />
25-
<meta property="og:description"
26-
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development." />
27-
<meta itemprop="description"
28-
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development.">
29-
<meta name="twitter:description"
30-
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development.">
22+
<meta name="description"
23+
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development." />
24+
<meta property="og:description"
25+
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development." />
26+
<meta itemprop="description"
27+
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development.">
28+
<meta name="twitter:description"
29+
content="EmptyWork's portofolio, I am passionate about making web more accessible for everyone, with that in mind I focused on learning about Accessibility (A11y) and UI/UX Development.">
3130
{% endif %}
32-
3331
<meta property="og:url" content="https://emptywork.my.id" />
3432
<meta property="og:site_name" content="EmptyWork" />
35-
3633
{% if image %}
37-
<meta property="og:image" content="{{ image }}" />
38-
<meta itemprop="image" content="{{ image }}">
39-
<meta name="twitter:image" content="{{ image }}">
34+
<meta property="og:image" content="{{ image }}" />
35+
<meta itemprop="image" content="{{ image }}">
36+
<meta name="twitter:image" content="{{ image }}">
4037
{% else %}
41-
<meta itemprop="image" content="/images/emptywork.my.id-secondary-banner.png">
42-
<meta property="og:image" content="/images/emptywork.my.id-secondary-banner.png" />
43-
<meta name="twitter:image" content="/images/emptywork.my.id-secondary-banner.png">
38+
<meta itemprop="image"
39+
content="/images/emptywork.my.id-secondary-banner.png">
40+
<meta property="og:image"
41+
content="/images/emptywork.my.id-secondary-banner.png" />
42+
<meta name="twitter:image"
43+
content="/images/emptywork.my.id-secondary-banner.png">
4444
{% endif %}
45-
4645
<meta name="twitter:card" content="summary_large_image" />
4746
{% if title %}
48-
<meta property="og:title" content="{{ title }}" />
49-
<meta name="twitter:title" content="{{ title }}">
50-
<meta itemprop="name" content="{{ title }}">
47+
<meta property="og:title" content="{{ title }}" />
48+
<meta name="twitter:title" content="{{ title }}">
49+
<meta itemprop="name" content="{{ title }}">
5150
{% else %}
52-
<meta property="og:title" content="Emptywork" />
53-
<meta name="twitter:title" content="Emptywork">
54-
<meta itemprop="name" content="Emptywork">
51+
<meta property="og:title" content="Emptywork" />
52+
<meta name="twitter:title" content="Emptywork">
53+
<meta itemprop="name" content="Emptywork">
5554
{% endif %}
56-
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
57-
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
58-
<link rel="icon" type="image/png" sizes="194x194" href="/images/favicon-194x194.png">
59-
<link rel="icon" type="image/png" sizes="192x192" href="/images/android-chrome-192x192.png">
60-
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
55+
<link rel="apple-touch-icon"
56+
sizes="180x180"
57+
href="/images/apple-touch-icon.png">
58+
<link rel="icon"
59+
type="image/png"
60+
sizes="32x32"
61+
href="/images/favicon-32x32.png">
62+
<link rel="icon"
63+
type="image/png"
64+
sizes="194x194"
65+
href="/images/favicon-194x194.png">
66+
<link rel="icon"
67+
type="image/png"
68+
sizes="192x192"
69+
href="/images/android-chrome-192x192.png">
70+
<link rel="icon"
71+
type="image/png"
72+
sizes="16x16"
73+
href="/images/favicon-16x16.png">
6174
<link rel="manifest" href="/images/site.webmanifest">
6275
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#242424">
6376
<link rel="shortcut icon" href="/images/favicon.ico">
6477
<meta name="msapplication-TileColor" content="#242424">
6578
<meta name="msapplication-TileImage" content="/images/mstile-144x144.png">
66-
<meta name="msapplication-config" content="/images/browserconfig.xml">
79+
<meta name="msapplication-config" content="/images/browserconfig.xml">

src/feed.njk

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,32 @@
1313
}
1414
}
1515
---
16+
1617
<?xml version="1.0" encoding="utf-8"?>
1718
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ link.website }}">
18-
<title>{{ metadata.title }}</title>
19-
<subtitle>{{ metadata.subtitle }}</subtitle>
20-
<link href="{{ permalink | absoluteUrl(link.website) }}" rel="self" type="application/atom+xml"/>
21-
<link href="{{ link.website }}" rel="alternate" type="text/html"/>
22-
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
23-
<id>{{ link.website }}</id>
24-
<author>
25-
<name>{{ metadata.author.name }}</name>
26-
<email>{{ metadata.author.email }}</email>
27-
</author>
28-
{%- for post in collections.post | reverse %}
19+
<title>{{ metadata.title }}</title>
20+
<subtitle>{{ metadata.subtitle }}</subtitle>
21+
<link href="{{ permalink | absoluteUrl(link.website) }}"
22+
rel="self"
23+
type="application/atom+xml" />
24+
<link href="{{ link.website }}" rel="alternate" type="text/html" />
25+
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
26+
<id>{{ link.website }}</id>
27+
<author>
28+
<name>{{ metadata.author.name }}</name>
29+
<email>{{ metadata.author.email }}</email>
30+
</author>
31+
{%- for post in collections.post | reverse %}
2932
{%- set absolutePostUrl = post.url | absoluteUrl(link.website) %}
3033
<entry>
31-
<title>{{ post.data.title }}</title>
32-
<link href="{{ absolutePostUrl }}"/>
33-
<updated>{{ post.date | dateToRfc3339 }}</updated>
34-
<id>{{ absolutePostUrl }}</id>
35-
<content xml:lang="{{ metadata.language }}" type="html">
36-
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
37-
{{ templateContent | safe }}
38-
</content>
34+
<title>{{ post.data.title }}</title>
35+
<link href="{{ absolutePostUrl }}" />
36+
<updated>{{ post.date | dateToRfc3339 }}</updated>
37+
<id>{{ absolutePostUrl }}</id>
38+
<content xml:lang="{{ metadata.language }}" type="html">
39+
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
40+
{{ templateContent | safe }}
41+
</content>
3942
</entry>
40-
{%- endfor %}
41-
</feed>
43+
{%- endfor %}
44+
</feed>

src/index.njk

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
title: 'EmptyWork'
33
layout: 'layouts/primary.njk'
44
---
5+
56
<main id="main" class="main">
6-
{% include 'sections/featured.njk' %}
7-
{% include 'sections/work.njk' %}
8-
{% include 'sections/clients.njk' %}
9-
{% include 'sections/partof.njk' %}
10-
{% include 'sections/about.njk' %}
11-
{% include 'sections/prototypes.njk' %}
12-
</main>
7+
{% include "sections/featured.njk" %}
8+
{% include "sections/work.njk" %}
9+
{% include "sections/clients.njk" %}
10+
{% include "sections/partof.njk" %}
11+
{% include "sections/about.njk" %}
12+
{% include "sections/prototypes.njk" %}
13+
</main>

src/sitemap.njk

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
permalink: /sitemap.xml
33
eleventyExcludeFromCollections: true
44
---
5+
56
<?xml version="1.0" encoding="utf-8"?>
67
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
7-
{% for page in collections.all %}
8+
{% for page in collections.all %}
89
{% if not page.data.draft %}
9-
<url>
10+
<url>
1011
<loc>{{ link.website }}{{ page.url | url }}</loc>
1112
<lastmod>{{ page.date.toISOString() }}</lastmod>
1213
<changefreq>{{ page.data.changeFreq if page.data.changeFreq else "monthly" }}</changefreq>
13-
</url>
14+
</url>
1415
{% endif %}
15-
{% endfor %}
16-
</urlset>
16+
{% endfor %}
17+
</urlset>

0 commit comments

Comments
 (0)