Skip to content

如何更改文章metadata中Creation Date和Last Update Date显示格式问题 #1304

Answered by ppoffice
BlingDan asked this question in Q&A
Discussion options

You must be logged in to vote

Please ignore above answer. This is the right place to change date format:

hexo-theme-icarus/source/js/main.js

    if (typeof moment === 'function') {
        $('.article-meta time').each(function() {
            $(this).text(moment($(this).attr('datetime')).format('MM-DD-YYYY'));
        });
    }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ppoffice
Comment options

Answer selected by BlingDan
@BlingDan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants