当前位置: 首页 > news >正文

免费行情软件网站游戏wordpress支付宝支付

免费行情软件网站游戏,wordpress支付宝支付,出入成都通知今天,贵州省职业技能学历双提升工程app003 - Hugo, 创建文章创建文章单个md文件md文件图片总结 文章内容Front Matter文章目录数学公式的显示KaTeXMathJax 图片 003 - Hugo, 创建文章 创建文章 单个md文件 创建文章的方式#xff1a; 手动创建#xff1a;在post目录下#xff0c;手动创建md文件。命令创建图片总结 文章内容Front Matter文章目录数学公式的显示KaTeXMathJax 图片 003 - Hugo, 创建文章 创建文章 单个md文件 创建文章的方式 手动创建在post目录下手动创建md文件。命令创建hugo new post/*.md 单个md文件的创建md文件的命名是随意的web上显示的与文章的title属性有关而与文件名无关。 md文件图片 创建文章的方式 手动创建在post目录下手动创建一个文件夹在文件夹里创建md文件并将需要的图片资源放入其中。命令创建hugo new post/foldername/*.md会自动创建文件夹和md文件。 md文件图片的组合文件夹的名称是随意命名的但文件夹里md文件的命名必须为index.md或index.zh-cn.md否则图片资源可能在打包上传时会消失。 总结 萝卜青菜各有所爱但命令创建有一个优点就是可以在archetypes\default.md里设置创建出来md文件的Front Matter从而不用每次都重复写。 文章内容 Front Matter 可以理解为文章的属性Markdown语法为 --- # 文章标题 title: 0x03 Hugo创建文章详解 # 文章副标题 文章的描述 description: 本文记录创建文章的规范和一些细节。 # 文章的部分url https://jacket-mouse.github.io/p/Hugo-article slug: Hugo-article # 创建日期 date: 2024-01-23 # 文章分类 categories:- Blog # 文章标签 tags [emoji,happy new year ] # 文章封面图 image *.jpg # 如果md里有latex公式语法需要设为true math: true ---文章目录 根据stack主题目录是从二级标题开始的。即一级标题和二级标题同级从三级标题开始依次降级直到四级。所以在书写标题时为了目录的规整从二级标题开始书写一级和五级及以上标题不太用。 另外 记录之前用了一次五级标题导致目录的高光跟随不见了。 数学公式的显示 Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. KaTeX 创建Hugo时默认给的是KaTeX来渲染数学公式正如其官网所介绍的一样KaTeX的速度比MathJax快有个比较它们之间速度的网站但是根据我的第一篇数学笔记的效果来看KaTeX有很多LaTeX语法并不能正确的渲染 \displaylines{}begin{cases}可能还有其他的但我并没有一一尝试也有可能是我配置没弄好那样属实有点尴尬 Note: Use the online reference of Supported TeX Functions 官方操作步骤 To enable KaTex globally set the parameter math to true in a project’s configuration 首先要把config.yaml文件里article的math设为true article:math: truetoc: truereadingTime: truelicense:enabled: truedefault: Licensed under CC BY-NC-SA 4.0To enable KaTex on a per page basis include the parameter math: true in content files 然后在写需要显示数学公式的文章时文章属性的math也要设为true Create a partial under /layouts/partials/math.html Within this partial reference the Auto-render Extension or host these scripts locally. !--内容来自Auto-render Extension-- linkrelstylesheethrefhttps://cdn.jsdelivr.net/npm/katex0.16.9/dist/katex.min.cssintegritysha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odIWdtXRGWt2kTvGFasHpSy3SVcrossoriginanonymous / scriptdefersrchttps://cdn.jsdelivr.net/npm/katex0.16.9/dist/katex.min.jsintegritysha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUGvnGctmUb0ZY0l8crossoriginanonymous /script scriptdefersrchttps://cdn.jsdelivr.net/npm/katex0.16.9/dist/contrib/auto-render.min.jsintegritysha384-VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4/RRE05crossoriginanonymous /script scriptdocument.addEventListener(DOMContentLoaded, function () {renderMathInElement(document.body, {// customised options// • auto-render specific keys, e.g.:delimiters: [//此处可自定义修改//If you want to add support for inline math via $...$, be sure to list it after $$, as in the following. (Because rules are processed in order, putting a $ rule first would catch $$ as an empty math expression.){ left: $$, right: $$, display: true },{ left: $, right: $, display: false },{ left: \\(, right: \\), display: false },{ left: \\[, right: \\], display: true },],// • rendering keys, e.g.:throwOnError: false,});}); /script Include the partial in your templates like so: 在\themes\hugo-theme-stack\layouts\partials\head\head.html里加上下面的内容 // {{- template _internal/google_analytics.html . -}} // {{- partial head/custom.html . -}} //下面是要加的内容 {{ if or .Params.math .Site.Params.math }} {{ partial math.html . }} {{ end }}参考latex实现及hugo MathJax 我现在就用的是这个除了一些转义问题并没有遇到其他的问题。 配置操作 只有math.html的内容和KaTeX有所不同。 scripttypetext/javascriptasyncsrchttps://cdn.bootcss.com/mathjax/2.7.3/MathJax.js?configTeX-AMS-MML_HTMLorMML MathJax.Hub.Config({tex2jax: {inlineMath: [[$,$], [\\(,\\)]],displayMath: [[$$,$$], [\[\[,\]\]]],processEscapes: true,processEnvironments: true,skipTags: [script, noscript, style, textarea, pre],TeX: { equationNumbers: { autoNumber: AMS },extensions: [AMSmath.js, AMSsymbols.js] }}});MathJax.Hub.Queue(function() {// Fix code tags after MathJax finishes running. This is a// hack to overcome a shortcoming of Markdown. Discussion at// https://github.com/mojombo/jekyll/issues/199var all MathJax.Hub.getAllJax(), i;for(i 0; i all.length; i 1) {all[i].SourceElement().parentNode.className has-jax;}}); /scriptstylecode.has-jax {font: inherit;font-size: 100%;background: inherit;border: inherit;color: #515151;} /style 转义问题 换行 $$\displaylines{ z_{min}axby \\ \begin{cases} a_1xb_1y \le c_1 \\ a_2xb_2y \le c_2 \\ a_3xb_3y \le c_3 \end{cases}} $$ 显示效果 KaTeX parse error: Undefined control sequence: \displaylines at position 1: \̲d̲i̲s̲p̲l̲a̲y̲l̲i̲n̲e̲s̲{ z_{min}axby… $$\displaylines{ z_{min}axby \\\\ \begin{cases} a_1xb_1y \le c_1 \\\\ a_2xb_2y \le c_2 \\\\ a_3xb_3y \le c_3 \end{cases}} $$显示效果 KaTeX parse error: Undefined control sequence: \displaylines at position 1: \̲d̲i̲s̲p̲l̲a̲y̲l̲i̲n̲e̲s̲{ z_{min}axby… 图片 支持Typlog语法排版。 详见 『 Hugo 』Typlog Atlas
http://www.hkea.cn/news/14343471/

相关文章:

  • 支付宝小程序搜索引擎禁止的方式优化网站
  • 医院网站建设技术方案ppt专业网站设计 软件
  • 国开网站怎么做网站建设主题大全
  • 老榕树智能建站系统免费asp网站源码下载
  • 优秀的平面设计网站如何做网站海报
  • 乐清做网站公司网站建设意见征求表
  • 网站建设费计入 科目微商城怎么开
  • 网站备案密码是什么样的wordpress实现视频播放
  • e想时代官方网站wordpress主题选择
  • 中企动力高端网站建设湖南seo网站设计
  • 旅游目的地网站建设网站未备案的后果
  • 上海网站制作工具网站更换服务器 备案
  • 买了域名怎么建网站河南百度推广公司
  • 网站开发是什么部门新闻最新热点
  • 泸州市建设规划局网站平台网站建设方案标书
  • 数据库网站开发价格装修公司室内装饰
  • 免费做app的网站有哪些xampp和wordpress
  • 企业网站尺寸中国网络营销传播网
  • 做企业网站哪里找网站开发公司交易流程
  • 云尚网络科技有限公司网站建设外汇跟单社区网站开发
  • 廊坊免费网站建设模板aspcms网站无法打开
  • 做期货都看哪个网站河北手机版建站系统哪个好
  • 企业网站建公司wordpress图片无法显示
  • 松江做营销网站杭州市下城区建设厅网站
  • 兼职做网站访问量和数据wordpress 后台进不去_如何替换主题
  • 购物商城网站建设方案ps怎么做网站视频特效
  • 网站建设阿里云厦门集团网站设计公司
  • 发布网站搭建教程wordpress前端上传图片
  • 网站系统分析网站开发硬件环境怎么填
  • 辽宁城乡住房建设厅网站打不开微信微网站开发报价单