From 2513afbd54ed5b91663915173fc0d6cbc4b9b74c Mon Sep 17 00:00:00 2001 From: Dillon Date: Wed, 6 May 2020 23:11:34 +0800 Subject: feat(comment): add comment for single page and emoji config for Valine (#328) --- assets/data/emoji/apple.yml | 150 ++++++ assets/data/emoji/facebook.yml | 150 ++++++ assets/data/emoji/google.yml | 150 ++++++ assets/data/emoji/twitter.yml | 150 ++++++ assets/data/social.yaml | 511 --------------------- assets/data/social.yml | 511 +++++++++++++++++++++ exampleSite/config.toml | 7 + .../content/posts/theme-documentation-basics.en.md | 4 + .../content/posts/theme-documentation-basics.fr.md | 4 + .../posts/theme-documentation-basics.zh-cn.md | 4 + layouts/_default/single.html | 3 + layouts/partials/comment.html | 1 + layouts/partials/home/profile.html | 2 +- 13 files changed, 1135 insertions(+), 512 deletions(-) create mode 100644 assets/data/emoji/apple.yml create mode 100644 assets/data/emoji/facebook.yml create mode 100644 assets/data/emoji/google.yml create mode 100644 assets/data/emoji/twitter.yml delete mode 100644 assets/data/social.yaml create mode 100644 assets/data/social.yml diff --git a/assets/data/emoji/apple.yml b/assets/data/emoji/apple.yml new file mode 100644 index 0000000..3f9cee9 --- /dev/null +++ b/assets/data/emoji/apple.yml @@ -0,0 +1,150 @@ +emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-apple@5.0.1/img/apple/64/' +emojiMaps: + '100': 1f4af.png + grinning: 1f600.png + smiley: 1f603.png + smile: 1f604.png + grin: 1f601.png + laughing: 1f606.png + sweat_smile: 1f605.png + rolling_on_the_floor_laughing: 1f923.png + joy: 1f602.png + slightly_smiling_face: 1f642.png + upside_down_face: 1f643.png + wink: 1f609.png + blush: 1f60a.png + innocent: 1f607.png + smiling_face_with_3_hearts: 1f970.png + heart_eyes: 1f60d.png + star-struck: 1f929.png + kissing_heart: 1f618.png + kissing: 1f617.png + relaxed: 263a-fe0f.png + kissing_closed_eyes: 1f61a.png + kissing_smiling_eyes: 1f619.png + yum: 1f60b.png + stuck_out_tongue: 1f61b.png + stuck_out_tongue_winking_eye: 1f61c.png + zany_face: 1f92a.png + stuck_out_tongue_closed_eyes: 1f61d.png + money_mouth_face: 1f911.png + hugging_face: 1f917.png + face_with_hand_over_mouth: 1f92d.png + shushing_face: 1f92b.png + thinking_face: 1f914.png + zipper_mouth_face: 1f910.png + face_with_raised_eyebrow: 1f928.png + neutral_face: 1f610.png + expressionless: 1f611.png + no_mouth: 1f636.png + smirk: 1f60f.png + unamused: 1f612.png + face_with_rolling_eyes: 1f644.png + grimacing: 1f62c.png + lying_face: 1f925.png + relieved: 1f60c.png + pensive: 1f614.png + sleepy: 1f62a.png + drooling_face: 1f924.png + sleeping: 1f634.png + mask: 1f637.png + face_with_thermometer: 1f912.png + face_with_head_bandage: 1f915.png + nauseated_face: 1f922.png + face_vomiting: 1f92e.png + sneezing_face: 1f927.png + hot_face: 1f975.png + cold_face: 1f976.png + woozy_face: 1f974.png + dizzy_face: 1f635.png + exploding_head: 1f92f.png + face_with_cowboy_hat: 1f920.png + partying_face: 1f973.png + sunglasses: 1f60e.png + nerd_face: 1f913.png + face_with_monocle: 1f9d0.png + confused: 1f615.png + worried: 1f61f.png + slightly_frowning_face: 1f641.png + white_frowning_face: 2639-fe0f.png + open_mouth: 1f62e.png + hushed: 1f62f.png + astonished: 1f632.png + flushed: 1f633.png + pleading_face: 1f97a.png + frowning: 1f626.png + anguished: 1f627.png + fearful: 1f628.png + cold_sweat: 1f630.png + disappointed_relieved: 1f625.png + cry: 1f622.png + sob: 1f62d.png + scream: 1f631.png + confounded: 1f616.png + persevere: 1f623.png + disappointed: 1f61e.png + sweat: 1f613.png + weary: 1f629.png + tired_face: 1f62b.png + yawning_face: 1f971.png + triumph: 1f624.png + rage: 1f621.png + angry: 1f620.png + face_with_symbols_on_mouth: 1f92c.png + smiling_imp: 1f608.png + imp: 1f47f.png + skull: 1f480.png + skull_and_crossbones: 2620-fe0f.png + hankey: 1f4a9.png + clown_face: 1f921.png + japanese_ogre: 1f479.png + japanese_goblin: 1f47a.png + ghost: 1f47b.png + alien: 1f47d.png + space_invader: 1f47e.png + robot_face: 1f916.png + smiley_cat: 1f63a.png + smile_cat: 1f638.png + joy_cat: 1f639.png + heart_eyes_cat: 1f63b.png + smirk_cat: 1f63c.png + kissing_cat: 1f63d.png + scream_cat: 1f640.png + crying_cat_face: 1f63f.png + pouting_cat: 1f63e.png + see_no_evil: 1f648.png + hear_no_evil: 1f649.png + speak_no_evil: 1f64a.png + kiss: 1f48b.png + love_letter: 1f48c.png + cupid: 1f498.png + gift_heart: 1f49d.png + sparkling_heart: 1f496.png + heartpulse: 1f497.png + heartbeat: 1f493.png + revolving_hearts: 1f49e.png + two_hearts: 1f495.png + heart_decoration: 1f49f.png + heavy_heart_exclamation_mark_ornament: 2763-fe0f.png + broken_heart: 1f494.png + heart: 2764-fe0f.png + orange_heart: 1f9e1.png + yellow_heart: 1f49b.png + green_heart: 1f49a.png + blue_heart: 1f499.png + purple_heart: 1f49c.png + brown_heart: 1f90e.png + black_heart: 1f5a4.png + white_heart: 1f90d.png + anger: 1f4a2.png + boom: 1f4a5.png + dizzy: 1f4ab.png + sweat_drops: 1f4a6.png + dash: 1f4a8.png + hole: 1f573-fe0f.png + bomb: 1f4a3.png + speech_balloon: 1f4ac.png + left_speech_bubble: 1f5e8-fe0f.png + right_anger_bubble: 1f5ef-fe0f.png + thought_balloon: 1f4ad.png + zzz: 1f4a4.png diff --git a/assets/data/emoji/facebook.yml b/assets/data/emoji/facebook.yml new file mode 100644 index 0000000..f987491 --- /dev/null +++ b/assets/data/emoji/facebook.yml @@ -0,0 +1,150 @@ +emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@5.0.1/img/facebook/64/' +emojiMaps: + '100': 1f4af.png + grinning: 1f600.png + smiley: 1f603.png + smile: 1f604.png + grin: 1f601.png + laughing: 1f606.png + sweat_smile: 1f605.png + rolling_on_the_floor_laughing: 1f923.png + joy: 1f602.png + slightly_smiling_face: 1f642.png + upside_down_face: 1f643.png + wink: 1f609.png + blush: 1f60a.png + innocent: 1f607.png + smiling_face_with_3_hearts: 1f970.png + heart_eyes: 1f60d.png + star-struck: 1f929.png + kissing_heart: 1f618.png + kissing: 1f617.png + relaxed: 263a-fe0f.png + kissing_closed_eyes: 1f61a.png + kissing_smiling_eyes: 1f619.png + yum: 1f60b.png + stuck_out_tongue: 1f61b.png + stuck_out_tongue_winking_eye: 1f61c.png + zany_face: 1f92a.png + stuck_out_tongue_closed_eyes: 1f61d.png + money_mouth_face: 1f911.png + hugging_face: 1f917.png + face_with_hand_over_mouth: 1f92d.png + shushing_face: 1f92b.png + thinking_face: 1f914.png + zipper_mouth_face: 1f910.png + face_with_raised_eyebrow: 1f928.png + neutral_face: 1f610.png + expressionless: 1f611.png + no_mouth: 1f636.png + smirk: 1f60f.png + unamused: 1f612.png + face_with_rolling_eyes: 1f644.png + grimacing: 1f62c.png + lying_face: 1f925.png + relieved: 1f60c.png + pensive: 1f614.png + sleepy: 1f62a.png + drooling_face: 1f924.png + sleeping: 1f634.png + mask: 1f637.png + face_with_thermometer: 1f912.png + face_with_head_bandage: 1f915.png + nauseated_face: 1f922.png + face_vomiting: 1f92e.png + sneezing_face: 1f927.png + hot_face: 1f975.png + cold_face: 1f976.png + woozy_face: 1f974.png + dizzy_face: 1f635.png + exploding_head: 1f92f.png + face_with_cowboy_hat: 1f920.png + partying_face: 1f973.png + sunglasses: 1f60e.png + nerd_face: 1f913.png + face_with_monocle: 1f9d0.png + confused: 1f615.png + worried: 1f61f.png + slightly_frowning_face: 1f641.png + white_frowning_face: 2639-fe0f.png + open_mouth: 1f62e.png + hushed: 1f62f.png + astonished: 1f632.png + flushed: 1f633.png + pleading_face: 1f97a.png + frowning: 1f626.png + anguished: 1f627.png + fearful: 1f628.png + cold_sweat: 1f630.png + disappointed_relieved: 1f625.png + cry: 1f622.png + sob: 1f62d.png + scream: 1f631.png + confounded: 1f616.png + persevere: 1f623.png + disappointed: 1f61e.png + sweat: 1f613.png + weary: 1f629.png + tired_face: 1f62b.png + yawning_face: 1f971.png + triumph: 1f624.png + rage: 1f621.png + angry: 1f620.png + face_with_symbols_on_mouth: 1f92c.png + smiling_imp: 1f608.png + imp: 1f47f.png + skull: 1f480.png + skull_and_crossbones: 2620-fe0f.png + hankey: 1f4a9.png + clown_face: 1f921.png + japanese_ogre: 1f479.png + japanese_goblin: 1f47a.png + ghost: 1f47b.png + alien: 1f47d.png + space_invader: 1f47e.png + robot_face: 1f916.png + smiley_cat: 1f63a.png + smile_cat: 1f638.png + joy_cat: 1f639.png + heart_eyes_cat: 1f63b.png + smirk_cat: 1f63c.png + kissing_cat: 1f63d.png + scream_cat: 1f640.png + crying_cat_face: 1f63f.png + pouting_cat: 1f63e.png + see_no_evil: 1f648.png + hear_no_evil: 1f649.png + speak_no_evil: 1f64a.png + kiss: 1f48b.png + love_letter: 1f48c.png + cupid: 1f498.png + gift_heart: 1f49d.png + sparkling_heart: 1f496.png + heartpulse: 1f497.png + heartbeat: 1f493.png + revolving_hearts: 1f49e.png + two_hearts: 1f495.png + heart_decoration: 1f49f.png + heavy_heart_exclamation_mark_ornament: 2763-fe0f.png + broken_heart: 1f494.png + heart: 2764-fe0f.png + orange_heart: 1f9e1.png + yellow_heart: 1f49b.png + green_heart: 1f49a.png + blue_heart: 1f499.png + purple_heart: 1f49c.png + brown_heart: 1f90e.png + black_heart: 1f5a4.png + white_heart: 1f90d.png + anger: 1f4a2.png + boom: 1f4a5.png + dizzy: 1f4ab.png + sweat_drops: 1f4a6.png + dash: 1f4a8.png + hole: 1f573-fe0f.png + bomb: 1f4a3.png + speech_balloon: 1f4ac.png + left_speech_bubble: 1f5e8-fe0f.png + right_anger_bubble: 1f5ef-fe0f.png + thought_balloon: 1f4ad.png + zzz: 1f4a4.png diff --git a/assets/data/emoji/google.yml b/assets/data/emoji/google.yml new file mode 100644 index 0000000..7137ccb --- /dev/null +++ b/assets/data/emoji/google.yml @@ -0,0 +1,150 @@ +emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-google@5.0.1/img/google/64/' +emojiMaps: + '100': 1f4af.png + grinning: 1f600.png + smiley: 1f603.png + smile: 1f604.png + grin: 1f601.png + laughing: 1f606.png + sweat_smile: 1f605.png + rolling_on_the_floor_laughing: 1f923.png + joy: 1f602.png + slightly_smiling_face: 1f642.png + upside_down_face: 1f643.png + wink: 1f609.png + blush: 1f60a.png + innocent: 1f607.png + smiling_face_with_3_hearts: 1f970.png + heart_eyes: 1f60d.png + star-struck: 1f929.png + kissing_heart: 1f618.png + kissing: 1f617.png + relaxed: 263a-fe0f.png + kissing_closed_eyes: 1f61a.png + kissing_smiling_eyes: 1f619.png + yum: 1f60b.png + stuck_out_tongue: 1f61b.png + stuck_out_tongue_winking_eye: 1f61c.png + zany_face: 1f92a.png + stuck_out_tongue_closed_eyes: 1f61d.png + money_mouth_face: 1f911.png + hugging_face: 1f917.png + face_with_hand_over_mouth: 1f92d.png + shushing_face: 1f92b.png + thinking_face: 1f914.png + zipper_mouth_face: 1f910.png + face_with_raised_eyebrow: 1f928.png + neutral_face: 1f610.png + expressionless: 1f611.png + no_mouth: 1f636.png + smirk: 1f60f.png + unamused: 1f612.png + face_with_rolling_eyes: 1f644.png + grimacing: 1f62c.png + lying_face: 1f925.png + relieved: 1f60c.png + pensive: 1f614.png + sleepy: 1f62a.png + drooling_face: 1f924.png + sleeping: 1f634.png + mask: 1f637.png + face_with_thermometer: 1f912.png + face_with_head_bandage: 1f915.png + nauseated_face: 1f922.png + face_vomiting: 1f92e.png + sneezing_face: 1f927.png + hot_face: 1f975.png + cold_face: 1f976.png + woozy_face: 1f974.png + dizzy_face: 1f635.png + exploding_head: 1f92f.png + face_with_cowboy_hat: 1f920.png + partying_face: 1f973.png + sunglasses: 1f60e.png + nerd_face: 1f913.png + face_with_monocle: 1f9d0.png + confused: 1f615.png + worried: 1f61f.png + slightly_frowning_face: 1f641.png + white_frowning_face: 2639-fe0f.png + open_mouth: 1f62e.png + hushed: 1f62f.png + astonished: 1f632.png + flushed: 1f633.png + pleading_face: 1f97a.png + frowning: 1f626.png + anguished: 1f627.png + fearful: 1f628.png + cold_sweat: 1f630.png + disappointed_relieved: 1f625.png + cry: 1f622.png + sob: 1f62d.png + scream: 1f631.png + confounded: 1f616.png + persevere: 1f623.png + disappointed: 1f61e.png + sweat: 1f613.png + weary: 1f629.png + tired_face: 1f62b.png + yawning_face: 1f971.png + triumph: 1f624.png + rage: 1f621.png + angry: 1f620.png + face_with_symbols_on_mouth: 1f92c.png + smiling_imp: 1f608.png + imp: 1f47f.png + skull: 1f480.png + skull_and_crossbones: 2620-fe0f.png + hankey: 1f4a9.png + clown_face: 1f921.png + japanese_ogre: 1f479.png + japanese_goblin: 1f47a.png + ghost: 1f47b.png + alien: 1f47d.png + space_invader: 1f47e.png + robot_face: 1f916.png + smiley_cat: 1f63a.png + smile_cat: 1f638.png + joy_cat: 1f639.png + heart_eyes_cat: 1f63b.png + smirk_cat: 1f63c.png + kissing_cat: 1f63d.png + scream_cat: 1f640.png + crying_cat_face: 1f63f.png + pouting_cat: 1f63e.png + see_no_evil: 1f648.png + hear_no_evil: 1f649.png + speak_no_evil: 1f64a.png + kiss: 1f48b.png + love_letter: 1f48c.png + cupid: 1f498.png + gift_heart: 1f49d.png + sparkling_heart: 1f496.png + heartpulse: 1f497.png + heartbeat: 1f493.png + revolving_hearts: 1f49e.png + two_hearts: 1f495.png + heart_decoration: 1f49f.png + heavy_heart_exclamation_mark_ornament: 2763-fe0f.png + broken_heart: 1f494.png + heart: 2764-fe0f.png + orange_heart: 1f9e1.png + yellow_heart: 1f49b.png + green_heart: 1f49a.png + blue_heart: 1f499.png + purple_heart: 1f49c.png + brown_heart: 1f90e.png + black_heart: 1f5a4.png + white_heart: 1f90d.png + anger: 1f4a2.png + boom: 1f4a5.png + dizzy: 1f4ab.png + sweat_drops: 1f4a6.png + dash: 1f4a8.png + hole: 1f573-fe0f.png + bomb: 1f4a3.png + speech_balloon: 1f4ac.png + left_speech_bubble: 1f5e8-fe0f.png + right_anger_bubble: 1f5ef-fe0f.png + thought_balloon: 1f4ad.png + zzz: 1f4a4.png diff --git a/assets/data/emoji/twitter.yml b/assets/data/emoji/twitter.yml new file mode 100644 index 0000000..97365c6 --- /dev/null +++ b/assets/data/emoji/twitter.yml @@ -0,0 +1,150 @@ +emojiCDN: 'https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@5.0.1/img/twitter/64/' +emojiMaps: + '100': 1f4af.png + grinning: 1f600.png + smiley: 1f603.png + smile: 1f604.png + grin: 1f601.png + laughing: 1f606.png + sweat_smile: 1f605.png + rolling_on_the_floor_laughing: 1f923.png + joy: 1f602.png + slightly_smiling_face: 1f642.png + upside_down_face: 1f643.png + wink: 1f609.png + blush: 1f60a.png + innocent: 1f607.png + smiling_face_with_3_hearts: 1f970.png + heart_eyes: 1f60d.png + star-struck: 1f929.png + kissing_heart: 1f618.png + kissing: 1f617.png + relaxed: 263a-fe0f.png + kissing_closed_eyes: 1f61a.png + kissing_smiling_eyes: 1f619.png + yum: 1f60b.png + stuck_out_tongue: 1f61b.png + stuck_out_tongue_winking_eye: 1f61c.png + zany_face: 1f92a.png + stuck_out_tongue_closed_eyes: 1f61d.png + money_mouth_face: 1f911.png + hugging_face: 1f917.png + face_with_hand_over_mouth: 1f92d.png + shushing_face: 1f92b.png + thinking_face: 1f914.png + zipper_mouth_face: 1f910.png + face_with_raised_eyebrow: 1f928.png + neutral_face: 1f610.png + expressionless: 1f611.png + no_mouth: 1f636.png + smirk: 1f60f.png + unamused: 1f612.png + face_with_rolling_eyes: 1f644.png + grimacing: 1f62c.png + lying_face: 1f925.png + relieved: 1f60c.png + pensive: 1f614.png + sleepy: 1f62a.png + drooling_face: 1f924.png + sleeping: 1f634.png + mask: 1f637.png + face_with_thermometer: 1f912.png + face_with_head_bandage: 1f915.png + nauseated_face: 1f922.png + face_vomiting: 1f92e.png + sneezing_face: 1f927.png + hot_face: 1f975.png + cold_face: 1f976.png + woozy_face: 1f974.png + dizzy_face: 1f635.png + exploding_head: 1f92f.png + face_with_cowboy_hat: 1f920.png + partying_face: 1f973.png + sunglasses: 1f60e.png + nerd_face: 1f913.png + face_with_monocle: 1f9d0.png + confused: 1f615.png + worried: 1f61f.png + slightly_frowning_face: 1f641.png + white_frowning_face: 2639-fe0f.png + open_mouth: 1f62e.png + hushed: 1f62f.png + astonished: 1f632.png + flushed: 1f633.png + pleading_face: 1f97a.png + frowning: 1f626.png + anguished: 1f627.png + fearful: 1f628.png + cold_sweat: 1f630.png + disappointed_relieved: 1f625.png + cry: 1f622.png + sob: 1f62d.png + scream: 1f631.png + confounded: 1f616.png + persevere: 1f623.png + disappointed: 1f61e.png + sweat: 1f613.png + weary: 1f629.png + tired_face: 1f62b.png + yawning_face: 1f971.png + triumph: 1f624.png + rage: 1f621.png + angry: 1f620.png + face_with_symbols_on_mouth: 1f92c.png + smiling_imp: 1f608.png + imp: 1f47f.png + skull: 1f480.png + skull_and_crossbones: 2620-fe0f.png + hankey: 1f4a9.png + clown_face: 1f921.png + japanese_ogre: 1f479.png + japanese_goblin: 1f47a.png + ghost: 1f47b.png + alien: 1f47d.png + space_invader: 1f47e.png + robot_face: 1f916.png + smiley_cat: 1f63a.png + smile_cat: 1f638.png + joy_cat: 1f639.png + heart_eyes_cat: 1f63b.png + smirk_cat: 1f63c.png + kissing_cat: 1f63d.png + scream_cat: 1f640.png + crying_cat_face: 1f63f.png + pouting_cat: 1f63e.png + see_no_evil: 1f648.png + hear_no_evil: 1f649.png + speak_no_evil: 1f64a.png + kiss: 1f48b.png + love_letter: 1f48c.png + cupid: 1f498.png + gift_heart: 1f49d.png + sparkling_heart: 1f496.png + heartpulse: 1f497.png + heartbeat: 1f493.png + revolving_hearts: 1f49e.png + two_hearts: 1f495.png + heart_decoration: 1f49f.png + heavy_heart_exclamation_mark_ornament: 2763-fe0f.png + broken_heart: 1f494.png + heart: 2764-fe0f.png + orange_heart: 1f9e1.png + yellow_heart: 1f49b.png + green_heart: 1f49a.png + blue_heart: 1f499.png + purple_heart: 1f49c.png + brown_heart: 1f90e.png + black_heart: 1f5a4.png + white_heart: 1f90d.png + anger: 1f4a2.png + boom: 1f4a5.png + dizzy: 1f4ab.png + sweat_drops: 1f4a6.png + dash: 1f4a8.png + hole: 1f573-fe0f.png + bomb: 1f4a3.png + speech_balloon: 1f4ac.png + left_speech_bubble: 1f5e8-fe0f.png + right_anger_bubble: 1f5ef-fe0f.png + thought_balloon: 1f4ad.png + zzz: 1f4a4.png diff --git a/assets/data/social.yaml b/assets/data/social.yaml deleted file mode 100644 index 007a441..0000000 --- a/assets/data/social.yaml +++ /dev/null @@ -1,511 +0,0 @@ -# 001: Github -github: - weight: 1 - prefix: https://github.com/ - title: GitHub - icon: - class: fab fa-github-alt fa-fw - -# 002: LinkedIn -linkedin: - weight: 2 - prefix: https://linkedin.com/in/ - title: LinkedIn - icon: - class: fab fa-linkedin fa-fw - -# 003: Twitter -twitter: - weight: 3 - prefix: https://twitter.com/ - title: Twitter - icon: - class: fab fa-twitter fa-fw - -# 004: Instagram -instagram: - weight: 4 - prefix: https://www.instagram.com/ - title: Instagram - icon: - class: fab fa-instagram fa-fw - -# 005: facebook -facebook: - weight: 5 - prefix: https://facebook.com/ - title: facebook - icon: - class: fab fa-facebook fa-fw - -# 006: Telegram -telegram: - weight: 6 - prefix: https://t.me/ - title: Telegram - icon: - class: fab fa-telegram-plane fa-fw - -# 007: Medium -medium: - weight: 7 - prefix: https://medium.com/ - title: Medium - icon: - class: fab fa-medium fa-fw - -# 008: GitLab -gitlab: - weight: 8 - prefix: https://gitlab.com/ - title: GitLab - icon: - class: fab fa-gitlab fa-fw - -# 009: YouTube Legacy -youtubelegacy: - weight: 9 - prefix: https://www.youtube.com/user/ - title: YouTube - icon: - class: fab fa-youtube fa-fw - -# 010: YouTube Custom -youtubecustom: - weight: 10 - prefix: https://www.youtube.com/c/ - title: YouTube - icon: - class: fab fa-youtube fa-fw - -# 011: YouTube Channel -youtubechannel: - weight: 11 - prefix: https://www.youtube.com/channel/ - title: YouTube - icon: - class: fab fa-youtube fa-fw - -# 012: Tumblr -tumblr: - weight: 12 - template: https://%s.tumblr.com/ - title: Tumblr - icon: - class: fab fa-tumblr fa-fw - -# 013: Quora -quora: - weight: 13 - prefix: https://www.quora.com/profile/ - title: Quora - icon: - class: fab fa-quora fa-fw - -# 014: Keybase -keybase: - weight: 14 - prefix: https://keybase.io/ - title: Keybase - icon: - class: fab fa-keybase fa-fw - -# 015: Pinterest -pinterest: - weight: 15 - prefix: https://www.pinterest.com/ - title: Pinterest - icon: - class: fab fa-pinterest fa-fw - -# 016: Reddit -reddit: - weight: 16 - prefix: https://www.reddit.com/user/ - title: Reddit - icon: - class: fab fa-reddit fa-fw - -# 017: CodePen -codepen: - weight: 17 - prefix: https://codepen.io/ - title: CodePen - icon: - class: fab fa-codepen fa-fw - -# 018: freeCodeCamp -freecodecamp: - weight: 18 - prefix: https://freecodecamp.org/ - title: freeCodeCamp - icon: - class: fab fa-free-code-camp fa-fw - -# 019: Bitbucket -bitbucket: - weight: 19 - prefix: https://bitbucket.org/ - title: Bitbucket - icon: - class: fab fa-bitbucket fa-fw - -# 020: Stack Overflow -stackoverflow: - weight: 20 - prefix: https://stackoverflow.com/users/ - title: Stack Overflow - icon: - class: fab fa-codepen fa-fw - -# 021: 微博 -weibo: - weight: 21 - prefix: https://weibo.com/ - title: 微博 - icon: - class: fab fa-weibo fa-fw - -# 022: OK.RU -odnoklassniki: - weight: 22 - prefix: https://ok.ru/ - title: OK.RU - icon: - class: fab fa-odnoklassniki fa-fw - -# 023: VK -vk: - weight: 23 - prefix: https://vk.com/ - title: VK - icon: - class: fab fa-vk fa-fw - -# 024: Flickr -flickr: - weight: 24 - prefix: https://www.flickr.com/photos/ - title: Flickr - icon: - class: fab fa-flickr fa-fw - -# 025: Xing -xing: - weight: 25 - prefix: https://www.xing.com/profile/ - title: Xing - icon: - class: fab fa-xing fa-fw - -# 026: Snapchat -snapchat: - weight: 26 - prefix: https://www.snapchat.com/add/ - title: Snapchat - icon: - class: fab fa-snapchat fa-fw - -# 027: SoundCloud -soundcloud: - weight: 27 - prefix: https://soundcloud.com/ - title: SoundCloud - icon: - class: fab fa-soundcloud fa-fw - -# 028: Spotify -spotify: - weight: 28 - prefix: https://open.spotify.com/user/ - title: Spotify - icon: - class: fab fa-spotify fa-fw - -# 029: Bandcamp -bandcamp: - weight: 29 - template: https://%s.bandcamp.com/ - title: Bandcamp - icon: - class: fab fa-bandcamp fa-fw - -# 030: PayPal -paypal: - weight: 30 - prefix: https://paypal.me/ - title: PayPal - icon: - class: fab fa-paypal fa-fw - -# 031: 500px -fivehundredpx: - weight: 31 - prefix: https://500px.com/ - title: 500px - icon: - class: fab fa-500px fa-fw - -# 032: Mix -mix: - weight: 32 - prefix: https://mix.com/ - title: Mix - icon: - class: fab fa-mix fa-fw - -# 033: Goodreads -goodreads: - weight: 33 - prefix: https://www.goodreads.com/user/show/ - title: Goodreads - icon: - class: fab fa-goodreads fa-fw - -# 034: Last.fm -lastfm: - weight: 34 - prefix: https://www.last.fm/user/ - title: Last.fm - icon: - class: fab fa-lastfm fa-fw - -# 035: Foursquare -foursquare: - weight: 35 - prefix: https://foursquare.com/ - title: Foursquare - icon: - class: fab fa-foursquare fa-fw - -# 036: Hacker News -hackernews: - weight: 36 - template: https://news.ycombinator.com/user?id=%s - title: Hacker News - icon: - class: fab fa-hacker-news fa-fw - -# 037: Kickstarter -kickstarter: - weight: 37 - prefix: https://kickstarter.com/profile/ - title: Kickstarter - icon: - class: fab fa-kickstarter fa-fw - -# 038: Patreon -patreon: - weight: 38 - prefix: https://patreon.com/ - title: Patreon - icon: - class: fab fa-patreon fa-fw - -# 039: Steam -steam: - weight: 39 - prefix: https://steamcommunity.com/id/ - title: Steam - icon: - class: fab fa-steam fa-fw - -# 040: Twitch -twitch: - weight: 40 - prefix: https://www.twitch.tv/ - title: Twitch - icon: - class: fab fa-twitch fa-fw - -# 041: Strava -strava: - weight: 41 - prefix: https://www.strava.com/athletes/ - title: Strava - icon: - class: fab fa-strava fa-fw - -# 042: Skype -skype: - weight: 42 - template: "skype:" - title: Skype - icon: - class: fab fa-skype fa-fw - -# 043: WhatsApp -whatsapp: - weight: 43 - prefix: https://wa.me/ - title: WhatsApp - icon: - class: fab fa-whatsapp fa-fw - -# 044: 知乎 -zhihu: - weight: 44 - prefix: https://www.zhihu.com/people/ - title: 知乎 - icon: - simpleicons: zhihu - -# 045: 豆瓣 -douban: - weight: 45 - prefix: https://www.douban.com/people/ - title: 豆瓣 - icon: - simpleicons: douban - -# 046: Angellist -angellist: - weight: 46 - prefix: https://angel.co/ - title: Angellist - icon: - class: fab fa-angellist fa-fw - -# 047: SlideShare -slideshare: - weight: 47 - prefix: https://slideshare.com/ - title: SlideShare - icon: - class: fab fa-slideshare fa-fw - -# 048: JSFiddle -jsfiddle: - weight: 48 - prefix: https://jsfiddle.com/ - title: JSFiddle - icon: - class: fab fa-jsfiddle fa-fw - -# 049: DeviantArt -deviantart: - weight: 49 - template: https://%s.deviantart.com/ - title: DeviantArt - icon: - class: fab fa-deviantart fa-fw - -# 050: Behance -behance: - weight: 50 - prefix: https://behance.net/ - title: Behance - icon: - class: fab fa-behance fa-fw - -# 051: Dribbble -dribbble: - weight: 51 - prefix: https://dribbble.com/ - title: Dribbble - icon: - class: fab fa-dribbble fa-fw - -# 052: WordPress -wordpress: - weight: 52 - template: https://%s.wordpress.com/ - title: WordPress - icon: - class: fab fa-wordpress fa-fw - -# 053: Vine -vine: - weight: 53 - prefix: https://vine.co/ - title: Vine - icon: - class: fab fa-vine fa-fw - -# 054: Google Scholar -googlescholar: - weight: 54 - template: https://scholar.google.com/citations?%s - title: Google Scholar - icon: - simpleicons: googlescholar - -# 055: ResearchGate -researchgate: - weight: 55 - prefix: https://www.researchgate.net/profile/ - title: ResearchGate - icon: - class: fab fa-researchgate fa-fw - -# 056: Mastodon -mastodon: - weight: 56 - prefix: https://mastodon.social/ - title: Mastodon - icon: - class: fab fa-mastodon fa-fw - -# 057: Thingiverse -thingiverse: - weight: 57 - prefix: https://www.thingiverse.com/ - title: Thingiverse - icon: - src: svg/icons/thingiverse.svg - -# 058: Dev.To -devto: - weight: 58 - prefix: https://dev.to/ - title: Dev.To - icon: - class: fab fa-dev fa-fw - -# 059: Gitea -gitea: - weight: 59 - title: Gitea - icon: - simpleicons: gitea - -# 060: XMPP -xmpp: - weight: 60 - template: xmpp:%s - title: XMPP - icon: - simpleicons: xmpp - -# 061: Matrix -matrix: - weight: 61 - prefix: https://matrix.to/#/ - title: Matrix - icon: - simpleicons: matrix - -# 062: bilibili -bilibili: - weight: 62 - prefix: https://space.bilibili.com/ - title: bilibili - icon: - src: svg/icons/bilibili.svg - -# 063: Email -email: - weight: 63 - template: mailto:%s - title: Email - icon: - class: far fa-envelope fa-fw - -# 064: RSS -rss: - weight: 64 - url: /index.xml - title: RSS - newtab: true - icon: - class: fas fa-rss fa-fw diff --git a/assets/data/social.yml b/assets/data/social.yml new file mode 100644 index 0000000..007a441 --- /dev/null +++ b/assets/data/social.yml @@ -0,0 +1,511 @@ +# 001: Github +github: + weight: 1 + prefix: https://github.com/ + title: GitHub + icon: + class: fab fa-github-alt fa-fw + +# 002: LinkedIn +linkedin: + weight: 2 + prefix: https://linkedin.com/in/ + title: LinkedIn + icon: + class: fab fa-linkedin fa-fw + +# 003: Twitter +twitter: + weight: 3 + prefix: https://twitter.com/ + title: Twitter + icon: + class: fab fa-twitter fa-fw + +# 004: Instagram +instagram: + weight: 4 + prefix: https://www.instagram.com/ + title: Instagram + icon: + class: fab fa-instagram fa-fw + +# 005: facebook +facebook: + weight: 5 + prefix: https://facebook.com/ + title: facebook + icon: + class: fab fa-facebook fa-fw + +# 006: Telegram +telegram: + weight: 6 + prefix: https://t.me/ + title: Telegram + icon: + class: fab fa-telegram-plane fa-fw + +# 007: Medium +medium: + weight: 7 + prefix: https://medium.com/ + title: Medium + icon: + class: fab fa-medium fa-fw + +# 008: GitLab +gitlab: + weight: 8 + prefix: https://gitlab.com/ + title: GitLab + icon: + class: fab fa-gitlab fa-fw + +# 009: YouTube Legacy +youtubelegacy: + weight: 9 + prefix: https://www.youtube.com/user/ + title: YouTube + icon: + class: fab fa-youtube fa-fw + +# 010: YouTube Custom +youtubecustom: + weight: 10 + prefix: https://www.youtube.com/c/ + title: YouTube + icon: + class: fab fa-youtube fa-fw + +# 011: YouTube Channel +youtubechannel: + weight: 11 + prefix: https://www.youtube.com/channel/ + title: YouTube + icon: + class: fab fa-youtube fa-fw + +# 012: Tumblr +tumblr: + weight: 12 + template: https://%s.tumblr.com/ + title: Tumblr + icon: + class: fab fa-tumblr fa-fw + +# 013: Quora +quora: + weight: 13 + prefix: https://www.quora.com/profile/ + title: Quora + icon: + class: fab fa-quora fa-fw + +# 014: Keybase +keybase: + weight: 14 + prefix: https://keybase.io/ + title: Keybase + icon: + class: fab fa-keybase fa-fw + +# 015: Pinterest +pinterest: + weight: 15 + prefix: https://www.pinterest.com/ + title: Pinterest + icon: + class: fab fa-pinterest fa-fw + +# 016: Reddit +reddit: + weight: 16 + prefix: https://www.reddit.com/user/ + title: Reddit + icon: + class: fab fa-reddit fa-fw + +# 017: CodePen +codepen: + weight: 17 + prefix: https://codepen.io/ + title: CodePen + icon: + class: fab fa-codepen fa-fw + +# 018: freeCodeCamp +freecodecamp: + weight: 18 + prefix: https://freecodecamp.org/ + title: freeCodeCamp + icon: + class: fab fa-free-code-camp fa-fw + +# 019: Bitbucket +bitbucket: + weight: 19 + prefix: https://bitbucket.org/ + title: Bitbucket + icon: + class: fab fa-bitbucket fa-fw + +# 020: Stack Overflow +stackoverflow: + weight: 20 + prefix: https://stackoverflow.com/users/ + title: Stack Overflow + icon: + class: fab fa-codepen fa-fw + +# 021: 微博 +weibo: + weight: 21 + prefix: https://weibo.com/ + title: 微博 + icon: + class: fab fa-weibo fa-fw + +# 022: OK.RU +odnoklassniki: + weight: 22 + prefix: https://ok.ru/ + title: OK.RU + icon: + class: fab fa-odnoklassniki fa-fw + +# 023: VK +vk: + weight: 23 + prefix: https://vk.com/ + title: VK + icon: + class: fab fa-vk fa-fw + +# 024: Flickr +flickr: + weight: 24 + prefix: https://www.flickr.com/photos/ + title: Flickr + icon: + class: fab fa-flickr fa-fw + +# 025: Xing +xing: + weight: 25 + prefix: https://www.xing.com/profile/ + title: Xing + icon: + class: fab fa-xing fa-fw + +# 026: Snapchat +snapchat: + weight: 26 + prefix: https://www.snapchat.com/add/ + title: Snapchat + icon: + class: fab fa-snapchat fa-fw + +# 027: SoundCloud +soundcloud: + weight: 27 + prefix: https://soundcloud.com/ + title: SoundCloud + icon: + class: fab fa-soundcloud fa-fw + +# 028: Spotify +spotify: + weight: 28 + prefix: https://open.spotify.com/user/ + title: Spotify + icon: + class: fab fa-spotify fa-fw + +# 029: Bandcamp +bandcamp: + weight: 29 + template: https://%s.bandcamp.com/ + title: Bandcamp + icon: + class: fab fa-bandcamp fa-fw + +# 030: PayPal +paypal: + weight: 30 + prefix: https://paypal.me/ + title: PayPal + icon: + class: fab fa-paypal fa-fw + +# 031: 500px +fivehundredpx: + weight: 31 + prefix: https://500px.com/ + title: 500px + icon: + class: fab fa-500px fa-fw + +# 032: Mix +mix: + weight: 32 + prefix: https://mix.com/ + title: Mix + icon: + class: fab fa-mix fa-fw + +# 033: Goodreads +goodreads: + weight: 33 + prefix: https://www.goodreads.com/user/show/ + title: Goodreads + icon: + class: fab fa-goodreads fa-fw + +# 034: Last.fm +lastfm: + weight: 34 + prefix: https://www.last.fm/user/ + title: Last.fm + icon: + class: fab fa-lastfm fa-fw + +# 035: Foursquare +foursquare: + weight: 35 + prefix: https://foursquare.com/ + title: Foursquare + icon: + class: fab fa-foursquare fa-fw + +# 036: Hacker News +hackernews: + weight: 36 + template: https://news.ycombinator.com/user?id=%s + title: Hacker News + icon: + class: fab fa-hacker-news fa-fw + +# 037: Kickstarter +kickstarter: + weight: 37 + prefix: https://kickstarter.com/profile/ + title: Kickstarter + icon: + class: fab fa-kickstarter fa-fw + +# 038: Patreon +patreon: + weight: 38 + prefix: https://patreon.com/ + title: Patreon + icon: + class: fab fa-patreon fa-fw + +# 039: Steam +steam: + weight: 39 + prefix: https://steamcommunity.com/id/ + title: Steam + icon: + class: fab fa-steam fa-fw + +# 040: Twitch +twitch: + weight: 40 + prefix: https://www.twitch.tv/ + title: Twitch + icon: + class: fab fa-twitch fa-fw + +# 041: Strava +strava: + weight: 41 + prefix: https://www.strava.com/athletes/ + title: Strava + icon: + class: fab fa-strava fa-fw + +# 042: Skype +skype: + weight: 42 + template: "skype:" + title: Skype + icon: + class: fab fa-skype fa-fw + +# 043: WhatsApp +whatsapp: + weight: 43 + prefix: https://wa.me/ + title: WhatsApp + icon: + class: fab fa-whatsapp fa-fw + +# 044: 知乎 +zhihu: + weight: 44 + prefix: https://www.zhihu.com/people/ + title: 知乎 + icon: + simpleicons: zhihu + +# 045: 豆瓣 +douban: + weight: 45 + prefix: https://www.douban.com/people/ + title: 豆瓣 + icon: + simpleicons: douban + +# 046: Angellist +angellist: + weight: 46 + prefix: https://angel.co/ + title: Angellist + icon: + class: fab fa-angellist fa-fw + +# 047: SlideShare +slideshare: + weight: 47 + prefix: https://slideshare.com/ + title: SlideShare + icon: + class: fab fa-slideshare fa-fw + +# 048: JSFiddle +jsfiddle: + weight: 48 + prefix: https://jsfiddle.com/ + title: JSFiddle + icon: + class: fab fa-jsfiddle fa-fw + +# 049: DeviantArt +deviantart: + weight: 49 + template: https://%s.deviantart.com/ + title: DeviantArt + icon: + class: fab fa-deviantart fa-fw + +# 050: Behance +behance: + weight: 50 + prefix: https://behance.net/ + title: Behance + icon: + class: fab fa-behance fa-fw + +# 051: Dribbble +dribbble: + weight: 51 + prefix: https://dribbble.com/ + title: Dribbble + icon: + class: fab fa-dribbble fa-fw + +# 052: WordPress +wordpress: + weight: 52 + template: https://%s.wordpress.com/ + title: WordPress + icon: + class: fab fa-wordpress fa-fw + +# 053: Vine +vine: + weight: 53 + prefix: https://vine.co/ + title: Vine + icon: + class: fab fa-vine fa-fw + +# 054: Google Scholar +googlescholar: + weight: 54 + template: https://scholar.google.com/citations?%s + title: Google Scholar + icon: + simpleicons: googlescholar + +# 055: ResearchGate +researchgate: + weight: 55 + prefix: https://www.researchgate.net/profile/ + title: ResearchGate + icon: + class: fab fa-researchgate fa-fw + +# 056: Mastodon +mastodon: + weight: 56 + prefix: https://mastodon.social/ + title: Mastodon + icon: + class: fab fa-mastodon fa-fw + +# 057: Thingiverse +thingiverse: + weight: 57 + prefix: https://www.thingiverse.com/ + title: Thingiverse + icon: + src: svg/icons/thingiverse.svg + +# 058: Dev.To +devto: + weight: 58 + prefix: https://dev.to/ + title: Dev.To + icon: + class: fab fa-dev fa-fw + +# 059: Gitea +gitea: + weight: 59 + title: Gitea + icon: + simpleicons: gitea + +# 060: XMPP +xmpp: + weight: 60 + template: xmpp:%s + title: XMPP + icon: + simpleicons: xmpp + +# 061: Matrix +matrix: + weight: 61 + prefix: https://matrix.to/#/ + title: Matrix + icon: + simpleicons: matrix + +# 062: bilibili +bilibili: + weight: 62 + prefix: https://space.bilibili.com/ + title: bilibili + icon: + src: svg/icons/bilibili.svg + +# 063: Email +email: + weight: 63 + template: mailto:%s + title: Email + icon: + class: far fa-envelope fa-fw + +# 064: RSS +rss: + weight: 64 + url: /index.xml + title: RSS + newtab: true + icon: + class: fas fa-rss fa-fw diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 480d05f..15d5e02 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -873,6 +873,13 @@ enableEmoji = true highlight = true enableQQ = false serverURLs = "" + # emoji config file name, default is "google.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # located in "assets/data/emoji/" directory, where you can put your config file + # emoji 配置文件名称, 默认是 "facebook.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # 位于 "assets/data/emoji/" 目录, 你可以在此存放你自己的配置文件 + emoji = "" # Facebook comment config (https://developers.facebook.com/docs/plugins/comments) # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) [params.page.comment.facebook] diff --git a/exampleSite/content/posts/theme-documentation-basics.en.md b/exampleSite/content/posts/theme-documentation-basics.en.md index eeaf8fc..cb4d770 100644 --- a/exampleSite/content/posts/theme-documentation-basics.en.md +++ b/exampleSite/content/posts/theme-documentation-basics.en.md @@ -513,6 +513,10 @@ Please open the code block below to view the complete sample configuration :(far highlight = true enableQQ = false serverURLs = "" + # {{< version 0.2.6 >}} emoji config file name, default is "facebook.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # located in "assets/data/emoji/" directory, where you can put your config file + emoji = "" # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config [params.page.comment.facebook] enable = false diff --git a/exampleSite/content/posts/theme-documentation-basics.fr.md b/exampleSite/content/posts/theme-documentation-basics.fr.md index 255b2e6..72f0157 100644 --- a/exampleSite/content/posts/theme-documentation-basics.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics.fr.md @@ -518,6 +518,10 @@ Please open the code block below to view the complete sample configuration :(far highlight = true enableQQ = false serverURLs = "" + # {{< version 0.2.6 >}} emoji config file name, default is "facebook.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # located in "assets/data/emoji/" directory, where you can put your config file + emoji = "" # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config [params.page.comment.facebook] enable = false diff --git a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md index 41ad1f3..e610bff 100644 --- a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md @@ -520,6 +520,10 @@ hugo highlight = true enableQQ = false serverURLs = "" + # {{< version 0.2.6 >}} emoji 配置文件名称, 默认是 "facebook.yml" + # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") + # 位于 "assets/data/emoji/" 目录, 你可以在此存放你自己的配置文件 + emoji = "" # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook 评论系统" >}}设置 [params.page.comment.facebook] enable = false diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9f23ce8..c14337b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,5 +17,8 @@
{{- dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
+ + {{- /* Comment */ -}} + {{- partial "comment.html" . -}} {{- end -}} diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index fac888e..71ea677 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -50,6 +50,7 @@ {{- with $valine.serverURLs -}} {{- $commentConfig = dict "serverURLs" . | dict "valine" | merge $commentConfig -}} {{- end -}} + {{- $commentConfig = $valine.emoji | default "facebook.yml" | printf "data/emoji/%s" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 427ba8c..4563e19 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -41,7 +41,7 @@ {{- if $profile.social -}}