This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // # Ghost Configuration | |
| // Setup your Ghost install for various environments | |
| // Documentation can be found at http://support.ghost.org/config/ | |
| var path = require('path'), | |
| config; | |
| var config; | |
| if (process.env.OPENSHIFT_MYSQL_DB_HOST != undefined) { | |
| config = { | |
| // ### Production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section id="form"> | |
| <form action="/post.php" method="POST" id="contribuir"> | |
| <section id="form-wrap"> | |
| <input name="name" type="text" placeholder="Tu nombre*" id="nombre"/> | |
| <input name="email" type="mail" placeholder="E-mail(No será publicado)" id="email"/> | |
| <input name="titulo" type="text" placeholder="El titulo*"/> | |
| <textarea rows="8" name="contenido" required="true" id="contenido" placeholder="El contenido*"></textarea> | |
| <input type="submit" name="submit" id="submit" value="Enviar"> | |
| </section> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| content = function (options) { | |
| var truncateOptions = (options || {}).hash || {}; | |
| truncateOptions = _.pick(truncateOptions, ['words', 'characters', 'more']); | |
| _.keys(truncateOptions).map(function (key) { | |
| truncateOptions[key] = parseInt(truncateOptions[key], 10); | |
| }); | |
| if (truncateOptions.hasOwnProperty('words') || truncateOptions.hasOwnProperty('characters')) { | |
| // Due to weirdness in downsize the 'words' option | |
| // must be passed as a string. refer to #1796 |
NewerOlder