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
| $ cd /diretorio-do-ghost/content/data | |
| $ sqlite3 ghost.db | |
| sqlite> UPDATE posts SET image = '/content/images/2013/Dec/imagem_post.png' WHERE id=10; | |
| sqlite> .exit |
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
| {{#if image}} | |
| <a href="{{url}}"><img class="post-avatar" alt="{{title}}" src="{{image}}" height="48" width="48" /></a> | |
| {{/if}} |
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
| <?php | |
| function artigo_feed_rewrite( $wp_rewrite ) { | |
| $feed_rules = array( | |
| 'feed/artigos' => 'index.php?post_type=listing&feed=rss2' | |
| ); | |
| $wp_rewrite->rules = $feed_rules + $wp_rewrite->rules; | |
| } | |
| // regerar regras de permalinks depois de ativar / implementar esse código |
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 class="comment"> | |
| <div class="g-comments" data-href="{{url absolute="true"}}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</div> | |
| <script async type="text/javascript" src="//apis.google.com/js/plusone.js?callback=gpcb"></script> | |
| <noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript> | |
| </section> |
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
| const | |
| Google = 'http://www.google.com.br/', | |
| GImage = 'http://image.google.com.br/', | |
| GVideo = 'http://video.google.com.br/', | |
| Gmail = 'https://mail.google.com.br/mail/', | |
| GReader = Google +'reader/', | |
| GReaderS = GReader.replace(/:/, 's:'), | |
| GCode = Google + 'codesearch', | |
| GSgFAQ = 'suggest'.link('http://labs.google.com/suggestfaq.html'), | |
| GLogos = Google +'logos/', |