Comments (13)
@zonca this is great! Thanks for sharing! I'll get around to this soon
from fastpages.
Had a read to the docs linked, and wanted to have a stab at this after I finished with #49 but I cannot find where the post list is built in the index page. In other words: index.md
contains only a bit of content, but when the site is actually built a list of posts is added. I think I am looking for the "home" layout, but I cannot find it
from fastpages.
I have tried for a bit, but the answer is that apparently it is not possible, or not in an easy way. There are two main issues:
-
Although this minima layout has been pushed to master, for some reason it's not being picked up (we might be using a different theme or a different version, I don't know). This is not a major deal, and it can be solved with a custom layout, although it is a bit hacky
-
The paginator requires the index to be
index.html
rather thanindex.md
(I am guessing so that it can duplicate it several time depending on how many pages are needed. This does not seem easily solvable to me unless we are willing to break the basic assumptions of fastpage.
from fastpages.
Indeed looks like pagination is built in to the currenty version of minima, however, they haven't cut a release yet so its not available for people installing via Gem.
I'm not adventurous enough to copy their files etc. Perhaps we look at the upcoming 3.0 release and see what has changed ( or actually wait until 3.1 )
from fastpages.
Perhaps. Should we label this issue as "waiting" or something?
from fastpages.
I’ll keep it open for a bit :)
from fastpages.
I made pagination working following jekyll/minima#150 (comment)
-
Added
gem 'jekyll-paginate'
toGemfile
-
added to
_config.yml
:
gems:
- jekyll-paginate
paginate: 10
paginate_path: /page:num/
-
I had an empty
index.md
so just renamed it, I guess people with some content should turn it into html.mv index.md index.html
See at: https://zonca.dev/
from fastpages.
One issue with using the paginate plugin is that you have to convert index.md to index.html, and it becomes much harder to write content this way. Any ideas on how to make things easier to let people write content on their home page?
from fastpages.
@hamelsmu What if in the build action fastpages
adds a script which converts index.md
to index.html
before it is processed by Jekyll?
from fastpages.
No that wouldn't work in this case. And there isn't a way to ship markdown inside HTML, either. the best way is to try to find a way to port pagination to markdown via {% includes %} or something like that or by extending _layout/home.html
from fastpages.
what if you strip the front matter, do the conversion using pandoc
or some other tool, and join back the front matter?
from fastpages.
@zonca don't want to hack it like that seems like it would not be very maintainable.
I'm thinking to just put a link to your instructions in the documentation instead?
from fastpages.
Sure
from fastpages.
Related Issues (20)
- Option to group blogs under folders - for a tree hierarchy instead of current flat structure HOT 3
- Keep-Alive-Actions HOT 1
- CI / build-site Failed HOT 2
- There are no comments in my notebook cells HOT 1
- Jupyter notebook isn't displaying the python comments HOT 5
- Keep-Alive-Actions HOT 1
- Auto upgrade fails HOT 7
- Question: Why .gitattributes ? HOT 2
- Keep-Alive-Actions HOT 1
- Fastpages + mkdocs ?? HOT 2
- [fastpages] Automated Upgrade HOT 1
- Initial commit Setup #1 [The requested URL returned error: 403] HOT 5
- Problem rendering notebooks even with gh pages working fine HOT 4
- Failed to set up locally in M1 Mac HOT 2
- Post in different pages HOT 1
- First PR of initial commit is not showing up HOT 2
- Deleting published pages HOT 2
- [fastpages] Automated Upgrade
- [fastpages] Automated Upgrade
- I am not able to figure out how to make my blog searchable on any search engine (Google, Bing etc.) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastpages.