[fastpages] GitHub Pages Blog Using Nbdev

You can use nbdime for diffing in a smart way, or else clear all output cells and save.

See https://nbviewer.jupyter.org/github/jhermann/jupyter-by-example/blob/master/how-tos/git.ipynb for details.

1 Like

Thanks Hamel! By the way, do you know how we can remove the ā€œAbout meā€ title that sits on the about me page? Was trying to edit post.html, however it isnā€™t working.

@kennethwang _pages/about.md

If you delete the title in the front matter the page goes away

Is there a way to keep the page but instead remove the title that is in bold?

Yeah. Change the title

title: My title

1 Like

Hmm the title is still there. It was just renamed to ā€œMy titleā€.

your browser is caching

Do a hard refresh

Hmm does not work for me, it is still there. Is there an ā€œabout.htmlā€ that I can edit to remove the title manually? Could not find it in the repo.

@kennethwang please provide a link to your repo

It works for me https://hamelsmu.github.io/fp-upgrade/

From https://github.com/hamelsmu/fp-upgrade

@hamelsmu I know it is a bit meta, but maybe you should set up a fastpages blog on the development of fastpages. That is a devlog Iā€™d definitely read, and it would help me keep up with the fast changes :slight_smile:

3 Likes

@miko Intriguing idea! can you give me more specific ideas on things you would like to see on the blog ?

Iā€™d be interested in following the development process and reasoning behind some of the changes/improvement. I always find it extremely useful knowing what is the thought process that brought to certain features, as it then helps me understanding how the tools work

Hi @hamelsmu, here is my repo:

For your case, you have named the title of the about me page as ā€œSomePageā€. Are you able to see the title in bold? I was hoping to remove that title.

Thanks!

Make _layouts/page_no_title.html that delegates to page, and set H1 to display: none via a style node. Then use that layout in about.md.

Thanks @jhermann that worked for me!

1 Like

Code fonts look unreasonably small on my device. Itā€™s using 12px fontsize. Iā€™d like to customize the fastpages-style.scss file to change the fontsize to 15px. How can I do that?

In the newest version of fastpages, you can inject your own custom CSS in _sas/minima/custom-styles.scss

You could add something like this

.input_area pre, .input_area div {
        font-size: 120%;
}

Hope that helps!

3 Likes

Hi, Iā€™m trying to enable google analytics. I see this script on the header (iā€™ve removed my id for obvious reasons). Is GA disabled? If so why?

  window['ga-disable-UA-xxx-1'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-xx-1');

Itā€™s not disabled. See How to track page views in fastpages

1 Like

I tried using fastpages for the very first time today, and wow!! It was very easy to setup and so nice to have CI/CD setup right out of the box. Thank you so much for developing this, @hamelsmu!

I saw in a Github issue to investigate the interactive features and I did see that the integration with Binder was done recently. I was hoping to include a simple widget to allow user to enter an input (whether that being an upload button or text field). I converted one of my ipynb using nbinteract and have a html file, but I was not sure where I can put it so that itā€™s accessible on the site. I am totally new to Jekyll and wondering if anybody could help me.

Thanks in advance!

1 Like