UNPKG

@skhemata/skhemata-blog

Version:

Skhemata Blog Web Component. This web component provides several sub components in addition to main component, allowing featured blogs, blog listing and blog post display.

47 lines (46 loc) 1.19 kB
/** * * Lit Blog Post Element * * */ import { SkhemataBase, CSSResult } from '@skhemata/skhemata-base'; export declare class SkhemataBlogPost extends SkhemataBase { apiWordpress: { url: string; }; blogPagePath: string; hasFeaturedImage: boolean; slug?: string; private blogPost; translationData: { eng: { SkhemataBlogPost: { backToBlog: string; tags: string; categories: string; }; }; }; static get styles(): CSSResult[]; static get scopedElements(): { 'fa-icon': any; }; constructor(); handleGoBack(): void; /** * Implement `render` to define a template for your element. * Use JS template literals */ protected render(): import("lit-html").TemplateResult<1>; /** * Implement firstUpdated to perform one-time work after * the element’s template has been created. */ firstUpdated(): Promise<void>; /** * Fetch a single post based on post id from WP REST API */ private getPost; setMetaTags(): void; filterPostsBy(id: string, queryId: string): void; }