一段时间以来,我一直遇到麻烦让谷歌分析在我生成的Github页面上正常工作.我使用了Google提供的默认代码段,但我认为正在寻找代码段的抓取工具在url victorbjelkholm.github.com而不是victorbjelkholm.github.com/2012-I-Bilder/中查找.但是,我在Google Analytics配置文件中的默认网址是http://victorbjelkholm.github.com/2012-I-Bilder/,所以应该没问题.
有没有人有过类似的经验,可以在Github页面上为Google网站添加Google Analytics?
有没有人有什么可以解决这个问题的建议所以我可以从我的网站获得一些统计数据?
我正在尝试添加一个外部css文件index.html.
机构名称 - codehunks
我的目录结构如下:
codehunks.github.io
_layouts/
style.css
LICENSE.txt
README.rst
index.html
Run Code Online (Sandbox Code Playgroud)
我尝试将其添加为:
<link rel="stylesheet" type="text/css" href="_layouts/styles.css"/>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.我搜索并了解raw.github.com/../..在以下情况下不起作用css/text
我发现一些文章通过提供链接添加它,[username].github.io/[repo]/[folder]/[filname]但这对我的组织不起作用.
我尝试添加它,codehunks.github.com/codehunks.github.io/_layouts/style.css但链接给了我404 not found回复.
任何可能的解决方案或我正在做错事.
这是我的页面codehunks.github.io,这是我的代码源代码
我已经设置了一个github页面,但是我的图像没有加载. 该网站和 网站的回购
我在github页面和相关链接中看到了这个问题的图像,它说GitHub在Linux服务器上运行,因此区分大小写.我可以检查href目录是否是相同的情况.
Jekyll是否支持设置多个永久链接?
例如,我目前在我的内容中有以下内容_config.yml:
permalink: /:categories/:title/
我想拥有的是以下内容:
permalink:
- /:categories/:title/
- /:year/:month/:day/:title/
我正在努力实现它,一个帖子将有多个URL.我很清楚我可以使用"redirect_from"插件(我在GitHub页面中托管),但这需要我手动更新我的所有帖子以包含redirect_from在YAML中
我正在使用GitHub Pages来托管我的网站.我有一个PDF文件,我希望访问者能够直接在浏览器中打开.但是当我将PDF文件上传到GitHub页面并链接到它时,它会在GitHub的查看器中打开.有没有办法在浏览器中打开PDF?我不想将文档上传到Dropbox或Google云端硬盘,因为这些服务在某些国家/地区不可用.
使用原始URL会导致下载.但我想在浏览器中打开该文件.
我正在尝试在特定时间点查看存储库的文档.github页面的网址是否足以让我能够具体提交特定的提交哈希?
我似乎无法在网上找到关于此的任何信息.
我正在尝试将我的 Flutter 应用程序部署到 GitHub Pages。应用程序运行良好flutter run -d chrome并使用成功构建flutter build web --release
我将代码推送到我的存储库:https : //github.com/learyjk/superpacecalcweb
部署活动日志显示成功部署。但是当我单击“查看部署”按钮时,我只会看到一个空白页面。Javascript 控制台说:
加载资源失败:服务器响应状态为 404 () https://learyjk.github.io/main.dart.js
我也尝试将 /index.html 附加到 URL 的末尾,但没有成功。
有任何想法吗?错误输出不是很详细,所以我不太知道从哪里开始......
GitHub 页面链接:https : //learyjk.github.io/superpacecalcweb/
谢谢!
我正在尝试为 Github Page/Jekyll 站点做出贡献,并希望能够在本地可视化更改,但是当我运行时却bundle exec jekyll serve得到以下输出:
bundler: failed to load command: jekyll (/usr/local/lib/ruby/gems/3.0.0/bin/jekyll)
/usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/html.rb:10:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:345:in `<class:Kramdown>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:60:in `<module:Parser>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:19:in `<module:Kramdown>'
from /usr/local/lib/ruby/gems/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/kramdown.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll/converters/smartypants.rb:3:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll/converters/smartypants.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:13:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:13:in `block in require_all'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:12:in `each'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-3.8.5/lib/jekyll.rb:12:in `require_all' …Run Code Online (Sandbox Code Playgroud) 我正在将 docker 镜像发布到 GitHub 容器注册表 (ghcr.io)。
这样做的过程:
有时,步骤 4 或 5 会返回无法从 Docker 映像内解决的错误,问题解决后,我需要重新部署并重新测试工件。
如果发生这种情况,构建组件的过程(包括 junit 测试)会很痛苦,因为 Docker 映像已经构建并存在于 ghcr.io 上。
有没有办法查看 ghcr.io 中是否存在标记的 Docker 映像?
In the settings I've enabled Github Pages:
I have a Github Action which builds and deploy the page to the branch gh-pages.
name: Continuous Deployment
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build-and-deploy:
name: Build and deploy to Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use nodejs
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache …Run Code Online (Sandbox Code Playgroud) github-pages ×10
github ×7
jekyll ×2
bundler ×1
css ×1
flutter-web ×1
ghcr ×1
html ×1
permalinks ×1
ruby ×1
rubygems ×1
web ×1