This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#конвертим дату! | |
local_date: //span[has-class("post__time_published")] | |
#@replace("\n", "", "s"): $local_date/text() | |
@replace("^[ \n]+", "", "s"): $local_date/text() | |
@debug | |
#полная дата | |
@replace("^(.+) (\\w+)( \\d+)? в (\\S+).+", "$1 $2$3, $4", "s"): $local_date/text() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
name: 'NoIndex', | |
functional: true, | |
props: { | |
tag: { | |
type: String, | |
default: 'div', | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const git = require('git-last-commit'); | |
let latestCommit; | |
git.getLastCommit(function(err, commit) { | |
// read commit object properties | |
latestCommit = commit; | |
}); | |
let nuxtConfig = { | |
// ..................... | |