Comments (6)
Andrew,
Yes user should can choose trimmed content or full content for the index page. Not from the theme to keep it light in codes but in functions.php (not confusing if people want to create their own theme), and we should change this call to somethings simple:
<?php echo get_teaser($p->body, $p->url)?>
becomes:
<?php echo get_teaser($p)?>
Actually its enough since in function get_teaser we can extract it, $p->body
or $p->url
either. We should use this kind of format.
from htmly.
The idea of putting it in the config means we can call $p->body and based on the config we format the output.
from htmly.
Yes we creating new setting on config, let say:
teaser.format = "full"
and to get the value we just need to call:
$teaserFormat = config('teaser.format');
Thanks to dispatch for this simplicity :)
from htmly.
+1
from htmly.
And we need to add one more file static.html.php
so the static page can has different template. I will add it very soon on branch master.
from htmly.
I already commit the changes, please try it. Download the master branch
from htmly.
Related Issues (20)
- Text "Tag" in "Add content" and "Edit" page is not translatable HOT 2
- PHP-INTL date format HOT 3
- Unsorted categories list in admin views HOT 3
- An idea: Is it possible to labelize all the fields? HOT 2
- Comment Slug HOT 13
- Just installed, nice app but... HOT 16
- Add Content To Sidebar HOT 5
- Some issues after the new installation HOT 12
- What need to be done to display rtl language (such as Arabic or Hebrew) HOT 1
- RSS import failed HOT 3
- How to customize <title></title> HOT 12
- php-Warning in admin/updates HOT 2
- Can't edit or delete posts HOT 8
- Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string HOT 3
- Known issue: Does not support underscore character in username HOT 1
- Version 2.9.0 - i18n error HOT 11
- Looking to override some css HOT 7
- Feature request: TOC support HOT 5
- Feature request: Adding Mastodon to Social Media links, adding user verification HOT 2
- Installing Issue on armbian, lighty, HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.