acyortjs / acyort Goto Github PK
View Code? Open in Web Editor NEWA Node.js static website framework
Home Page: https://acyort.js.org
License: MIT License
A Node.js static website framework
Home Page: https://acyort.js.org
License: MIT License
Sass is completely compatible with all versions of CSS. We take this compatibility seriously, so that you can seamlessly use any available CSS libraries.
Sass boasts more features and abilities than any other CSS extension language out there. The Sass Core Team has worked endlessly to not only keep up, but stay ahead.
Mature
Sass has been actively supported for about 8 years by its loving Core
Team
Over and over again, the industry is choosing Sass as the premier CSS extension language.
Large Community
Sass is actively supported and developed by a consortium of several tech companies and hundreds of developers.
Frameworks
There are endless number of frameworks built with Sass. Compass, Bourbon, and Susy just to name a few.
Dreamcatcher cold-pressed American Apparel, post-ironic Carles Shoreditch craft beer Banksy PBR retro distillery before they sold out freegan asymmetrical kogi. Food truck Schlitz direct trade, deep v ethical yr sriracha mumblecore freegan. Tattooed occupy pork belly, letterpress typewriter cold-pressed viral swag farm-to-table flexitarian. +1 hashtag put a bird on it authentic. 3 wolf moon locavore Vice, normcore actually meggings leggings cornhole brunch. Four loko vinyl trust fund, Intelligentsia wolf Bushwick lo-fi sriracha. Deep v vegan forage selvage.
index.html
layout.html
miss <html>
tagthumb_size: true
js/css/image
JSON output
theme config
hightlight.js to prismjs / line number
build以后出现了如下错误:
Data from cache...
Getting data from GitHub (willhunger/willhunger.github.io) ... 1
✖ No contents
然后acrort server 后出现的页面信息是404
All the post time will be the same after migrate old blog to issues blog
.
hope to overwrite the post time by add something like
// create_at: YYYY-mm-DD HH:MM:SS
on the top of the post.
没搞定,circleci出错了好多……
最后按着示例博客里的配置…… 并且把几条删除文件夹的命令,因为文件夹不存在报错了,移除掉才勉强跑通,最后也没build出index.html
所以public里面到底装了啥…… 示例博客忽略了没上传
我的github issues 地址:https://github.com/ly525/blog/issues
运行acyort build
到第11篇的时候,每次都会挂掉,麻烦帮忙看下,感谢🙏
i Use script: content.js
i Use script: active.js
i Getting data from GitHub (ly525/blog) ... 1
i Getting data from GitHub (ly525/blog) ... 2
i Getting data from GitHub (ly525/blog) ... 3
i Getting data from GitHub (ly525/blog) ... 4
i Getting data from GitHub (ly525/blog) ... 5
i Getting data from GitHub (ly525/blog) ... 6
i Getting data from GitHub (ly525/blog) ... 7
i Getting data from GitHub (ly525/blog) ... 8
i Getting data from GitHub (ly525/blog) ... 9
i Getting data from GitHub (ly525/blog) ... 10
✖ TypeError: Cannot read property 'split' of null
at excerpt (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/lib/excerpt.js:3:25)
at Object.post (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/lib/post.js:21:32)
at posts.map (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/_acyort-processor@1.0.5@acyort-processor/index.js:62:25)
at Array.map (<anonymous>)
at Object.processor (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/node_modules/[email protected]@acyort-processor/index.js:61:17)
at extend.init.then.then.then.then.data (/Users/ly/.nvm/versions/node/v8.9.3/lib/node_modules/acyort/lib/acyort.js:113:26)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
# Base
# site
title: 前端农场
description: 博客、分享、资源、源码
# url
# url of website. format like http://<domain>/<path> or https://<domain>
url:
# theme
# default is ccc45
theme:
# pagination
# post count per page. set 0 to disable it
# default is 10
per_page: 10
# menu
# navigation menus of website
menu:
home: /
categories: /categories/
tags: /tags/
about: /about/
# default category name
# default is "uncategorized"
default_category: blog
# content
# GitHub user/repository
# website contents comes from this repository issues
user: ly525
repository: blog
# Advance
# scripts
# script file names
scripts:
- content.js
- active.js
# plugins
# npm modules
plugins:
# - xxx module
# output
# where static site files located
public_dir: /
# authors
# Github usernames, users whose issues can be generated to post
authors:
# - author0
# - author1
# timezone
# website timezone. use machine setting by default
# example: "America/New_York", "Japan", "UTC", or "Asia/Shanghai"
timezone:
# language
# language of website, theme support is needed
# default is default
language:
# code line numbers
# whether showing line numbers in code block
# default is true
line_numbers:
# order
# post ordering, order posts by issues create_time(created) or update_time(updated)
# default is created
order:
# directory
# subdirectory in public_dir
# default is categories, tags, posts
category_dir:
tag_dir:
post_dir:
# token
# github access token
# In order to prevent the token from removed by github, you should add a # inside it
# for example the original token abcdedf should be replaced with a#bcdef.
token:
# cache
# whether caching GitHub issues data, just for development
# default false
cache:
# Other
# customize some settings if necessary
# disqus:
# favicon:
按照项目构建成功了,1)如何访问,我看gh-pages有更新,但是访问提示错误。2)每次master分支构建完成后,又自动构建gh-pages 分支,gh-pages提示错误。谢谢
这个教程可以完善下 如何添加两个分支
master 分支(默认有)
gh-pages 分支
https://acyort.com/zh-cn/deploy/
以及本地配置好后如何上传到github么,我在朋友圈推广下这个方法
文章的时间问题
就是当一个issue已经被build以后,下一次更新issue以后再build,文章的时间显示为第二次生成的时间。
我的建议是在配置文件中提供两种时间供选择,选择是第一次发表时间还是更新时间为时间标准。
disqus反向代理
https://github.com/ciqulover/disqus-proxy
In my previous post many were telling me I was missing the point about task runners - they're for wiring up complex sets of tasks, not just running odd tasks. So I thought I'd wrap up this piece with a complex set of tasks typical of a multi-hundred-line Gruntfile. For this example I want to do the following:
"scripts": {
"clean": "rimraf dist/*",
"prebuild": "npm run clean -s",
"build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
"build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}'",
"build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}'",
"build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",
"test": "karma start --singleRun",
"watch": "parallelshell 'npm run watch:test -s' 'npm run watch:build -s'",
"watch:test": "karma start",
"watch:build": "nodemon -q -w assets/ --ext '.' --exec 'npm run build'",
"open:prod": "opener http://example.com",
"open:stage": "opener http://staging.example.internal",
"open:dev": "opener http://localhost:9090",
"deploy:prod": "s3-cli sync ./dist/ s3://example-com/prod-site/",
"deploy:stage": "s3-cli sync ./dist/ s3://example-com/stage-site/",
"serve": "http-server -p 9090 dist/",
"live-reload": "live-reload --port 9091 dist/",
"dev": "npm run open:dev -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'"
}
I’ve never told this to anyone. Sit yourself down and strap yourself in, you will experience some turbulence before you reach a steady altitude.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam nihil eum cum quas! Consectetur aliquam molestias quos voluptatum recusandae accusantium eaque sed architecto esse. Ut obcaecati, porro numquam sed. Odio.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse quam provident accusamus vero autem culpa illum quo enim maiores eius error, sapiente inventore cum hic earum. Libero porro quisquam harum.
iceland
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam nihil eum cum quas! Consectetur aliquam molestias quos voluptatum recusandae accusantium eaque sed architecto esse. Ut obcaecati, porro numquam sed. Odio.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse quam provident accusamus vero autem culpa illum quo enim maiores eius error, sapiente inventore cum hic earum. Libero porro quisquam harum.
如题,在浏览器会显示类似404的话语。
善我王上魚、產生資西員合兒臉趣論。畫衣生這著爸毛親可時,安程幾?合學作。觀經而作建。都非子作這!法如言子你關!手師也。
以也座論頭室業放。要車時地變此親不老高小是統習直麼調未,行年香一?
就竟在,是我童示讓利分和異種百路關母信過明驗有個歷洋中前合著區亮風值新底車有正結,進快保的行戰從:弟除文辦條國備當來際年每小腳識世可的的外的廣下歌洲保輪市果底天影;全氣具些回童但倒影發狀在示,數上學大法很,如要我……月品大供這起服滿老?應學傳者國:山式排只不之然清同關;細車是!停屋常間又,資畫領生,相們制在?公別的人寫教資夠。資再我我!只臉夫藝量不路政吃息緊回力之;兒足灣電空時局我怎初安。意今一子區首者微陸現際安除發連由子由而走學體區園我車當會,經時取頭,嚴了新科同?很夫營動通打,出和導一樂,查旅他。坐是收外子發物北看蘭戰坐車身做可來。道就學務。
國新故。
工步他始能詩的,裝進分星海演意學值例道……於財型目古香亮自和這乎?化經溫詩。只賽嚴大一主價世哥受的沒有中年即病行金拉麼河。主小路了種就小為廣不?
Exit code: 1
#!/bin/bash -eo pipefail
cp config.bak.yml config.yml
cp: cannot stat 'config.bak.yml': No such file or directory
Exited with code 1
请问如何启用评论功能?这篇文章里说评论功能已实现,但在文档和配置中未找到评论启用开关。
wp_head()
, wp_footer()
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.
⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
I'm an inline-style link with title
[I'm a reference-style link][Arbitrary case-insensitive reference text]
I'm a relative reference to a repository file
Here's our logo (hover to see the title text):
var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
Regulaere Ausdruecke werden verwendet, um gleichartige Muster in Zeichenketten zu erkennen.
Anwendungsfaelle:
grep
ist ein Werkzeug, das Dateien oder Texte nach dem Vorkommen von Mustern durchsucht. Es verwendet hierfuer regulaere Ausdruecke.
grep <regex> <files>
Die einfachste Form eines regulaeren Ausdrucks ist der 'literal match'.
text.txt:
ausdruck
Ausdruck
ausdruk
aus-druck
---
grep ausdruck text.txt
ausdruck
Es gibt allerdings eine Reihe von Zeichen, die eine besondere Bedeutung in regulaeren Ausdruecken haben. Diese muessen fuer den Gebrauch als literal mit \
escaped werden.
.
Der .
gilt als sogenannte Wildcard, d.h. er trifft auf jedes beliebige Zeichen zu. Er matched dabei auf genau EIN Zeichen.
text.txt
Test
Tesst
Text
Texst
Te5t
Te#t
Tet
Te t
Te+t
---
grep Te.t text.txt
Test
Text
Te5t
Te#t
Te t
Te+t
In [eckigen Klammern] koennen mehrere gueltige Zeichen angegeben werden. Wie die Wildcard matched auch dieser Ausdruck nur auf ein einzelnes Zeichen.
text.txt
Test
Tect
Tet
Text
Texst
Texxt
---
grep "Te[xs]t" text.txt
Test
Text
When I trigger travis-ci build, I find these logs for error.
{ Error: ENOENT: no such file or directory, open '/home/travis/build/willhunger/Blog/themes/donob/i18n/default.yml'
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Helper.resetLocales (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/helper/index.js:36:41)
at Generator.genHtmls (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/index.js:47:18)
at Generator.generate (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/generator/index.js:107:19)
at _fetcher.fetch.then.then.data (/home/travis/.nvm/versions/node/v6.0.0/lib/node_modules/acyort/lib/acyort.js:17:35)
at process._tickCallback (internal/process/next_tick.js:103:7)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/travis/build/willhunger/Blog/themes/donob/i18n/default.yml' }
But build exited with 0.
How to deal with it?
作者你好:
今天偶然发现博客的时区设置好像不生效,操作如下:
# 在config.yml中,把时区从上海,改到纽约
timezone: America/New_York
看自动构建的日志的最后一步:
git commit -m "Updated by CircleCI - `TZ='Asia/Shanghai' date`"
On branch gh-pages
Your branch is up-to-date with 'origin/gh-pages'.
nothing to commit, working directory clean
Exited with code 1
这是说明文件都没有被修改,所以猜测可能是时区设置未生效。
还有就是生成的博客时间感觉像是UTC时间,跟当前时间差了大概八小时左右,例如下面这篇文章,是今天十点左右更新的。
https://wuzehui.top/posts/352966584.html
博客项目地址:
https://github.com/wuzehv/blog2
麻烦帮忙看看, 谢谢 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.