雨果+布莱克本:阅读时间未显示

时间:2019-06-02 10:37:48

标签: time hugo blogdown

config.toml中的readingTime参数用于显示帖子的阅读时间是否有变化?

[params]
  # Shown in the home page

  dateFormat = "02 Jan 2006, 15:04"

  # Show estimated reading time for posts?
  readingTime = true

与Blackburn主题一起使用时,上述配置不起作用。

1 个答案:

答案 0 :(得分:2)

Blackburn主题不支持import numpy as np import tensorflow as tf sess = tf.InteractiveSession() a = np.array([[[[1], [3]], [[ 9], [11]]], [[[2], [4]], [[10], [12]]], [[[5], [7]], [[13], [15]]], [[[6], [8]], [[14], [16]]]]) block_shape = (2, 2) new_batch_size = a.shape[0] // np.prod(block_shape) b = tf.reshape(a, block_shape + (new_batch_size,) + a.shape[1:] ) # Hard-coded version: # b = tf.transpose(b, [2, 3, 0, 4, 1, 5]) # Generic version: b = tf.transpose(b, (len(block_shape),) + tuple(j for i in range(len(block_shape)) for j in (i + len(block_shape) + 1, i)) + tuple(i + 2*len(block_shape) + 1 for i in range(len(a.shape) - len(block_shape) - 1)) ) b = tf.reshape(b, (new_batch_size,) + tuple(i*j for i, j in zip(block_shape, a.shape[1:])) + a.shape[1+len(block_shape):] ) print(b.eval()) print(b.shape) 参数。

有关所有受支持的参数,请参阅示例站点配置文件: https://github.com/yoshiharuyamashita/blackburn/blob/master/exampleSite/config.toml