GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [PATCH website v1 0/7] add meta tag and favicon
@ 2022-10-22  7:23 Memet Zx
  2022-10-22  7:23 ` [PATCH website v1 1/7] remove author data and template Memet Zx
                   ` (5 more replies)
  0 siblings, 6 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]>

Hi,
This series contains some additions and fixes, There are 7 patch
in this series:

# Patch 1
remove author data and template: because at the time it was a wrong concept 
and I forgot if this is not used, 
maybe in the future it will be fixed again.

# Patch 2
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

# Patch 3
add favicon images

the favicon images generated by
https://www.favicon-generator.org/

# Patch 4
add meta tag:  The function of a meta element is to convey additional information to a website,
which facilitates the analysis of HTML files and makes maintaining file contents easier. 
HTML meta tags almost always follow the same structure; 

# Patch 5
add config for favicon:
add favicon pass trough copy when rendering

# Patch 6
refactoring head:
add manifest, favicon images and include meta tags file

# Patch 7
Modify data site
....

Memet Zx (7):
  remove author data and template
  rename file manifest to nunjucks format
  add favicon images
  add meta tag list file
  add config for favicon
  refactoring head
  add images on data site

 .eleventy.js                                  |   3 +-
 .../_assets/favicon/android-icon-144x144.png  | Bin 0 -> 52749 bytes
 .../_assets/favicon/android-icon-192x192.png  | Bin 0 -> 98357 bytes
 .../_assets/favicon/android-icon-36x36.png    | Bin 0 -> 4022 bytes
 .../_assets/favicon/android-icon-48x48.png    | Bin 0 -> 6660 bytes
 .../_assets/favicon/android-icon-72x72.png    | Bin 0 -> 13938 bytes
 .../_assets/favicon/android-icon-96x96.png    | Bin 0 -> 24180 bytes
 .../_assets/favicon/apple-icon-114x114.png    | Bin 0 -> 33722 bytes
 .../_assets/favicon/apple-icon-120x120.png    | Bin 0 -> 37191 bytes
 .../_assets/favicon/apple-icon-144x144.png    | Bin 0 -> 52749 bytes
 .../_assets/favicon/apple-icon-152x152.png    | Bin 0 -> 58619 bytes
 .../_assets/favicon/apple-icon-180x180.png    | Bin 0 -> 81110 bytes
 _source/_assets/favicon/apple-icon-57x57.png  | Bin 0 -> 9033 bytes
 _source/_assets/favicon/apple-icon-60x60.png  | Bin 0 -> 9888 bytes
 _source/_assets/favicon/apple-icon-72x72.png  | Bin 0 -> 13938 bytes
 _source/_assets/favicon/apple-icon-76x76.png  | Bin 0 -> 15452 bytes
 .../favicon/apple-icon-precomposed.png        | Bin 0 -> 98879 bytes
 _source/_assets/favicon/apple-icon.png        | Bin 0 -> 98879 bytes
 _source/_assets/favicon/favicon-16x16.png     | Bin 0 -> 1343 bytes
 _source/_assets/favicon/favicon-32x32.png     | Bin 0 -> 3330 bytes
 _source/_assets/favicon/favicon-96x96.png     | Bin 0 -> 24180 bytes
 _source/_assets/favicon/favicon.ico           | Bin 0 -> 1150 bytes
 _source/_assets/favicon/ms-icon-144x144.png   | Bin 0 -> 52749 bytes
 _source/_assets/favicon/ms-icon-150x150.png   | Bin 0 -> 57107 bytes
 _source/_assets/favicon/ms-icon-310x310.png   | Bin 0 -> 203713 bytes
 _source/_assets/favicon/ms-icon-70x70.png     | Bin 0 -> 13201 bytes
 _source/_data/author.json                     |  10 ----
 _source/_data/site.json                       |   1 +
 _source/_includes/head.html                   |  27 +++++++--
 _source/_includes/meta.html                   |  33 +++++++++++
 _source/author.njk                            |  10 ----
 _source/manifest.json                         |   0
 _source/manifest.njk                          |  54 ++++++++++++++++++
 33 files changed, 110 insertions(+), 28 deletions(-)
 create mode 100644 _source/_assets/favicon/android-icon-144x144.png
 create mode 100644 _source/_assets/favicon/android-icon-192x192.png
 create mode 100644 _source/_assets/favicon/android-icon-36x36.png
 create mode 100644 _source/_assets/favicon/android-icon-48x48.png
 create mode 100644 _source/_assets/favicon/android-icon-72x72.png
 create mode 100644 _source/_assets/favicon/android-icon-96x96.png
 create mode 100644 _source/_assets/favicon/apple-icon-114x114.png
 create mode 100644 _source/_assets/favicon/apple-icon-120x120.png
 create mode 100644 _source/_assets/favicon/apple-icon-144x144.png
 create mode 100644 _source/_assets/favicon/apple-icon-152x152.png
 create mode 100644 _source/_assets/favicon/apple-icon-180x180.png
 create mode 100644 _source/_assets/favicon/apple-icon-57x57.png
 create mode 100644 _source/_assets/favicon/apple-icon-60x60.png
 create mode 100644 _source/_assets/favicon/apple-icon-72x72.png
 create mode 100644 _source/_assets/favicon/apple-icon-76x76.png
 create mode 100644 _source/_assets/favicon/apple-icon-precomposed.png
 create mode 100644 _source/_assets/favicon/apple-icon.png
 create mode 100644 _source/_assets/favicon/favicon-16x16.png
 create mode 100644 _source/_assets/favicon/favicon-32x32.png
 create mode 100644 _source/_assets/favicon/favicon-96x96.png
 create mode 100644 _source/_assets/favicon/favicon.ico
 create mode 100644 _source/_assets/favicon/ms-icon-144x144.png
 create mode 100644 _source/_assets/favicon/ms-icon-150x150.png
 create mode 100644 _source/_assets/favicon/ms-icon-310x310.png
 create mode 100644 _source/_assets/favicon/ms-icon-70x70.png
 delete mode 100644 _source/_data/author.json
 create mode 100644 _source/_includes/meta.html
 delete mode 100644 _source/author.njk
 delete mode 100644 _source/manifest.json
 create mode 100644 _source/manifest.njk

-- 
Memet Zx


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [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

end of thread, other threads:[~2022-10-22  7:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH website v1 4/7] add meta tag list file Memet Zx
2022-10-22  7:23 ` [PATCH website v1 5/7] add config for favicon 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox