首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jekyll模板,感受-响应式导入图像

Jekyll模板,感受-响应式导入图像
EN

Stack Overflow用户
提问于 2017-11-28 15:55:47
回答 1查看 304关注 0票数 1

我正在使用Jekyll的“感觉-响应”主题(https://github.com/Phlow/feeling-responsive)作为我的github页面。我希望包含自己的.jpg图像,以便在首页上显示一个小部件,因此我用图像的名称在index.md中编辑了相应的" image“字段,但是没有显示该小部件的图像,而其他小部件仍然显示它们的股票图像。不知道如何进行,任何帮助都将不胜感激。

这是我的index.md文件,我修改了widget1的图像字段。

代码语言:javascript
复制
layout: frontpage
header:
  image_fullwidth: header_unsplash_12.jpg

widget1:
  title: "Portfolio"
  url: 'http://phlow.github.io/feeling-responsive/blog/'
  text: 'Some of my past and current work (under construction)'
  image: figure__atom.jpg 
  <!-- image: widget-1-302x182.jpg -->

widget2:
  title: "Why use this theme?"
  url: 'http://phlow.github.io/feeling-responsive/info/'
  text: '<em>Feeling Responsive</em> is heavily customizable.<br/>1. Language-Support :)<br/>2. Optimized for speed and it&#39;s responsive.<br/>3. Built on <a href="http://foundation.zurb.com/">Foundation Framework</a>.<br/>4. Seven different Headers.<br/>5. Customizable navigation, footer,...'
  video: '<a href="#" data-reveal-id="videoModal"><img src="http://phlow.github.io/feeling-responsive/images/start-video-feeling-responsive-302x182.jpg" width="302" height="182" alt=""/></a>'

widget3:
  title: "Download Theme"
  url: 'https://github.com/Phlow/feeling-responsive'
  image: widget-github-303x182.jpg
  text: '<em>Feeling Responsive</em> is free and licensed under a MIT License. Make it your own and start building. Grab the <a href="https://github.com/Phlow/feeling-responsive/tree/bare-bones-version">Bare-Bones-Version</a> for a fresh start or learn how to use it with the <a href="https://github.com/Phlow/feeling-responsive/tree/gh-pages">education-version</a> with sample posts and images. Then tell me via Twitter <a href="http://twitter.com/phlow">@phlow</a>.'
#
# Use the call for action to show a button on the frontpage
#
# To make internal links, just use a permalink like this
# url: /getting-started/
#
# To style the button in different colors, use no value
# to use the main color or success, alert or secondary.
# To change colors see sass/_01_settings_colors.scss
#
callforaction:
  url: https://tinyletter.com/feeling-responsive
  text: Inform me about new updates and features ›
  style: alert
permalink: /index.html
#
# This is a nasty hack to make the navigation highlight
# this page as active in the topbar navigation
#
homepage: true
---

<div id="videoModal" class="reveal-modal large" data-reveal="">
  <div class="flex-video widescreen vimeo" style="display: block;">
    <iframe width="1280" height="720" src="https://www.youtube.com/embed/3b5zCFSmVvU" frameborder="0" allowfullscreen></iframe>
  </div>
  <a class="close-reveal-modal">&#215;</a>
</div>
EN

回答 1

Stack Overflow用户

发布于 2019-06-03 15:46:59

您应该使用图像目录编辑_config.yml文件,以获得参数"urlimg:“。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47535735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档