title: Added /amp to end of pagination url in wordpress
body: <p>I need added amp to wordpress. All done, but I have some trouble. </p>
  
  <p>Paginations in template looks like that:</p>
  
  <pre><code>href="http://localhost/category/uncategorized/amp/page/2/"
  </code></pre>
  
  <p>I need to do like that: </p>
  
  <pre><code>href="http://localhost/category/uncategorized/page/2/amp/
  </code></pre>
  
  <p>How to add /amp In the end of paginations?  Any ideas? </p>
  
  <p>In template I call <code>function next_posts_link() &amp; previous_posts_link();</code></p>