diff --git a/docs/blog/what-is-education/index.html b/docs/blog/what-is-education/index.html index 2a9dd64..2e3282d 100644 --- a/docs/blog/what-is-education/index.html +++ b/docs/blog/what-is-education/index.html @@ -16,4 +16,4 @@ Academics system has evolved with time and got worst. Let’s see what the syste Subscribe

What is Education?


What is Education? #

Education simply means “learning”. It’s a natural process.

Ratio of components in Education: #

50% Knowledge/Understanding, 30% Skills, 20% Experience.

Education vs Academics: #

Education and Academics are not the same thing. Academics is Education based of a curriculum and an institution. Plato discovered the word while describing his school of philosophy.

Academics system has evolved with time and got worst. Let’s see what the system has become nowadays: #

Extra bad: #

Education as a concept/implementation/system is good. -Academics is good only as a concept. It’s implementation and system is always the worst and corrupted.

Activities in Education: #

Read vs Study vs Research: #

  1. Read: Reading is about watching or interpreting something/someone to gain knowledge.

  2. Study: Studying is about interpreting a topic, going deeper and gaining some conscious understanding out of it.

  3. Research: Research is about studying a topic and then contributing to it with changes from your end.

Knowledge vs Entertainment: #

Example:

  1. The first book was to provide Knowledge/Understanding, but later books became a source of Entertainment (fiction).
  2. Videos can be used for both Knowledge/Understanding and Entertainment purposes. For example, for Knowledge/Understanding, there are documentaries, tutorial videos etc. For Entertainment, there are movies, funny videos etc.
Tags:
Categories:

Comments

\ No newline at end of file +Academics is good only as a concept. It’s implementation and system is always the worst and corrupted.

Activities in Education: #

Read vs Study vs Research: #

  1. Read: Reading is about watching or interpreting something/someone to gain knowledge.

  2. Study: Studying is about interpreting a topic, going deeper and gaining some conscious understanding out of it.

  3. Research: Research is about studying a topic and then contributing to it with changes from your end.

Knowledge vs Entertainment: #

Example:

  1. The first book was to provide Knowledge/Understanding, but later books became a source of Entertainment (fiction).
  2. Videos can be used for both Knowledge/Understanding and Entertainment purposes. For example, for Knowledge/Understanding, there are documentaries, tutorial videos etc. For Entertainment, there are movies, funny videos etc.
Tags:
Categories:

Comments

\ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 73a3ddd..186cb9d 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -23,6 +23,7 @@ var BACKEND = 'https://backend.freedoms4.org/comments.php'; var POST_ID = {{ .RelPermalink | jsonify }}; var username = localStorage.getItem('f4_username'); + var isAdmin = false; var statusEl = document.getElementById('comments-status'); var listEl = document.getElementById('comments-list'); @@ -81,15 +82,22 @@ el.className = 'comment' + (depth > 0 ? ' comment--reply' : ''); el.dataset.id = c.id; - var bodyHtml = c.body === null - ? '[deleted]' + var isDeleted = c.body === null; + var deletedLabel = c.deleted_label || 'deleted'; + + var bodyHtml = isDeleted + ? '[' + escHtml(deletedLabel) + ']' : '

' + escHtml(c.body) + '

'; var actionsHtml = ''; - if (c.is_own && c.body !== null) { + + // Delete button: own comment OR admin, only if not already deleted + if (!isDeleted && (c.is_own || isAdmin)) { actionsHtml += ''; } - if (username && depth === 0) { + + // Reply button: any logged-in user can reply to any non-deleted comment at any depth + if (username && !isDeleted) { actionsHtml += ''; } @@ -118,8 +126,7 @@ .then(function (r) { return r.json(); }) .then(function (d) { if (d.success) { - el.querySelector('.comment__body').outerHTML = '[deleted]'; - delBtn.remove(); + loadComments(); } else { delBtn.disabled = false; alert(d.message || 'Failed to delete.'); @@ -158,13 +165,15 @@ }); } - // Nested replies + // Nested replies — suppressed entirely when parent is deleted var repliesEl = el.querySelector('.comment__replies'); - var replyList = Array.isArray(c.replies) ? c.replies : Object.values(c.replies || {}); - if (replyList.length) { - replyList.forEach(function (r) { - repliesEl.appendChild(renderComment(r, depth + 1)); - }); + if (!isDeleted) { + var replyList = Array.isArray(c.replies) ? c.replies : Object.values(c.replies || {}); + if (replyList.length) { + replyList.forEach(function (r) { + repliesEl.appendChild(renderComment(r, depth + 1)); + }); + } } return el; @@ -183,6 +192,8 @@ return; } + isAdmin = !!data.is_admin; + // Comment form for logged-in users if (data.logged_in) { var form = makeForm('Write a comment…', 'Post comment', function (text, done) {