GithubHelp home page GithubHelp logo

80maker / vuepress-theme-maker Goto Github PK

View Code? Open in Web Editor NEW
79.0 1.0 13.0 873 KB

🐉 A flat and clean Blog Theme for VuePress site | 一款多配置、简约风的VuePress 博客主题.

Home Page: https://80shuo.com/

License: MIT License

Shell 0.42% JavaScript 13.04% Vue 64.91% HTML 0.70% Stylus 20.94%
vuepress-theme vuepress-blog vuepress theme blog theme-blog

vuepress-theme-maker's People

Contributors

80maker avatar cmgddd avatar dependabot[bot] avatar sanqi377 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vuepress-theme-maker's Issues

gitee pages 部分资源加载不出来【2】

已在1.2.2版本修复;

老板,还是有点问题

首页图片能加载出来,进入文章后头图就加载不出来了
这是我现在部署的地址:

https://i2333g3.gitee.io/personal-learning-blog/post/2022/04/21/shell.html

左侧头像加载不出
从首页进文章页后,刷新地址变成了:https://i2333g3.gitee.io/personal-learning-blog/post/2022/04/21/logo.jpg

应该是 https://i2333g3.gitee.io/personal-learning-blog/logo.jpg

Originally posted by @2333Ge in #15 (comment)

gitee pages 部分资源加载不出来

当部署到形如 https://foo.github.io/bar/ 的pages上时,图片资源加载不出来

官网查到这个描述,

如果你打算将你的网站部署到 https://foo.github.io/bar/,那么 base 的值就应该被设置为 "/bar/" (应当总是以斜杠开始,并以斜杠结束)。

有了基础路径(Base URL),如果你希望引用一张放在 .vuepress/public 中的图片,你需要使用这样路径:/bar/image.png,然而,一旦某一天你决定去修改 base,这样的路径引用将会显得异常脆弱。为了解决这个问题,VuePress 提供了内置的一个 helper $withBase(它被注入到了 Vue 的原型上),可以帮助你生成正确的路径:

在对应文件加上withbase后能加载出来了

目前发现的加载不出来资源的地方有:首页图片、tags汇总页跳转链接、文章主页头部图片

导入主题失败!

在 .vuepress/config.js 中 写入theme: 'vuepress-theme-maker' 出现报错

Error: [vuepress] Failed to load custom theme "vuepress-theme-maker". File vuepress-theme-vuepress-theme-maker/Layout.vue does not exist.

image

home和archives的页面是哪里配的

image

代码
image

 blog: {
            directories: [
                {
                  id: 'experience',
                  dirname: 'experience',
                  path: '/experience/',
                  itemPermalink: '/experience/:year/:month/:day/:slug.html',
                  pagination: {
                    perPagePosts: 10,
                  },
                }
            ],
            frontmatters: [
                {
                  id: "tag",
                  keys: ['tag', 'tags'],
                  path: '/tags/',
                  frontmatter: { title: 'Tag' },
                  pagination: {
                    lengthPerPage: 10
                  }
                },
                {
                  id: "category",
                  keys: ['category', 'categories'],
                  path: '/categories/',
                  frontmatter: { title: 'Category' },
                  pagination: {
                    lengthPerPage: 10
                  }
                }
            ],

Adding a `<script>` for client side in a post

For a particular post, I want to create a script tag and run code inside it on the client side. So I just put it in the .md file and because of it the build process failed. I understand it's because vue is trying to run that script on the server side.

I can't seem to find a way to make vuepress skip this script and just write it in the built html side the way it is. I also just need the code for a single post, so I don't want to change anything big.

My question: is there a way to make the theme-maker ignore that script tag? perhaps wrapping it in something? any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.