montanojd / news-blog-1

A news blog with a G-News alike layout. Based on static site generator 11ty and zuix.js.

Home Page:https://zuixjs.github.io/news-blog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News-Blog template

A G-News alike web application template, featuring view pager with gesture, popup context menu, search page, bookmarks.
Implemented as Progressive Web App, with background service worker and other optimizations.
Suitable both for desktop and mobile.

Based on zuix.js Web Starter and zuix.js HTML-PWA, this web application is implemented as a static site with markdown and liquid templates using 11ty engine.

-->>[ Demo and Docs ]<<--

Prerequisites

Node.js version 14 or higher is required to use this template.

Getting started

To create a new project using this template, enter the following command:

npx zuix new my-site-name -t news-blog

Commands

Starting the web server

  • npx zuix start to start the local web server

The zuix CLI tool can be used, among the other things, to initialize the web application and create new pages.

Initializing

  • npx zuix wipe-content

This command will delete all data contained in the content/ folder, required to wipe out all DEMO data after installation.

Adding new pages

Pages are grouped into sections. Each section creates a new view-pager tab, where all pages belonging to that section are listed in the form of cards, with a preview image, the title, the date and a button to pop up a context menu with options.

For example, to add a new post page in the travel section :

  • npx zuix add -s travel -n my-cruise-to-maldive

This will create a new post page named my-cruise-to-maldive/index.md inside the content/travel/ folder.

So, the -s option is used to specify the section under which the page will be included, while the -n options is used to specify the name of the page.

For complete documentation see zuix.js Web Starter.

References

About

A news blog with a G-News alike layout. Based on static site generator 11ty and zuix.js.

https://zuixjs.github.io/news-blog/

License:MIT License


Languages

Language:JavaScript 59.2%Language:Liquid 26.1%Language:CSS 8.3%Language:HTML 5.0%Language:Nunjucks 1.4%