GithubHelp home page GithubHelp logo

Comments (4)

baileythegreen avatar baileythegreen commented on July 17, 2024

Update:

I got this to work by altering index.html like this:

{% for lang in site.languages %}
  <!--
  {% assign link = lang.key | prepend: '/' | append: '/' | relative_url %}
  <h2><a href="{{link}}">{{lang.name}}</a></h2>
  -->                                                                        # comment these lines out
  <h2><a href="{{site.baseurl}}/{{lang.key}}">{{lang.name}}</a></h2>         # add this line
  <div dir='auto'>
  {{lang.blurb | markdownify}}
  </div>
{% endfor %}

I'm not entirely clear on why I need to do this for it to work, or whether this is a problem for others, but if it is, a change like this will help people wanting to test changes to the web version of Glosario.

from glosario.

baileythegreen avatar baileythegreen commented on July 17, 2024

I forgot about one other change: I had to create a _data/ directory and place glossary.yml there for the individual language pages to show any content.

This, so the {% assign gloss = site.data.glossary %} line in _incudes/glossary.html points to something.

from glosario.

BatoolMM avatar BatoolMM commented on July 17, 2024

Hi @baileythegreen, I had the same problem initially because I was using bundle exec jekyll s -l -o rather than make serve when building the site locally. This is because make serve copies ./glossary.yml into ./_data/glossary.yml and then runs bundle exec jekyll. I was confused at first until I went through all the closed PRs and found this PR #19.

from glosario.

baileythegreen avatar baileythegreen commented on July 17, 2024

@BatoolMM Thanks! I see now that the gh_pages branch has the _data folder, which explains why it works fine, but my original attempt at forking and rendering my own version failed. I hadn't managed to find PR #19, probably because the subject line is not directly related to the terms I searched on.

I've been using bundle exec jekyll serve --livereload because somewhere I found that when I first did something with GitHub Pages and because I don't know enough to know any different. Yet. I'll think about what to do in my local versions, but for now have put the files affected by my workaround in .gitignore so I want accidentally end up pushing changes others don't need.

from glosario.

Related Issues (20)

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.