Giter Club home page Giter Club logo

foxypanda.me's Introduction

FoxyPanda Source Code

FoxyPanda is a personal blog based on Ghost and is deployed to Heroku. You can find it here: https://foxypanda.me.

Notes for myself

These are just notes about the changes I made to the standard Ghost functionality. For reference, helpers.js contains all of the custom Handlebars helpers I have defined.

Testing locally

Use npm start to test locally. heroku local web might not work.

Compiling Sass

All Sass files can be compiled by simply running compass watch in the root directory. config.rb contains all of necessary Compass configuration.`

Syntax highlighting and LaTeX

To get syntax highlighting with line numbers in the Ghost editor:

```language-typescript line-numbers
public static randomInRage(min: number, max: number, integersOnly: boolean = false) {
    if (integersOnly) {
        return Math.floor(Math.random() * (max - min + 1) + min);
    }
    return Math.random() * (max - min) + min;
}
```

Inline syntax:

Without syntax highlighting:
`var colour;`

With syntax highlighting:
<code class="language-javascript">var colour;</code>

LaTeX snippets:

Inline:
$\LaTeX$ or \\(\LaTeX\\)

Separate line;
$$\LaTeX$$

Links

Links that open in a new window or the same window. Note that the tilde character will be stripped.

[New Window](https://localhost/)

[~Same Window](https://localhost/)

[Anchor links are ignored](#)

Embedding JavaScript into pages

Ghost's Markdown engine supports HTML, so JS can be embedded directly into pages. If you for some reason need jQuery or want the scripts to be loaded after the rest of Foxy Panda JS, use the mechanism before:

window.scripts.push('/path/to/some/script'); // This script will load first
window.scripts.push('/path/to/another/script'); // Will load second
window.scripts.push(function() {
    console.log('Hello World');
}); // Will get executed after the above 2 scripts are loaded

Helper divs

If something needs to be centred, it can be wrapped into a .center-content div.

foxypanda.me's People

Contributors

aorcsik avatar awendt avatar bastilian avatar blaze33 avatar browniefed avatar cobyism avatar csquared avatar elementalvoid avatar erictherobot avatar holic avatar janraasch avatar jiashuw avatar kevin-stripe avatar octave avatar pross avatar rstrangh avatar saulshanabrook avatar surfacedamage avatar timbokz avatar waterloo avatar zhenkyle avatar

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.