#!/usr/sbin/nft -f
table inet source_routing {
chain prerouting {
type filter hook prerouting priority mangle; policy accept;
iifname "up1" ct mark set 0x00000001
iifname "node1" ct mark set 0x00000002
iifname "node2" ct mark set 0x00000003
ct state {established, related} meta mark set ct mark
}
chain output {
type route hook output priority mangle; policy accept;
meta mark set ct mark
}
}
Sample article showcasing basic Markdown syntax and formatting for HTML elements.
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
Headings
The following HTML <h1>—<h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest.
H1
H2
H3
H4
H5
H6
Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.
Blockquote without attribution
Tiam, ad mint andaepu dandae nostion secatur sequo quae.
Note that you can use Markdown syntax within a blockquote.
Blockquote with attribution
Don’t communicate by sharing memory, share memory by communicating.
— Rob Pike1
Tables
Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name
Age
Bob
27
Alice
23
Inline Markdown within tables
Italics
Bold
Code
italics
bold
code
A
B
C
D
E
F
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex.
Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus
Proin sit amet velit nec enim imperdiet vehicula.
Ut bibendum vestibulum quam, eu egestas turpis gravida nec
Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien
## Worker名称name="aka"## 项目配置信息,不要修改type="javascript"## accound_id 必须修改 可以在 「 Domain - API - Account ID 」 找到account_id="<account_id>"## worker.dev 域名分配,可关闭workers_dev=true## cloudflare route,若绑定自己域名需修改<domain>为自己域名route="<domain>/*"## zone_id 只有在需要绑定域名时填写,可以在 「 Domain - API - Zone ID 」找到。zone_id="<zone_id>"## <kv id> 填写为下文挂载的 kvkv_namespaces=[{binding="__aka__",id="<kv id>"}]
新建 KV 并挂载到对应项目
这里使用 wrangler 新建 kv
1
2
3
4
5
$ wrangler kv:namespace create __aka__
🌀 Creating namespace with title "aka-__aka__"✨ Success!
Add the following to your configuration file in your kv_namespaces array:
{binding="__aka__", id="*********"}
将 id 的内容复制到上处 wrangler.toml 的 <kv id>。
部署后端 🚀
当你已经确保本地的配置已经没有问题时,可以准备部署该项目了。
1
2
3
4
$ wrangler publish
✨ JavaScript project found. Skipping unnecessary build!
✨ Successfully published your script to
16sl.ga/* => stayed the same
$ npm run build
> @ build /workspaces/aka/frontend
> snowpack build;mv ./build/_dist_/sw.js ./build/sw.js;node ./build.mjs
[snowpack] ! building source files...
[snowpack] ✔ build complete[0.06s][snowpack] ! installing dependencies...
[snowpack] ✔ install complete! [2.76s][snowpack] ! verifying build...
[snowpack] ✔ verification complete[0.01s][snowpack] ! writing build to disk...
[snowpack] ! optimizing build...
Asset Size Chunks Chunk Names
js/index.026479135f133c2ca9ad.js 121 KiB 0[emitted][immutable] index
js/index.026479135f133c2ca9ad.js.LICENSE.txt 95 bytes [emitted] js/webpack-runtime.5072755c7971ba0e8aa3.js 1.46 KiB 1[emitted][immutable] webpack-runtime
manifest.json 223 bytes [emitted][snowpack] ✔ optimize complete[5.75s][snowpack] ▶ Build Complete! ## 当你看到该句时,表明编译成功(node:16309) ExperimentalWarning: The ESM module loader is experimental.
$ wrangler publish
⚠️ The following routes in your configuration file should have a trailing * to apply the Worker on every path, otherwise your site will not behave as expected.
16sl.ga/sw.js
16sl.ga/
16sl.ga/index.html
✨ Built successfully, built project size is 13 KiB.
🌀 Using namespace for Workers Site "__aka_frontend-workers_sites_assets"✨ Success
🌀 Uploading site files
✨ Successfully published your script to
16sl.ga/cdn-sources/* => stayed the same
16sl.ga/sw.js => stayed the same
16sl.ga/js/* => stayed the same
16sl.ga/css/* => stayed the same
16sl.ga/ => stayed the same
16sl.ga/index.html => stayed the same
16sl.ga/assets/* => stayed the same
16sl.ga/web_modules/* => stayed the same
16sl.ga/_dist_/* => stayed the same
16sl.ga/__snowpack__/* => stayed the same