* [PATCH website v1 1/7] remove author data and template
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
2022-10-22 7:23 ` [PATCH website v1 2/7] rename file manifest to nunjucks format Memet Zx
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
i forgot that it wasn't used here
Signed-off-by: Memet Zx <[email protected]>
---
_source/_data/author.json | 10 ----------
_source/author.njk | 10 ----------
2 files changed, 20 deletions(-)
delete mode 100644 _source/_data/author.json
delete mode 100644 _source/author.njk
diff --git a/_source/_data/author.json b/_source/_data/author.json
deleted file mode 100644
index d9abaf5..0000000
--- a/_source/_data/author.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "fullname": "Ammar Faizi",
- "username": "ammarfaizi2"
- },
- {
- "fullname": "irvanmalik48",
- "username": "irvanmalik48"
- }
-]
\ No newline at end of file
diff --git a/_source/author.njk b/_source/author.njk
deleted file mode 100644
index 1be8545..0000000
--- a/_source/author.njk
+++ /dev/null
@@ -1,10 +0,0 @@
----
-layout: base
-pagination:
- data: author
- size: 1
- alias: author
-permalink: "author/{{ author.username | slug }}/"
----
-
-{{ author.username }} is {{ author.fullname }}
\ No newline at end of file
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH website v1 2/7] rename file manifest to nunjucks format
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
2022-10-22 7:23 ` [PATCH website v1 1/7] remove author data and template Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
2022-10-22 7:23 ` [PATCH website v1 4/7] add meta tag list file Memet Zx
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
when using JSON, the file is not detected and
can't rendered to the public directory
so i reformatted using nunjucks and put the permalink into manifest.json
Signed-off-by: Memet Zx <[email protected]>
---
_source/manifest.json | 0
_source/manifest.njk | 54 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
delete mode 100644 _source/manifest.json
create mode 100644 _source/manifest.njk
diff --git a/_source/manifest.json b/_source/manifest.json
deleted file mode 100644
index e69de29..0000000
diff --git a/_source/manifest.njk b/_source/manifest.njk
new file mode 100644
index 0000000..f5e992a
--- /dev/null
+++ b/_source/manifest.njk
@@ -0,0 +1,54 @@
+---
+permalink: /manifest.json
+---
+{
+ "$schema": "https://json.schemastore.org/web-manifest-combined.json",
+ "name": "{{ site.title }}",
+ "short_name": "{{ site.name }}",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#fff",
+ "description": "{{ site.description }}",
+ "icons": [
+ {
+ "src": "assets/favicon/android-icon-36x36.png",
+ "sizes": "36x36",
+ "type": "image\/png",
+ "density": "0.75"
+ },
+ {
+ "src": "assets/favicon/android-icon-48x48.png",
+ "sizes": "48x48",
+ "type": "image\/png",
+ "density": "1.0"
+ },
+ {
+ "src": "assets/favicon/android-icon-72x72.png",
+ "sizes": "72x72",
+ "type": "image\/png",
+ "density": "1.5"
+ },
+ {
+ "src": "assets/favicon/android-icon-96x96.png",
+ "sizes": "96x96",
+ "type": "image\/png",
+ "density": "2.0"
+ },
+ {
+ "src": "assets/favicon/android-icon-144x144.png",
+ "sizes": "144x144",
+ "type": "image\/png",
+ "density": "3.0"
+ },
+ {
+ "src": "assets/favicon/android-icon-192x192.png",
+ "sizes": "192x192",
+ "type": "image\/png",
+ "density": "4.0"
+ }
+ ],
+ "related_applications": [{
+ "platform": "play",
+ "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb"
+ }]
+}
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH website v1 4/7] add meta tag list file
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
2022-10-22 7:23 ` [PATCH website v1 1/7] remove author data and template Memet Zx
2022-10-22 7:23 ` [PATCH website v1 2/7] rename file manifest to nunjucks format Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
2022-10-22 7:23 ` [PATCH website v1 5/7] add config for favicon Memet Zx
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
useful for SEO and more friendly
Signed-off-by: Memet Zx <[email protected]>
---
_source/_includes/meta.html | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 _source/_includes/meta.html
diff --git a/_source/_includes/meta.html b/_source/_includes/meta.html
new file mode 100644
index 0000000..59cd048
--- /dev/null
+++ b/_source/_includes/meta.html
@@ -0,0 +1,33 @@
+<meta name="keywords" content="Comunity, GNU/Linux, GNU/Weeb"/>
+<meta name="subject" content="{{ site.description }}">
+<meta name="copyright"content="{{ site.name }}">
+<meta name="language" content="English">
+<meta name="robots" content="index,follow" />
+<meta name="revised" content="" />
+<meta name="abstract" content="">
+<meta name="topic" content="">
+<meta name="summary" content="{{ site.description }}">
+<meta name="Classification" content="Comunity">
+<meta name="author" content="gnuweeb, [email protected]">
+<meta name="copyright" content="">
+<meta name="reply-to" content="[email protected]">
+<meta name="owner" content="ammarfaizi2">
+<meta name="url" content="{{ site.url }}">
+<meta name="identifier-URL" content="{{ site.url }}">
+<meta name="category" content="Tech, GNU/Linux">
+<meta name="coverage" content="Worldwide">
+<meta name="distribution" content="Global">
+<meta name="rating" content="General">
+<meta name="revisit-after" content="7 days">
+<meta http-equiv="Expires" content="0">
+<meta http-equiv="Pragma" content="no-cache">
+<meta http-equiv="Cache-Control" content="no-cache">
+
+<meta name="og:title" content="{{ site.title }}{% if section_title %} {{ section_title }}{% endif %}{% if title %}: {{ title }}{% endif %}"/>
+<meta name="og:type" content="{{ site.description }}"/>
+<meta name="og:url" content="{{ site.url }}"/>
+<meta name="og:image" content="{{ site.images }}"/>
+<meta name="og:site_name" content="{{ site.title }}"/>
+<meta name="og:description" content="{{ site.description }}"/>
+<meta name="fb:page_id" content="" />
+<meta name="og:email" content="[email protected]"/>
\ No newline at end of file
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH website v1 5/7] add config for favicon
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
` (2 preceding siblings ...)
2022-10-22 7:23 ` [PATCH website v1 4/7] add meta tag list file Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
2022-10-22 7:23 ` [PATCH website v1 6/7] refactoring head Memet Zx
2022-10-22 7:23 ` [PATCH website v1 7/7] add images on data site Memet Zx
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
add favicon pass trough copy when rendering
Signed-off-by: Memet Zx <[email protected]>
---
.eleventy.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.eleventy.js b/.eleventy.js
index 2e8473a..d47b932 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -113,8 +113,7 @@ module.exports = function(eleventyConfig) {
-------------------------------------------------------------------------- */
eleventyConfig.setLibrary('md', markdownLib);
eleventyConfig.setDataDeepMerge(true);
- eleventyConfig.addPassthroughCopy({ '_source/_assets/fonts': 'assets/fonts' });
- eleventyConfig.addPassthroughCopy({ '_source/_assets/images': 'assets' });
+ eleventyConfig.addPassthroughCopy({ '_source/_assets/favicon': 'assets/favicon' });
return {
dir: {
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH website v1 6/7] refactoring head
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
` (3 preceding siblings ...)
2022-10-22 7:23 ` [PATCH website v1 5/7] add config for favicon Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
2022-10-22 7:23 ` [PATCH website v1 7/7] add images on data site Memet Zx
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
add manifest, favicon images and include meta tags file
Signed-off-by: Memet Zx <[email protected]>
---
_source/_includes/head.html | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/_source/_includes/head.html b/_source/_includes/head.html
index a391c18..dc756aa 100644
--- a/_source/_includes/head.html
+++ b/_source/_includes/head.html
@@ -5,14 +5,29 @@
<title>{{ site.title }}{% if section_title %} {{ section_title }}{% endif %}{% if title %}: {{ title }}{% endif %}</title>
{% if description -%}
<meta name="description" content="{{ description }}">
+ {% else %}
+ <meta name="description" content="{{ site.description }}">
{% endif -%}
<link rel="canonical" href="{{ page.url | remove: "index.html" | remove: ".html" | prepend: site.url }}">
-
-<!-- <link rel="alternate icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
- <link rel="icon" type="image/svg+xml" href="/assets/favicon.svg">
- <link rel="mask-icon" href="/assets/favicon.svg" color="#000000">
- <link rel="apple-touch-icon" href="/assets/favicon-196x196.png"> -->
-
+ {% include 'meta.html' %}
+ <link rel="apple-touch-icon" sizes="57x57" href="/assets/favicon/apple-icon-57x57.png">
+ <link rel="apple-touch-icon" sizes="60x60" href="/assets/favicon/apple-icon-60x60.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="/assets/favicon/apple-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="76x76" href="/assets/favicon/apple-icon-76x76.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="/assets/favicon/apple-icon-114x114.png">
+ <link rel="apple-touch-icon" sizes="120x120" href="/assets/favicon/apple-icon-120x120.png">
+ <link rel="apple-touch-icon" sizes="144x144" href="/assets/favicon/apple-icon-144x144.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/assets/favicon/apple-icon-152x152.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-icon-180x180.png">
+ <link rel="icon" type="image/png" sizes="192x192" href="/assets/favicon/android-icon-192x192.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="96x96" href="/assets/favicon/favicon-96x96.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
+ <link rel="shortcut icon" href="/assets/favicon/favicon.ico">
+ <meta name="msapplication-TileColor" content="#ffffff">
+ <meta name="msapplication-TileImage" content="/assets/favicon/ms-icon-144x144.png">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="manifest" href="manifest.json" />
<link rel="stylesheet" href="/assets/main.css">
<script src="/assets/main.js" type="module"></script>
</head>
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH website v1 7/7] add images on data site
2022-10-22 7:23 [PATCH website v1 0/7] add meta tag and favicon Memet Zx
` (4 preceding siblings ...)
2022-10-22 7:23 ` [PATCH website v1 6/7] refactoring head Memet Zx
@ 2022-10-22 7:23 ` Memet Zx
5 siblings, 0 replies; 7+ messages in thread
From: Memet Zx @ 2022-10-22 7:23 UTC (permalink / raw)
To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Irvan Malik, Memet Zx
From: Memet Zx <[email protected]>
called on meta tag file
Signed-off-by: Memet Zx <[email protected]>
---
_source/_data/site.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/_source/_data/site.json b/_source/_data/site.json
index f9cebc6..93073f9 100644
--- a/_source/_data/site.json
+++ b/_source/_data/site.json
@@ -3,6 +3,7 @@
"name": "GNU/Weeb",
"description": "We are working to build community through open source technology..",
"url": "https://www.gnuweeb.org",
+ "images": "https://avatars.githubusercontent.com/u/81083695?v=4",
"language": "en",
"resource": [
{
--
Memet Zx
^ permalink raw reply related [flat|nested] 7+ messages in thread