mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Add Searching The Contents Blog Post Contents
By Default, Search in HTMLy only queries the filename. I have added code that enables the Search function to capture whole-word results from the *contents* of each blog post. See: https://splifingate.net/blog/ vs https://splifingate/test/blog/ My Study: https://andyrew.info/blog/2025/01/searching-inside-htmly-content
This commit is contained in:
parent
d9a420e4fd
commit
9ac3fc114a
2 changed files with 32 additions and 18 deletions
|
|
@ -28,9 +28,11 @@
|
|||
<?php endif;?>
|
||||
|
||||
<?php if (isset($is_search)):?>
|
||||
<div class="row justify-content-center" style="padding-top: 4rem;">
|
||||
<!-- main.html.php -->
|
||||
<div class="row justify-content-center" style="padding-top: 3rem;">
|
||||
<div class="col-md-12 text-center">
|
||||
<h1 class="mt-0"><?php echo $search->title;?></h1>
|
||||
<h2 class="mt-0">Search: <span style='color: #628B48;'><?php echo $search->title;?></span> (<?php echo $search->count;?>)</h2>
|
||||
<form><input type="search" name="search" class="form-control is-search" placeholder="<?php echo i18n('Type_to_search');?>"></form>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue