static-pages

Utilitiy dynamic creation of static pages…(I'm not asking this because I want to, rather becasue I have to…)

这一生的挚爱 提交于 2020-01-25 21:22:08
问题 Does anyone know of a utility for ****ahem**** stringing together static pages. For instance: Say I wrote a header and a footer of a page, and I only wanted to change the content without ****sigh**** dynamically generating the content of the page. (I.E. the page is dynamically generated, but the end result is just a static page to be dumped into an FTP directory.) I don't normally endorse doing this sort of thing without something like Tiles or serverside includes on a webserver, but

Two versions of each blog post in Jekyll

淺唱寂寞╮ 提交于 2020-01-24 11:09:48
问题 I need two versions of each of my posts in a very simple Jekyll setup: The public facing version and a barebones version with branding specifically for embedding. I have one layout for each type: post.html post_embed.html I could accomplish this just fine by making duplicates of each post file with different layouts in the front matter, but that's obviously a terrible way to do it. There must be a simpler solution, either at the level of the command line or in the front matter? Update: This

Two versions of each blog post in Jekyll

扶醉桌前 提交于 2020-01-24 11:09:03
问题 I need two versions of each of my posts in a very simple Jekyll setup: The public facing version and a barebones version with branding specifically for embedding. I have one layout for each type: post.html post_embed.html I could accomplish this just fine by making duplicates of each post file with different layouts in the front matter, but that's obviously a terrible way to do it. There must be a simpler solution, either at the level of the command line or in the front matter? Update: This

How to get static page dropdown in OctoberCMS with get page tree?

≯℡__Kan透↙ 提交于 2019-12-14 03:07:39
问题 I am open this based from my question in my own comment from Static page dropdown within static page in OctoberCMS. I have problem when adding $pageList->getPageTree(true). The child pages did not display. My current code is repeating foreach from $pageObject->subpages which is not a good practice. Below here is my code example: Plugin.php <?php namespace MyPlugin\CustomPlugin use System\Classes\PluginBase; public function boot() { \RainLab\Pages\Classes\Page::extend(function($model) { $model

Jekyll Not Displaying Layout for Static Page

自作多情 提交于 2019-12-13 10:05:41
问题 in root folder I have designing_minimalist.md --- title: Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use layout: default --- # Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use Quantum Pilot is a SHMUP-puzzle about fighting clone ships that mirror how you attack them. (...) default layout: <html> <body style="background-color:black"> <body link="white"> <body vlink="white"> <style> a { text-decoration: none; } </style> <h1><a href=

Difference between static & dynamic pages?

老子叫甜甜 提交于 2019-12-02 08:28:35
问题 I was doing some research on the types of web pages available and I came across these 2 types: static & dynamic. However, the sites which I read it from does not provide me with much information for me to understand what does these types of pages do and preferred for what kinds of websites/functions. Can anyone explain to me the functions of each of these 2 webpage types and tell me the difference/when to use them? Thanks! :) 回答1: From Wikipedia: A static web page (sometimes called a flat