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
| <ul> | |
| {% capture related_posts %}{{ page.categories }}{% endcapture %} | |
| {% assign collection = site.categories[related_posts] %} | |
| {% for article in collection limit: 6 %} | |
| {% unless page.url == article.url %} | |
| <li><a href="{{ article.url }}">{{ article.title }}</a></li> | |
| {% endunless %} | |
| {% endfor %} | |
| </ul> |
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
| .video | |
| position: relative | |
| padding-bottom: 56.25% | |
| padding-top: 25px | |
| height: 0 | |
| iframe | |
| border: none | |
| position: absolute | |
| top: 0 | |
| left: 0 |
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
| <div id="cse-search-results"></div> | |
| <script type="text/javascript"> | |
| var googleSearchIframeName = "cse-search-results"; | |
| var googleSearchFormName = "cse-search-box"; | |
| var googleSearchFrameWidth = 800; | |
| var googleSearchDomain = "www.google.ru"; | |
| var googleSearchPath = "/cse"; | |
| </script> | |
| <script type="text/javascript" src="https://www.google.com/afsonline/show_afs_search.js"></script> |
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
| <form action="/search.html" id="cse-search-box"> | |
| <input type="hidden" name="cx" value="partner-pub-xxx:xxx" /> | |
| <input type="hidden" name="cof" value="FORID:10" /> | |
| <input type="hidden" name="ie" value="UTF-8" /> | |
| <input type="text" name="q" placeholder="Поиск по сайту..." /> | |
| </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
| UPDATE wp_options SET option_value = replace(option_value, 'http://old-domail.com', 'http://new-domail.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = replace(guid, 'http://old-domail.com', 'http://new-domail.com'); | |
| UPDATE wp_posts SET post_content = replace(post_content, 'http://old-domail.com', 'http://new-domail.com'); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://old-domail.com', 'http://new-domail.com'); |