Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for Post (0.26 sec)

  1. test/scripts/hexo/post.js

    const { parse: yfm } = require('hexo-front-matter');
    const fixture = require('../../fixtures/post_render');
    const escapeSwigTag = str => str.replace(/{/g, '{').replace(/}/g, '}');
    
    describe('Post', () => {
      const Hexo = require('../../../lib/hexo');
      const hexo = new Hexo(join(__dirname, 'post_test'));
      const { post } = hexo;
      const now = Date.now();
      let clock;
      let defaultCfg = {};
    
      before(async () => {
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2022-10-05 15:39
    - 34.1K bytes
    - Viewed (0)
  2. docs/_includes/elements/post.html

    {% assign date = post.date | date: "%B %-d" %}
    {% assign title = post.title | markdownify %}
    {% assign introduction = post.introduction | markdownify %}
    
    <div class="bd-post {% if post.featured %}is-featured{% endif %}">
      <a class="bd-post-link" href="{{ site.url }}{{ post.url }}" style="--color: var(--{{ post.color }});">
        <div class="bd-post-body">
          <figure class="icon">
    HTML
    - Registered: 2022-11-22 09:01
    - Last Modified: 2021-01-27 23:30
    - 1.1K bytes
    - Viewed (0)
  3. lib/plugins/processor/post.js

        }
    
        return;
      }
    
      // TODO: Better post searching
      const post = Post.toArray().find(post => file.source.startsWith(post.asset_dir));
      if (post != null && (post.published || ctx._showDrafts())) {
        return PostAsset.save({
          _id: id,
          slug: file.source.substring(post.asset_dir.length),
          post: post._id,
          modified: file.type !== 'skip',
          renderable: file.params.renderable
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2022-10-05 15:38
    - 7.3K bytes
    - Viewed (0)
  4. lib/hexo/post.js

          return readFile(src);
        }).then(content => {
          // Create post
          Object.assign(data, yfmParse(content));
          data.content = data._content;
          data._content = undefined;
    
          return this.create(data, replace);
        }).then(post => {
          result.path = post.path;
          result.content = post.content;
          return unlink(src);
        }).then(() => { // Remove the original draft file
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2021-11-24 13:53
    - 13K bytes
    - Viewed (0)
  5. lib/models/post.js

      });
    
      // Remove PostTag references
      Post.pre('remove', data => {
        const PostTag = ctx.model('PostTag');
        return PostTag.remove({post_id: data._id});
      });
    
      // Remove PostCategory references
      Post.pre('remove', data => {
        const PostCategory = ctx.model('PostCategory');
        return PostCategory.remove({post_id: data._id});
      });
    
      // Remove assets
      Post.pre('remove', data => {
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2022-11-21 06:57
    - 6.3K bytes
    - Viewed (0)
  6. tests/Integration/Http/Fixtures/Post.php

    <?php
    
    namespace Illuminate\Tests\Integration\Http\Fixtures;
    
    use Illuminate\Database\Eloquent\Model;
    
    class Post extends Model
    {
        /**
         * The attributes that aren't mass assignable.
         *
         * @var string[]
         */
        protected $guarded = [];
    
        /**
         * Return whether the post is published.
         *
         * @return bool
         */
        public function getIsPublishedAttribute()
        {
            return true;
    PHP
    - Registered: 2022-10-09 10:06
    - Last Modified: 2020-10-12 14:24
    - 424 bytes
    - Viewed (0)
  7. docs/_layouts/post.html

    ---
    layout: default
    ---
    
    <div id="blog-container" class="container">
      <div class="post">
        <h1>{{ page.title }}</h1>
        <div class="post-meta">
          <time>{{ page.date | date_to_string }}</time>
          <span> - <a href="https://twitter.com/jhchen" title="Jason Chen">Jason Chen</a></span>
        </div>
        {{ content }}
      </div>
    HTML
    - Registered: 2022-11-25 14:05
    - Last Modified: 2016-09-10 22:11
    - 338 bytes
    - Viewed (0)
  8. test/scripts/models/post.js

        cats.should.have.lengthOf(3);
    
        return Post.removeById(post._id);
      }));
    
      it('remove PostTag references when a post is removed', () => Post.insert({
        source: 'foo.md',
        slug: 'bar'
      }).then(post => post.setTags(['foo', 'bar', 'baz'])
        .thenReturn(Post.findById(post._id))).then(post => Post.removeById(post._id)).then(post => {
        PostTag.find({post_id: post._id}).should.have.lengthOf(0);
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2020-09-01 15:21
    - 13K bytes
    - Viewed (0)
  9. test/scripts/processors/post.js

        await process(file);
        const post = Post.findOne({ source: file.path });
    
        post.title.should.eql('Hello world');
        post.date.format(dateFormat).should.eql('2006-01-02 15:04:05');
        post.updated.format(dateFormat).should.eql('2014-12-13 01:02:03');
        post._content.should.eql('The quick brown fox jumps over the lazy dog');
        post.source.should.eql(file.path);
        post.raw.should.eql(body);
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2022-10-05 15:38
    - 26.9K bytes
    - Viewed (0)
  10. lib/plugins/console/list/post.js

    }
    
    function listPost() {
      const Post = this.model('Post');
    
      const data = Post.sort({published: -1, date: 1}).map(post => {
        const date = post.published ? post.date.format('YYYY-MM-DD') : 'Draft';
        const tags = post.tags.map(mapName);
        const categories = post.categories.map(mapName);
    
        return [
          gray(date),
          post.title,
          magenta(post.source),
          categories.join(', '),
    JavaScript
    - Registered: 2022-11-21 21:39
    - Last Modified: 2021-11-24 13:53
    - 927 bytes
    - Viewed (0)
Back to top