Skip to content

Instantly share code, notes, and snippets.

View eashish93's full-sized avatar

Ashish Rawat eashish93

View GitHub Profile
@eashish93
eashish93 / ghostpaginate.md
Last active October 6, 2023 11:20
Ghost numbered pagination

Hye, this is custom numbered pagination with first, next and prev links. Also the user can limit the pagination numbers. Just include this code in pagination.hbs file inside ghost theme partials directory. Any improvements are always welcome.

{{!-- custom pagination file --}}

<nav class="pagination" role="navigation">
    {{#if prev}}
    <a class="prev" href="{{page_url prev}}">&larr; Prev</a>
@eashish93
eashish93 / SongsListContainer.js
Last active September 14, 2016 19:07
React separating presentation and logic (smart-dumb component)
import React, { Component } from 'react';
import Request from 'superagent';
// Logic (Smart)
class SongsListContainer extends Component {
constructor(props) {
super(props);
this.state = {meta: []}
}
componentDidMount() {