Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

update: format — files #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
91 changes: 52 additions & 39 deletions src/_includes/components/meta.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,78 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="theme-color" content="#000000" />
<meta name="google-site-verification" content="QdJZEMLWFpqAkaOxsDd2zR4mzmtW7VN07LemJCDZuD0" />

<meta name="google-site-verification"
content="QdJZEMLWFpqAkaOxsDd2zR4mzmtW7VN07LemJCDZuD0" />
{% if author %}
<meta name="author" content="{{ author }}" />
<meta name="author" content="{{ author }}" />
{% else %}
<meta name="author" content="EmptyWork" />
<meta name="author" content="EmptyWork" />
{% endif %}
<meta name="keywords"
content="EmptyWork, Portofolio, Seorang Web Developer, Web Developer, HTML5, CSS3, Javascript, Stevarth, Ambon" />
content="EmptyWork, Portofolio, Seorang Web Developer, Web Developer, HTML5, CSS3, Javascript, Stevarth, Ambon" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />

{% if description %}
<meta name="description" content="{{ description }}" />
<meta property="og:description" content="{{ description }}" />
<meta itemprop="description" content="{{ description }}">
<meta name="twitter:description" content="{{ description }}">
<meta name="description" content="{{ description }}" />
<meta property="og:description" content="{{ description }}" />
<meta itemprop="description" content="{{ description }}">
<meta name="twitter:description" content="{{ description }}">
{% else %}
<meta name="description"
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." />
<meta property="og:description"
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." />
<meta itemprop="description"
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.">
<meta name="twitter:description"
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.">
<meta name="description"
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." />
<meta property="og:description"
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." />
<meta itemprop="description"
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.">
<meta name="twitter:description"
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.">
{% endif %}

<meta property="og:url" content="https://emptywork.my.id" />
<meta property="og:site_name" content="EmptyWork" />

{% if image %}
<meta property="og:image" content="{{ image }}" />
<meta itemprop="image" content="{{ image }}">
<meta name="twitter:image" content="{{ image }}">
<meta property="og:image" content="{{ image }}" />
<meta itemprop="image" content="{{ image }}">
<meta name="twitter:image" content="{{ image }}">
{% else %}
<meta itemprop="image" content="/images/emptywork.my.id-secondary-banner.png">
<meta property="og:image" content="/images/emptywork.my.id-secondary-banner.png" />
<meta name="twitter:image" content="/images/emptywork.my.id-secondary-banner.png">
<meta itemprop="image"
content="/images/emptywork.my.id-secondary-banner.png">
<meta property="og:image"
content="/images/emptywork.my.id-secondary-banner.png" />
<meta name="twitter:image"
content="/images/emptywork.my.id-secondary-banner.png">
{% endif %}

<meta name="twitter:card" content="summary_large_image" />
{% if title %}
<meta property="og:title" content="{{ title }}" />
<meta name="twitter:title" content="{{ title }}">
<meta itemprop="name" content="{{ title }}">
<meta property="og:title" content="{{ title }}" />
<meta name="twitter:title" content="{{ title }}">
<meta itemprop="name" content="{{ title }}">
{% else %}
<meta property="og:title" content="Emptywork" />
<meta name="twitter:title" content="Emptywork">
<meta itemprop="name" content="Emptywork">
<meta property="og:title" content="Emptywork" />
<meta name="twitter:title" content="Emptywork">
<meta itemprop="name" content="Emptywork">
{% endif %}
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="194x194" href="/images/favicon-194x194.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="apple-touch-icon"
sizes="180x180"
href="/images/apple-touch-icon.png">
<link rel="icon"
type="image/png"
sizes="32x32"
href="/images/favicon-32x32.png">
<link rel="icon"
type="image/png"
sizes="194x194"
href="/images/favicon-194x194.png">
<link rel="icon"
type="image/png"
sizes="192x192"
href="/images/android-chrome-192x192.png">
<link rel="icon"
type="image/png"
sizes="16x16"
href="/images/favicon-16x16.png">
<link rel="manifest" href="/images/site.webmanifest">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#242424">
<link rel="shortcut icon" href="/images/favicon.ico">
<meta name="msapplication-TileColor" content="#242424">
<meta name="msapplication-TileImage" content="/images/mstile-144x144.png">
<meta name="msapplication-config" content="/images/browserconfig.xml">
<meta name="msapplication-config" content="/images/browserconfig.xml">
45 changes: 24 additions & 21 deletions src/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,32 @@
}
}
---

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ link.website }}">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.subtitle }}</subtitle>
<link href="{{ permalink | absoluteUrl(link.website) }}" rel="self" type="application/atom+xml"/>
<link href="{{ link.website }}" rel="alternate" type="text/html"/>
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ link.website }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.post | reverse %}
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.subtitle }}</subtitle>
<link href="{{ permalink | absoluteUrl(link.website) }}"
rel="self"
type="application/atom+xml" />
<link href="{{ link.website }}" rel="alternate" type="text/html" />
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ link.website }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.post | reverse %}
{%- set absolutePostUrl = post.url | absoluteUrl(link.website) %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content xml:lang="{{ metadata.language }}" type="html">
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
{{ templateContent | safe }}
</content>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}" />
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content xml:lang="{{ metadata.language }}" type="html">
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
{{ templateContent | safe }}
</content>
</entry>
{%- endfor %}
</feed>
{%- endfor %}
</feed>
15 changes: 8 additions & 7 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
title: 'EmptyWork'
layout: 'layouts/primary.njk'
---

<main id="main" class="main">
{% include 'sections/featured.njk' %}
{% include 'sections/work.njk' %}
{% include 'sections/clients.njk' %}
{% include 'sections/partof.njk' %}
{% include 'sections/about.njk' %}
{% include 'sections/prototypes.njk' %}
</main>
{% include "sections/featured.njk" %}
{% include "sections/work.njk" %}
{% include "sections/clients.njk" %}
{% include "sections/partof.njk" %}
{% include "sections/about.njk" %}
{% include "sections/prototypes.njk" %}
</main>
11 changes: 6 additions & 5 deletions src/sitemap.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---

<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %}
{% for page in collections.all %}
{% if not page.data.draft %}
<url>
<url>
<loc>{{ link.website }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod>
<changefreq>{{ page.data.changeFreq if page.data.changeFreq else "monthly" }}</changefreq>
</url>
</url>
{% endif %}
{% endfor %}
</urlset>
{% endfor %}
</urlset>