1
0
Эх сурвалжийг харах

chore: add comment on docsite template

chore: add comment on docsite template
代强 3 жил өмнө
parent
commit
c003abcde5

+ 3 - 1
src/templates/postTemplate.js

@@ -253,7 +253,9 @@ const components = {
     li: ({ children }) => {
         if (Array.isArray(children)) {
             children = [...children];
-
+            
+            // For convience of adding new feature in different type, we use "if else" group instead of object or map.
+            
             if (children[0] === '【Feature】' || children[0] === '【Feat】') {
                 children[0] = <div className={'changelog-title'}>🎁【Feature】</div>;
             }